Class ConeConstraint

All Implemented Interfaces:
ConstConstraint, ConstJoltPhysicsObject, ConstTwoBodyConstraint, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>

public class ConeConstraint extends TwoBodyConstraint
A TwoBodyConstraint that limits the swing of the twist axes to a cone and disables translation.
  • Method Details

    • getCosHalfConeAngle

      public float getCosHalfConeAngle()
      Return the cosine of half the cone angle. The constraint is unaffected.
      Returns:
      the cosine ratio
    • setHalfConeAngle

      public void setHalfConeAngle(float halfAngle)
      Alter the cone angle.
      Parameters:
      halfAngle - the desired half angle (in radians)