Returns the current (or most recent) time step used with the given space. Useful from callbacks if your time step is not a compile-time global.

cpSpaceGetCurrentTimeStep(space)

Arguments

space

[cpSpace *]

Value

[cpFloat]

Details

C function prototype: CP_EXPORT cpFloat cpSpaceGetCurrentTimeStep(const cpSpace *space);