Class JBulletRigidBody
java.lang.Object
org.episteme.nativ.physics.classical.mechanics.collision.backends.jbullet.JBulletRigidBody
- All Implemented Interfaces:
RigidBodyBridge
JBullet 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.com.bulletphysics.dynamics.RigidBodygetOwner()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
-
JBulletRigidBody
-
-
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
-
getBulletBody
public com.bulletphysics.dynamics.RigidBody getBulletBody() -
destroy
public void destroy()Description copied from interface:RigidBodyBridgeDestroys native resources associated with this body.- Specified by:
destroyin interfaceRigidBodyBridge
-
getOwner
Description copied from interface:RigidBodyBridgeGets the Episteme RigidBody owner of this bridge.- Specified by:
getOwnerin interfaceRigidBodyBridge
-