Class ODERigidBody
java.lang.Object
org.episteme.nativ.physics.classical.mechanics.collision.backends.ode.ODERigidBody
- All Implemented Interfaces:
RigidBodyBridge
ODE implementation of RigidBodyBackend.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCentralForce(double x, double y, double z) Apply a central force to the body.voidapplyCentralImpulse(double x, double y, double z) Apply a central impulse to the body.voiddestroy()Destroys native resources associated with this body.getOwner()Gets the Episteme RigidBody owner of this bridge.voidSyncs the Episteme object from the backend state.voidSyncs the backend state from the Episteme object.
-
Constructor Details
-
ODERigidBody
-
-
Method Details
-
pushState
public void pushState()Description copied from interface:RigidBodyBridgeSyncs the backend state from the Episteme object. Called before simulation step.- Specified by:
pushStatein interfaceRigidBodyBridge
-
pullState
public void pullState()Description copied from interface:RigidBodyBridgeSyncs the Episteme object from the backend state. Called after simulation step.- Specified by:
pullStatein interfaceRigidBodyBridge
-
applyCentralForce
public void applyCentralForce(double x, double y, double z) Description copied from interface:RigidBodyBridgeApply a central force to the body.- Specified by:
applyCentralForcein interfaceRigidBodyBridge- Parameters:
x- force xy- force yz- force z
-
applyCentralImpulse
public void applyCentralImpulse(double x, double y, double z) Description copied from interface:RigidBodyBridgeApply a central impulse to the body.- Specified by:
applyCentralImpulsein interfaceRigidBodyBridge- Parameters:
x- impulse xy- impulse yz- impulse z
-
getOwner
Description copied from interface:RigidBodyBridgeGets the Episteme RigidBody owner of this bridge.- Specified by:
getOwnerin interfaceRigidBodyBridge
-
destroy
public void destroy()Description copied from interface:RigidBodyBridgeDestroys native resources associated with this body.- Specified by:
destroyin interfaceRigidBodyBridge
-