The Body type exposes the following members.

Methods

  NameDescription
Public methodAddBodyForce(Vector3)
AddBodyForce
Public methodAddBodyForce(Vector3, Vector3)
AddBodyForce
Public methodAddBodyTorque
AddBodyTorque
Public methodAddConstraint
AddConstraint
Public methodAddExternalForces
Allow the body to add on any additional forces (including gravity)/impulses etc. Default behaviour sets to gravity.
Public methodAddGravityToExternalForce
Adds the force of global gravity to the external force, if the body is marked to be effected via global gravity
Public methodAddMovementActivation
Adds the other body to the list of bodies to be activated if this body moves more than a certain distance from either a previously stored position, or the position passed in.
Public methodAddWorldForce(Vector3)
AddWorldForce
Public methodAddWorldForce(Vector3, Vector3)
AddWordForce
Public methodAddWorldTorque
AddWorldTorque
Public methodApplyBodyAngImpulse
ApplyBodyAngImpulse
Public methodApplyBodyImpulse(Vector3)
ApplyBodyImpulse
Public methodApplyBodyImpulse(Vector3, Vector3)
ApplyBodyImpulse
Public methodApplyBodyWorldImpulse(Vector3, Vector3)
ApplyBodyWorldImpulse
Public methodApplyBodyWorldImpulse(Vector3%, Vector3%)
ApplyBodyWorldImpulse
Public methodApplyBodyWorldImpulseAux
ApplyBodyWorldImpulseAux
Public methodApplyNegativeBodyImpulse(Vector3)
ApplyNegativeBodyImpulse
Public methodApplyNegativeBodyImpulse(Vector3, Vector3)
ApplyNegativeBodyImpulse
Public methodApplyNegativeBodyWorldImpulse(Vector3, Vector3)
ApplyNegativeBodyWorldImpulse
Public methodApplyNegativeBodyWorldImpulse(Vector3%, Vector3%)
ApplyNegativeBodyWorldImpulse
Public methodApplyNegativeBodyWorldImpulseAux
ApplyNegativeBodyWorldImpulseAux
Public methodApplyNegativeWorldImpulse(Vector3)
ApplyNegativeWorldImpulse
Public methodApplyNegativeWorldImpulse(Vector3, Vector3)
ApplyNegativeWorldImpulse
Public methodApplyNegativeWorldImpulseAux(Vector3)
ApplyNegativeWorldImpulseAux
Public methodApplyNegativeWorldImpulseAux(Vector3, Vector3)
ApplyNegativeWorldImpulseAux
Public methodApplyWorldAngImpulse
ApplyWorldAngImpulse
Public methodApplyWorldImpulse(Vector3)
ApplyWorldImpulse
Public methodApplyWorldImpulse(Vector3, Vector3)
ApplyWorldImpulse
Public methodApplyWorldImpulse(Vector3%, Vector3%)
ApplyWorldImpulse
Public methodApplyWorldImpulseAux(Vector3)
ApplyWorldImpulseAux
Public methodApplyWorldImpulseAux(Vector3, Vector3)
ApplyWorldImpulseAux
Public methodClearForces
This just sets all forces/impulses etc to zero
Public methodClearVelChanged
Sets velChanged to false
Public methodCopyCurrentStateToOld
Copies the current position etc to old - normally called only by tPhysicsSystem.
Public methodDampForDeactivation
Damp movement as the body approaches deactivation
Public methodDisableBody
Deregiser from the physics system.
Public methodEnableBody
Register with the physics system.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetShouldBeActive
Indicates if the velocity is above the threshold for freezing
Public methodGetShouldBeActiveAux
GetShouldBeActiveAux
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVelocity(Vector3)
Returns the velocity of a point at body-relative position (in world frame) relPos
Public methodGetVelocity(Vector3%, Vector3%)
Returns the velocity of a point at body-relative position (in world frame) relPos
Public methodGetVelocityAux(Vector3)
As GetVelocity but just uses the aux velocities
Public methodGetVelocityAux(Vector3%, Vector3%)
As GetVelocity but just uses the aux velocities
Public methodInternalSetImmovable
Used by physics to temporarily make an object immovable - needs to restore afterwards!
Public methodLimitAngVel
LimitAngVel
Public methodLimitVel
LimitVel
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveTo
This sets the position (sets the vel to 0), but it also tries to make sure that any frozen bodies resting against this one get activated if necessary. Not very efficient. Be a little careful about when you call it - it will mess with the physics collision list. Also, after this call the object will be active.
Public methodPostPhysics
Called right at the end of the timestep to notify the derived classes.
Public methodPrePhysics
Called right at the beginning of the timestep to notify the derived classes.
Public methodRemoveConstraint
RemoveConstraint
Public methodRestoreState
Restore from the stored state into our current state.
Public methodSetActive
Make the body active.
Public methodSetActivityThreshold
Set what the velocity threshold is for activation. rot is in deg per second.
Public methodSetBodyInertia
SetBodyInertia
Public methodSetBodyInvInertia
SetBodyInvInertia
Public methodSetConstraintsAndCollisionsUnsatisfied
SetConstraintsAndCollisionsUnsatisfied
Public methodSetDeactivationTime
Set how long it takes to deactivate.
Public methodSetInactive
SetInactive
Public methodSetOrientation
SetOrientation
Public methodStoreState
Copy our current state (position, velocity etc) into the stored state
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUpdateDeactivation
UpdateDeactivation
Public methodUpdatePosition
Implementation updates the position/orientation with the current velocties.
Public methodUpdatePositionWithAux
Updates the position with the auxilary velocities, and zeros them.
Public methodUpdateVelocity
Implementation updates the velocity/angular rotation with the force/torque.

Extension Methods

  NameDescription
Public Extension MethodTransformWireframe
TransformWireframe
(Defined by BodyRenderExtensions.)

See Also