Class JBulletRigidBody

java.lang.Object
org.episteme.nativ.physics.classical.mechanics.collision.backends.jbullet.JBulletRigidBody
All Implemented Interfaces:
RigidBodyBridge

public class JBulletRigidBody extends Object implements RigidBodyBridge
JBullet implementation of RigidBodyBackend.
  • Constructor Details

    • JBulletRigidBody

      public JBulletRigidBody(RigidBody owner)
  • Method Details

    • pushState

      public void pushState()
      Description copied from interface: RigidBodyBridge
      Syncs the backend state from the Episteme object. Called before simulation step.
      Specified by:
      pushState in interface RigidBodyBridge
    • pullState

      public void pullState()
      Description copied from interface: RigidBodyBridge
      Syncs the Episteme object from the backend state. Called after simulation step.
      Specified by:
      pullState in interface RigidBodyBridge
    • applyCentralForce

      public void applyCentralForce(double x, double y, double z)
      Description copied from interface: RigidBodyBridge
      Apply a central force to the body.
      Specified by:
      applyCentralForce in interface RigidBodyBridge
      Parameters:
      x - force x
      y - force y
      z - force z
    • applyCentralImpulse

      public void applyCentralImpulse(double x, double y, double z)
      Description copied from interface: RigidBodyBridge
      Apply a central impulse to the body.
      Specified by:
      applyCentralImpulse in interface RigidBodyBridge
      Parameters:
      x - impulse x
      y - impulse y
      z - impulse z
    • getBulletBody

      public com.bulletphysics.dynamics.RigidBody getBulletBody()
    • destroy

      public void destroy()
      Description copied from interface: RigidBodyBridge
      Destroys native resources associated with this body.
      Specified by:
      destroy in interface RigidBodyBridge
    • getOwner

      public RigidBody getOwner()
      Description copied from interface: RigidBodyBridge
      Gets the Episteme RigidBody owner of this bridge.
      Specified by:
      getOwner in interface RigidBodyBridge