Set the velocity of the body.

cpBodySetVelocity(body, velocity)

Arguments

body

[cpBody *]

velocity

[cpVect *]

Details

C function prototype: CP_EXPORT void cpBodySetVelocity(cpBody *body, cpVect velocity);