Module groPhysics

Class MassObject

All Implemented Interfaces:
Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class MassObject extends Node
See Also:
  • Field Details

  • Constructor Details

    • MassObject

      public MassObject()
    • MassObject

      public MassObject(String name, Object object, float mass)
  • Method Details

    • getShape

      public com.bulletphysics.collision.shapes.CollisionShape getShape()
    • setShape

      public void setShape(com.bulletphysics.collision.shapes.CollisionShape shape)
    • getBody

      public com.bulletphysics.collision.dispatch.CollisionObject getBody()
    • setBody

      public void setBody(com.bulletphysics.dynamics.RigidBody body)
    • isInitialised

      public boolean isInitialised()
    • setInitialised

      public void setInitialised(boolean initialised)
    • getCurrentGlobalTransform

      public Matrix4d getCurrentGlobalTransform()
    • setCurrentGlobalTransform

      public void setCurrentGlobalTransform(Matrix4d m)
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Node
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Node
      Returns:
      new instance of class of this node
    • getMass

      public float getMass()
    • setMass

      public void setMass(float value)
    • getObject

      public Object getObject()
    • setObject

      public void setObject(Object value)
    • getInitialTransform

      public Matrix4d getInitialTransform()
    • setInitialTransform

      public void setInitialTransform(Matrix4d value)
    • getInitialPhysicsTransform

      public Matrix4d getInitialPhysicsTransform()
    • setInitialPhysicsTransform

      public void setInitialPhysicsTransform(Matrix4d value)
    • getOffsetCoG

      public Point3d getOffsetCoG()
    • setOffsetCoG

      public void setOffsetCoG(Point3d value)
    • getParentFrameTransform

      public Matrix4d getParentFrameTransform()
    • setParentFrameTransform

      public void setParentFrameTransform(Matrix4d value)