Public Member Functions | |
virtual MCCOMErr MCCOMAPI | GetForceAndTorque (const TPhysicalState &inPhysicalState, TVector3 &outForce, TVector3 &outTorque)=0 |
virtual boolean MCCOMAPI | WillApplyForce ()=0 |
virtual boolean MCCOMAPI | WillApplyTorque ()=0 |
I3DExForce defines a generic force that applies to all objects whose motion is controlled by physics.
virtual MCCOMErr MCCOMAPI I3DExForce::GetForceAndTorque | ( | const TPhysicalState & | inPhysicalState, | |
TVector3 & | outForce, | |||
TVector3 & | outTorque | |||
) | [pure virtual] |
Returns the force applied to an object in a given state (the force can depend position, speed, ...)
inPhysicalState | State of the object to which the force is applied | |
outForce | Force that is applied to this object in global coordinates | |
outTorque | Torque that is applied to this object in global coordinates |
Implemented in TBasicForce.
virtual boolean MCCOMAPI I3DExForce::WillApplyForce | ( | ) | [pure virtual] |
Returns true if this for applies a force (by opposition to torque)
Implemented in TBasicForce.
virtual boolean MCCOMAPI I3DExForce::WillApplyTorque | ( | ) | [pure virtual] |
Returns true if this for applies a torque (by opposition to force)
Implemented in TBasicForce.