Class ConeJoint

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

public class ConeJoint extends PhysicsJoint
From bullet manual:
To create ragdolls, the cone twist constraint is very useful for limbs like the upper arm. It is a special point to point constraint that adds cone and twist axis limits. The x-axis serves as twist axis.
Author:
normenhansen
  • Field Details

    • rotA

      protected com.jme3.math.Matrix3f rotA
    • rotB

      protected com.jme3.math.Matrix3f rotB
    • swingSpan1

      protected float swingSpan1
    • swingSpan2

      protected float swingSpan2
    • twistSpan

      protected float twistSpan
    • angularOnly

      protected boolean angularOnly
  • Constructor Details

    • ConeJoint

      protected ConeJoint()
    • ConeJoint

      public ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, com.jme3.math.Vector3f pivotA, com.jme3.math.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
    • ConeJoint

      public ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, com.jme3.math.Vector3f pivotA, com.jme3.math.Vector3f pivotB, com.jme3.math.Matrix3f rotA, com.jme3.math.Matrix3f rotB)
      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
      rotA - the joint orientation in A's local coordinates (rotation matrix, alias created)
      rotB - the joint orientation in B's local coordinates (rotation matrix, alias created)
  • Method Details

    • setLimit

      public void setLimit(float swingSpan1, float swingSpan2, float twistSpan)
    • setAngularOnly

      public void setAngularOnly(boolean value)
    • write

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

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

      protected void createJoint()