Typedefs | |
| typedef struct __orxBODY_t | orxBODY |
| typedef struct __orxBODY_JOINT_t | orxBODY_JOINT |
| typedef struct __orxBODY_PART_t | orxBODY_PART |
Functions | |
| orxDLLAPI orxBODY_JOINT *orxFASTCALL | orxBody_AddJoint (orxBODY *_pstSrcBody, orxBODY *_pstDstBody, const orxBODY_JOINT_DEF *_pstBodyJointDef) |
| orxDLLAPI orxBODY_JOINT *orxFASTCALL | orxBody_AddJointFromConfig (orxBODY *_pstSrcBody, orxBODY *_pstDstBody, const orxSTRING _zConfigID) |
| orxDLLAPI orxBODY_PART *orxFASTCALL | orxBody_AddPart (orxBODY *_pstBody, const orxBODY_PART_DEF *_pstBodyPartDef) |
| orxDLLAPI orxBODY_PART *orxFASTCALL | orxBody_AddPartFromConfig (orxBODY *_pstBody, const orxSTRING _zConfigID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_ApplyForce (orxBODY *_pstBody, const orxVECTOR *_pvForce, const orxVECTOR *_pvPoint) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_ApplyImpulse (orxBODY *_pstBody, const orxVECTOR *_pvImpulse, const orxVECTOR *_pvPoint) |
| orxDLLAPI void orxFASTCALL | orxBody_ApplySimulationResult (orxBODY *_pstBody) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_ApplyTorque (orxBODY *_pstBody, orxFLOAT _fTorque) |
| orxDLLAPI orxBODY *orxFASTCALL | orxBody_Create (const orxSTRUCTURE *_pstOwner, const orxBODY_DEF *_pstBodyDef) |
| orxDLLAPI orxBODY *orxFASTCALL | orxBody_CreateFromConfig (const orxSTRUCTURE *_pstOwner, const orxSTRING _zConfigID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_Delete (orxBODY *_pstBody) |
| orxDLLAPI void orxFASTCALL | orxBody_Exit () |
| orxDLLAPI orxFLOAT orxFASTCALL | orxBody_GetAngularDamping (const orxBODY *_pstBody) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxBody_GetAngularVelocity (const orxBODY *_pstBody) |
| orxDLLAPI orxU16 orxFASTCALL | orxBody_GetCheckMask (const orxBODY_PART *_pstBodyPart) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxBody_GetCustomGravity (const orxBODY *_pstBody, orxVECTOR *_pvCustomGravity) |
| orxDLLAPI orxU32 orxFASTCALL | orxBody_GetDefFlags (const orxBODY *_pstBody, orxU32 _u32Mask) |
| orxDLLAPI const orxSTRING orxFASTCALL | orxBody_GetJointName (const orxBODY_JOINT *_pstBodyJoint) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxBody_GetLinearDamping (const orxBODY *_pstBody) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxBody_GetMass (const orxBODY *_pstBody) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxBody_GetMassCenter (const orxBODY *_pstBody, orxVECTOR *_pvMassCenter) |
| orxDLLAPI orxBODY_JOINT *orxFASTCALL | orxBody_GetNextJoint (const orxBODY *_pstBody, const orxBODY_JOINT *_pstBodyJoint) |
| orxDLLAPI orxBODY_PART *orxFASTCALL | orxBody_GetNextPart (const orxBODY *_pstBody, const orxBODY_PART *_pstBodyPart) |
| orxDLLAPI orxSTRUCTURE *orxFASTCALL | orxBody_GetOwner (const orxBODY *_pstBody) |
| orxDLLAPI const orxSTRING orxFASTCALL | orxBody_GetPartName (const orxBODY_PART *_pstBodyPart) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxBody_GetPosition (const orxBODY *_pstBody, orxVECTOR *_pvPosition) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxBody_GetRotation (const orxBODY *_pstBody) |
| orxDLLAPI orxU16 orxFASTCALL | orxBody_GetSelfFlags (const orxBODY_PART *_pstBodyPart) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxBody_GetSpeed (const orxBODY *_pstBody, orxVECTOR *_pvSpeed) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_Init () |
| orxDLLAPI orxBODY *orxFASTCALL | orxBody_Raycast (const orxVECTOR *_pvStart, const orxVECTOR *_pvEnd, orxU16 _u16SelfFlags, orxU16 _u16CheckMask, orxBOOL _bEarlyExit, orxVECTOR *_pvContact, orxVECTOR *_pvNormal) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_RemoveJoint (orxBODY_JOINT *_pstBodyJoint) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_RemovePart (orxBODY_PART *_pstBodyPart) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetAngularDamping (orxBODY *_pstBody, orxFLOAT _fDamping) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetAngularVelocity (orxBODY *_pstBody, orxFLOAT _fVelocity) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetCheckMask (orxBODY_PART *_pstBodyPart, orxU16 _u16CheckMask) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetCustomGravity (orxBODY *_pstBody, const orxVECTOR *_pvCustomGravity) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetLinearDamping (orxBODY *_pstBody, orxFLOAT _fDamping) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetPosition (orxBODY *_pstBody, const orxVECTOR *_pvPosition) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetRotation (orxBODY *_pstBody, orxFLOAT _fRotation) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetScale (orxBODY *_pstBody, const orxVECTOR *_pvScale) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetSelfFlags (orxBODY_PART *_pstBodyPart, orxU16 _u16SelfFlags) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxBody_SetSpeed (orxBODY *_pstBody, const orxVECTOR *_pvSpeed) |
| orxDLLAPI void orxFASTCALL | orxBody_Setup () |
| orxDLLAPI orxBOOL orxFASTCALL | orxBody_TestAllDefFlags (const orxBODY *_pstBody, orxU32 _u32Flags) |
| orxDLLAPI orxBOOL orxFASTCALL | orxBody_TestDefFlags (const orxBODY *_pstBody, orxU32 _u32Flags) |
Body Module Allows to creates and handle physical bodies They are used as container with associated properties Bodies are used by objects They thus can be referenced by objects as structures
| typedef struct __orxBODY_JOINT_t orxBODY_JOINT |
| typedef struct __orxBODY_PART_t orxBODY_PART |
| orxDLLAPI orxBODY_JOINT* orxFASTCALL orxBody_AddJoint | ( | orxBODY * | _pstSrcBody, |
| orxBODY * | _pstDstBody, | ||
| const orxBODY_JOINT_DEF * | _pstBodyJointDef | ||
| ) |
Adds a joint to link two bodies together
| [in] | _pstSrcBody | Concerned source body |
| [in] | _pstDstBody | Concerned destination body |
| [in] | _pstBodyJointDef | Body joint definition |
| orxDLLAPI orxBODY_JOINT* orxFASTCALL orxBody_AddJointFromConfig | ( | orxBODY * | _pstSrcBody, |
| orxBODY * | _pstDstBody, | ||
| const orxSTRING | _zConfigID | ||
| ) |
Adds a joint from config to link two bodies together
| [in] | _pstSrcBody | Concerned source body |
| [in] | _pstDstBody | Concerned destination body |
| [in] | _zConfigID | Body joint config ID |
| orxDLLAPI orxBODY_PART* orxFASTCALL orxBody_AddPart | ( | orxBODY * | _pstBody, |
| const orxBODY_PART_DEF * | _pstBodyPartDef | ||
| ) |
Adds a part to body
| [in] | _pstBody | Concerned body |
| [in] | _pstBodyPartDef | Body part definition |
| orxDLLAPI orxBODY_PART* orxFASTCALL orxBody_AddPartFromConfig | ( | orxBODY * | _pstBody, |
| const orxSTRING | _zConfigID | ||
| ) |
Adds a part to body from config
| [in] | _pstBody | Concerned body |
| [in] | _zConfigID | Body part config ID |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_ApplyForce | ( | orxBODY * | _pstBody, |
| const orxVECTOR * | _pvForce, | ||
| const orxVECTOR * | _pvPoint | ||
| ) |
Applies a force
| [in] | _pstBody | Concerned body |
| [in] | _pvForce | Force to apply |
| [in] | _pvPoint | Point (world coordinates) where the force will be applied, if orxNULL, center of mass will be used |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_ApplyImpulse | ( | orxBODY * | _pstBody, |
| const orxVECTOR * | _pvImpulse, | ||
| const orxVECTOR * | _pvPoint | ||
| ) |
Applies an impulse
| [in] | _pstBody | Concerned body |
| [in] | _pvImpulse | Impulse to apply |
| [in] | _pvPoint | Point (world coordinates) where the impulse will be applied, if orxNULL, center of mass will be used |
| orxDLLAPI void orxFASTCALL orxBody_ApplySimulationResult | ( | orxBODY * | _pstBody ) |
Applies physics simulation result to the Body
| [in] | _pstBody | Concerned body |
Applies a torque
| [in] | _pstBody | Concerned body |
| [in] | _fTorque | Torque to apply |
| orxDLLAPI orxBODY* orxFASTCALL orxBody_Create | ( | const orxSTRUCTURE * | _pstOwner, |
| const orxBODY_DEF * | _pstBodyDef | ||
| ) |
Creates an empty body
| [in] | _pstOwner | Body's owner used for collision callbacks (usually an orxOBJECT) |
| [in] | _pstBodyDef | Body definition |
| orxDLLAPI orxBODY* orxFASTCALL orxBody_CreateFromConfig | ( | const orxSTRUCTURE * | _pstOwner, |
| const orxSTRING | _zConfigID | ||
| ) |
Creates a body from config
| [in] | _pstOwner | Body's owner used for collision callbacks (usually an orxOBJECT) |
| [in] | _zConfigID | Body config ID |
Deletes a body
| [in] | _pstBody | Concerned body |
| orxDLLAPI void orxFASTCALL orxBody_Exit | ( | ) |
Exits from the Body module
| orxDLLAPI orxFLOAT orxFASTCALL orxBody_GetAngularDamping | ( | const orxBODY * | _pstBody ) |
Gets a body angular damping
| [in] | _pstBody | Concerned body |
| orxDLLAPI orxFLOAT orxFASTCALL orxBody_GetAngularVelocity | ( | const orxBODY * | _pstBody ) |
Gets a body angular velocity
| [in] | _pstBody | Concerned body |
| orxDLLAPI orxU16 orxFASTCALL orxBody_GetCheckMask | ( | const orxBODY_PART * | _pstBodyPart ) |
Gets check mask of a physical body part
| [in] | _pstBodyPart | Concerned physical body part |
| orxDLLAPI orxVECTOR* orxFASTCALL orxBody_GetCustomGravity | ( | const orxBODY * | _pstBody, |
| orxVECTOR * | _pvCustomGravity | ||
| ) |
Gets a body custom gravity
| [in] | _pstBody | Concerned body |
| [out] | _pvCustomGravity | Custom gravity to get |
| orxDLLAPI orxU32 orxFASTCALL orxBody_GetDefFlags | ( | const orxBODY * | _pstBody, |
| orxU32 | _u32Mask | ||
| ) |
Gets body definition flags
| [in] | _pstBody | Concerned body |
| [in] | _u32Mask | Mask to use for getting flags |
| orxDLLAPI const orxSTRING orxFASTCALL orxBody_GetJointName | ( | const orxBODY_JOINT * | _pstBodyJoint ) |
Gets a body joint name
| [in] | _pstBodyJoint | Concerned body joint |
| orxDLLAPI orxFLOAT orxFASTCALL orxBody_GetLinearDamping | ( | const orxBODY * | _pstBody ) |
Gets a body linear damping
| [in] | _pstBody | Concerned body |
| orxDLLAPI orxFLOAT orxFASTCALL orxBody_GetMass | ( | const orxBODY * | _pstBody ) |
Gets a body mass
| [in] | _pstBody | Concerned body |
| orxDLLAPI orxVECTOR* orxFASTCALL orxBody_GetMassCenter | ( | const orxBODY * | _pstBody, |
| orxVECTOR * | _pvMassCenter | ||
| ) |
Gets a body center of mass
| [in] | _pstBody | Concerned body |
| [out] | _pvMassCenter | Mass center to get |
| orxDLLAPI orxBODY_JOINT* orxFASTCALL orxBody_GetNextJoint | ( | const orxBODY * | _pstBody, |
| const orxBODY_JOINT * | _pstBodyJoint | ||
| ) |
Gets next body joint
| [in] | _pstBody | Concerned body |
| [in] | _pstBodyJoint | Current body joint (orxNULL to get the first one) |
| orxDLLAPI orxBODY_PART* orxFASTCALL orxBody_GetNextPart | ( | const orxBODY * | _pstBody, |
| const orxBODY_PART * | _pstBodyPart | ||
| ) |
Gets next body part
| [in] | _pstBody | Concerned body |
| [in] | _pstBodyPart | Current body part (orxNULL to get the first one) |
| orxDLLAPI orxSTRUCTURE* orxFASTCALL orxBody_GetOwner | ( | const orxBODY * | _pstBody ) |
| orxDLLAPI const orxSTRING orxFASTCALL orxBody_GetPartName | ( | const orxBODY_PART * | _pstBodyPart ) |
Gets a body part name
| [in] | _pstBodyPart | Concerned body part |
| orxDLLAPI orxVECTOR* orxFASTCALL orxBody_GetPosition | ( | const orxBODY * | _pstBody, |
| orxVECTOR * | _pvPosition | ||
| ) |
Gets a body position
| [in] | _pstBody | Concerned body |
| [out] | _pvPosition | Position to get |
| orxDLLAPI orxFLOAT orxFASTCALL orxBody_GetRotation | ( | const orxBODY * | _pstBody ) |
Gets a body rotation
| [in] | _pstBody | Concerned body |
| orxDLLAPI orxU16 orxFASTCALL orxBody_GetSelfFlags | ( | const orxBODY_PART * | _pstBodyPart ) |
Gets self flags of a physical body part
| [in] | _pstBodyPart | Concerned physical body part |
| orxDLLAPI orxVECTOR* orxFASTCALL orxBody_GetSpeed | ( | const orxBODY * | _pstBody, |
| orxVECTOR * | _pvSpeed | ||
| ) |
Gets a body speed
| [in] | _pstBody | Concerned body |
| [out] | _pvSpeed | Speed to get |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_Init | ( | ) |
Inits the Body module
| orxDLLAPI orxBODY* orxFASTCALL orxBody_Raycast | ( | const orxVECTOR * | _pvStart, |
| const orxVECTOR * | _pvEnd, | ||
| orxU16 | _u16SelfFlags, | ||
| orxU16 | _u16CheckMask, | ||
| orxBOOL | _bEarlyExit, | ||
| orxVECTOR * | _pvContact, | ||
| orxVECTOR * | _pvNormal | ||
| ) |
Issues a raycast to test for potential bodies in the way
| [in] | _pvStart | Start of raycast |
| [in] | _pvEnd | End of raycast |
| [in] | _u16SelfFlags | Selfs flags used for filtering (0xFFFF for no filtering) |
| [in] | _u16CheckMask | Check mask used for filtering (0xFFFF for no filtering) |
| [in] | _bEarlyExit | Should stop as soon as an object has been hit (which might not be the closest) |
| [in] | _pvContact | If non-null and a contact is found it will be stored here |
| [in] | _pvNormal | If non-null and a contact is found, its normal will be stored here |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_RemoveJoint | ( | orxBODY_JOINT * | _pstBodyJoint ) |
Removes a body joint
| [in] | _pstBodyJoint | Concerned body joint |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_RemovePart | ( | orxBODY_PART * | _pstBodyPart ) |
Removes a body part
| [in] | _pstBodyPart | Concerned body part |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetAngularDamping | ( | orxBODY * | _pstBody, |
| orxFLOAT | _fDamping | ||
| ) |
Sets a body angular damping
| [in] | _pstBody | Concerned body |
| [in] | _fDamping | Angular damping to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetAngularVelocity | ( | orxBODY * | _pstBody, |
| orxFLOAT | _fVelocity | ||
| ) |
Sets a body angular velocity
| [in] | _pstBody | Concerned body |
| [in] | _fVelocity | Angular velocity to set (radians/seconds) |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetCheckMask | ( | orxBODY_PART * | _pstBodyPart, |
| orxU16 | _u16CheckMask | ||
| ) |
Sets check mask of a physical body part
| [in] | _pstBodyPart | Concerned physical body part |
| [in] | _u16CheckMask | Check mask to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetCustomGravity | ( | orxBODY * | _pstBody, |
| const orxVECTOR * | _pvCustomGravity | ||
| ) |
Sets a body custom gravity
| [in] | _pstBody | Concerned body |
| [in] | _pvCustomGravity | Custom gravity to set / orxNULL to remove it |
Sets a body linear damping
| [in] | _pstBody | Concerned body |
| [in] | _fDamping | Linear damping to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetPosition | ( | orxBODY * | _pstBody, |
| const orxVECTOR * | _pvPosition | ||
| ) |
Sets a body position
| [in] | _pstBody | Concerned body |
| [in] | _pvPosition | Position to set |
Sets a body rotation
| [in] | _pstBody | Concerned body |
| [in] | _fRotation | Rotation to set (radians) |
Sets a body scale
| [in] | _pstBody | Concerned body |
| [in] | _pvScale | Scale to set |
| orxDLLAPI orxSTATUS orxFASTCALL orxBody_SetSelfFlags | ( | orxBODY_PART * | _pstBodyPart, |
| orxU16 | _u16SelfFlags | ||
| ) |
Sets self flags of a physical body part
| [in] | _pstBodyPart | Concerned physical body part |
| [in] | _u16SelfFlags | Self flags to set |
Sets a body speed
| [in] | _pstBody | Concerned body |
| [in] | _pvSpeed | Speed to set |
| orxDLLAPI void orxFASTCALL orxBody_Setup | ( | ) |
Body module setup
| orxDLLAPI orxBOOL orxFASTCALL orxBody_TestAllDefFlags | ( | const orxBODY * | _pstBody, |
| orxU32 | _u32Flags | ||
| ) |
Tests all flags against body definition ones
| [in] | _pstBody | Concerned body |
| [in] | _u32Flags | Flags to test |
| orxDLLAPI orxBOOL orxFASTCALL orxBody_TestDefFlags | ( | const orxBODY * | _pstBody, |
| orxU32 | _u32Flags | ||
| ) |
Tests flags against body definition ones
| [in] | _pstBody | Concerned body |
| [in] | _u32Flags | Flags to test |
1.5.6