Xors3d Engine
Velocity

Functions

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

Function Documentation

BBDECL void BBCALL 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.
BBDECL float BBCALL 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.
BBDECL float BBCALL 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.
BBDECL float BBCALL 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.
BBDECL void BBCALL 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.
BBDECL float BBCALL 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.
BBDECL float BBCALL 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.
BBDECL float BBCALL 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.