# TBasicForce Class Reference
[Base Classes for plugins]

Inheritance diagram for TBasicForce:

List of all members.

## Public Member Functions
| TBasicForce ()
| ~TBasicForce ()
virtual MCCOMErr MCCOMAPI | GetForceAndTorque (const TPhysicalState &inPhysicalState, TVector3 &outForce, TVector3 &outTorque)
virtual boolean MCCOMAPI | WillApplyForce ()
virtual boolean MCCOMAPI | WillApplyTorque ()
## Protected Member Functions
void | RefreshTimeBasedData ()

## Detailed Description

Basic Force class. Derive from this for a default implementation of an I3DExForce.

See also:
  I3DExForce

## Constructor & Destructor Documentation

TBasicForce::TBasicForce | ( |  | ) |

TBasicForce::~TBasicForce | ( |  | ) |

## Member Function Documentation

virtual MCCOMErr MCCOMAPI TBasicForce::GetForceAndTorque | ( | const TPhysicalState & | inPhysicalState,
|  | TVector3 & | outForce,
|  | TVector3 & | outTorque |
| ) |  |  | `[virtual]`

Returns the force applied to an object in a given state (the force can depend position, speed, ...)

Parameters:

  | 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

Returns:
  MC_S_OK if succeeded.

Implements I3DExForce.

void TBasicForce::RefreshTimeBasedData | ( |  | ) | `[protected]`

virtual boolean MCCOMAPI TBasicForce::WillApplyForce | ( |  | ) | `[virtual]`

Returns true if this for applies a force (by opposition to torque)

Implements I3DExForce.

virtual boolean MCCOMAPI TBasicForce::WillApplyTorque | ( |  | ) | `[virtual]`

Returns true if this for applies a torque (by opposition to force)

Implements I3DExForce.

The documentation for this class was generated from the following file:

- Basic3DCOMImplementations.h