Xors3d Engine
Velocity

Functions

float xEntityGetAngularVelocityX (Entity *entity, bool isGlobal=true)
 Returns the x-component of the angular velocity of the entity's body.
float xEntityGetAngularVelocityY (Entity *entity, bool isGlobal=true)
 Returns the y-component of the angular velocity of the entity's body.
float xEntityGetAngularVelocityZ (Entity *entity, bool isGlobal=true)
 Returns the z-component of the angular velocity of the entity's body.
float xEntityGetLinearVelocityX (Entity *entity, bool isGlobal=true)
 Returns the x-component of the linear velocity of the entity's body.
float xEntityGetLinearVelocityY (Entity *entity, bool isGlobal=true)
 Returns the y-component of the linear velocity of the entity's body.
float xEntityGetLinearVelocityZ (Entity *entity, bool isGlobal=true)
 Returns the z-component of the linear velocity of the entity's body.
void xEntitySetAngularVelocity (Entity *entity, float x, float y, float z, bool isGlobal=true)
 Sets the angular velocity of the entity's body.
void xEntitySetLinearVelocity (Entity *entity, float x, float y, float z, bool isGlobal=true)
 Sets the linear velocity of the entity's body.

Function Documentation

void xEntitySetLinearVelocity ( Entity *  entity,
float  x,
float  y,
float  z,
bool  isGlobal = true 
)

Sets the linear velocity of the entity's body.

Parameters:
entityEntity handle.
xX-component of the velocity vector.
yY-component of the velocity vector.
zZ-component of the velocity vector.
isGlobalTrue to set the velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetLinearVelocityX ( Entity *  entity,
bool  isGlobal = true 
)

Returns the x-component of the linear velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetLinearVelocityY ( Entity *  entity,
bool  isGlobal = true 
)

Returns the y-component of the linear velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetLinearVelocityZ ( Entity *  entity,
bool  isGlobal = true 
)

Returns the z-component of the linear velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.
void xEntitySetAngularVelocity ( Entity *  entity,
float  x,
float  y,
float  z,
bool  isGlobal = true 
)

Sets the angular velocity of the entity's body.

Parameters:
entityEntity handle.
xX-component of the velocity vector.
yY-component of the velocity vector.
zZ-component of the velocity vector.
isGlobalTrue to set the velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetAngularVelocityX ( Entity *  entity,
bool  isGlobal = true 
)

Returns the x-component of the angular velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetAngularVelocityY ( Entity *  entity,
bool  isGlobal = true 
)

Returns the y-component of the angular velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.
float xEntityGetAngularVelocityZ ( Entity *  entity,
bool  isGlobal = true 
)

Returns the z-component of the angular velocity of the entity's body.

Parameters:
entityEntity handle.
isGlobalTrue to get a velocity in global coordinates. False - in local coordinates. Default value is true.