![]() |
Xors3d Engine
|
Functions | |
BBDECL void BBCALL | xEntityApplyCentralForce (Entity *entity, float x, float y, float z, bool isGlobal=true) |
Applies a force to the center of mass of the entity's body. | |
BBDECL void BBCALL | xEntityApplyCentralImpulse (Entity *entity, float x, float y, float z, bool isGlobal=true) |
Applies an impulse to the center of mass of the entity's body. | |
BBDECL void BBCALL | xEntityApplyForce (Entity *entity, float x, float y, float z, float pointx, float pointy, float pointz, bool isGlobal=true, bool globalPoint=true) |
Applies a force to the entity's body at a particular point relative to the center of this body. | |
BBDECL void BBCALL | xEntityApplyImpulse (Entity *entity, float x, float y, float z, float pointx, float pointy, float pointz, bool isGlobal=true, bool globalPoint=true) |
Applies an impulse to the entity's body at a particular point relative to the center of this body. | |
BBDECL void BBCALL | xEntityApplyTorque (Entity *entity, float x, float y, float z, bool isGlobal=true) |
Applies a torque to the entity's body. | |
BBDECL void BBCALL | xEntityApplyTorqueImpulse (Entity *entity, float x, float y, float z, bool isGlobal=true) |
Applies a torque impulse to the entity's body. | |
BBDECL void BBCALL | xEntityReleaseForces (Entity *entity) |
Returns the x-component of the force acting on the entity's body. |
BBDECL void BBCALL xEntityApplyCentralForce | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
bool | isGlobal = true |
||
) |
Applies a force to the center of mass of the entity's body.
entity | Entity handle |
x | X-component of the force vector |
y | Y-component of the force vector |
z | Z-component of the force vector |
isGlobal | True to apply a force in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityApplyCentralImpulse | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
bool | isGlobal = true |
||
) |
Applies an impulse to the center of mass of the entity's body.
entity | Entity handle |
x | X-component of the impulse vector |
y | Y-component of the impulse vector |
z | Z-component of the impulse vector |
isGlobal | True to apply an impulse in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityApplyTorque | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
bool | isGlobal = true |
||
) |
Applies a torque to the entity's body.
entity | Entity handle |
x | X-component of the torque vector |
y | Y-component of the torque vector |
z | Z-component of the torque vector |
isGlobal | True to apply a torque in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityApplyTorqueImpulse | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
bool | isGlobal = true |
||
) |
Applies a torque impulse to the entity's body.
entity | Entity handle |
x | X-component of the torque impulse vector |
y | Y-component of the torque impulse vector |
z | Z-component of the torque impulse vector |
isGlobal | True to apply a torque impulse in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityApplyForce | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
float | pointx, | ||
float | pointy, | ||
float | pointz, | ||
bool | isGlobal = true , |
||
bool | globalPoint = true |
||
) |
Applies a force to the entity's body at a particular point relative to the center of this body.
entity | Entity handle |
x | X-component of the force vector |
y | Y-component of the force vector |
z | Z-component of the force vector |
pointx | X-coordinate of the point |
pointy | Y-coordinate of the point |
pointz | Z-coordinate of the point |
isGlobal | True to apply a force in global coordinates. False - in local coordinates. Default value is true. |
globalPoint | True if a particular point is in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityApplyImpulse | ( | Entity * | entity, |
float | x, | ||
float | y, | ||
float | z, | ||
float | pointx, | ||
float | pointy, | ||
float | pointz, | ||
bool | isGlobal = true , |
||
bool | globalPoint = true |
||
) |
Applies an impulse to the entity's body at a particular point relative to the center of this body.
entity | Entity handle |
x | X-component of the impulse vector |
y | Y-component of the impulse vector |
z | Z-component of the impulse vector |
pointx | X-coordinate of the point |
pointy | Y-coordinate of the point |
pointz | Z-coordinate of the point |
isGlobal | True to apply an impulse in global coordinates. False - in local coordinates. Default value is true. |
globalPoint | True if a particular point is in global coordinates. False - in local coordinates. Default value is true. |
BBDECL void BBCALL xEntityReleaseForces | ( | Entity * | entity | ) |
Returns the x-component of the force acting on the entity's body.
entity | Entity handleReturns the y-component of the force acting on the entity's body. |
entity | Entity handleReturns the z-component of the force acting on the entity's body. |
entity | Entity handleReturns the x-component of the torque acting on the entity's body. |
entity | Entity handleReturns the y-component of the torque acting on the entity's body. |
entity | Entity handleReturns the z-component of the torque acting on the entity's body. |
entity | Entity handleReleases all the forces which were applied to the entity's body. |
Linear and angular velocities are set to zero values.
entity | Entity handle |