SetObject3DPhysicsLinearVelocity
Description
Sets the linear velocity vector for the object. The direction vector is automatically normalized.
Definition
SetObject3DPhysicsLinearVelocity( objID, vectorID, initialSpeed )
void agk::SetObject3DPhysicsLinearVelocity( UINT objID, UINT vectorID, float initialSpeed )
SetObject3DPhysicsLinearVelocity( objID, dirX, dirY, dirZ, initialSpeed )
void agk::SetObject3DPhysicsLinearVelocity( UINT objID, float dirX, float dirY, float dirZ, float initialSpeed )
Parameters
- objID - object ID
- vectorID - ID of the direction vector
- initialSpeed - the initial speed.
- dirX - the X component of the direction vector
- dirY - the Y component of the direction vector
- dirZ - the Z component of the direction vector