Class Point2PointJoint

java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.Point2PointJoint
All Implemented Interfaces:
Savable

public class Point2PointJoint extends PhysicsJoint
From bullet manual:
Point to point constraint, also known as ball socket joint limits the translation so that the local pivot points of 2 rigid bodies match in worldspace. A chain of rigid bodies can be connected using this constraint.
  • Constructor Details

    • Point2PointJoint

      protected Point2PointJoint()
    • Point2PointJoint

      public Point2PointJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB)
      Parameters:
      nodeA - the body for the A end (not null, alias created)
      nodeB - the body for the B end (not null, alias created)
      pivotA - local translation of the joint connection point in node A
      pivotB - local translation of the joint connection point in node B
  • Method Details

    • setDamping

      public void setDamping(float value)
    • setImpulseClamp

      public void setImpulseClamp(float value)
    • setTau

      public void setTau(float value)
    • getDamping

      public float getDamping()
    • getImpulseClamp

      public float getImpulseClamp()
    • getTau

      public float getTau()
    • write

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Overrides:
      write in class PhysicsJoint
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Overrides:
      read in class PhysicsJoint
      Throws:
      IOException
    • createJoint

      protected void createJoint()