Class TwoBodyConstraintSettings

All Implemented Interfaces:
ConstConstraintSettings, ConstJoltPhysicsObject, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
ConeConstraintSettings, DistanceConstraintSettings, FixedConstraintSettings, GearConstraintSettings, HingeConstraintSettings, PathConstraintSettings, PointConstraintSettings, PulleyConstraintSettings, RackAndPinionConstraintSettings, SixDofConstraintSettings, SliderConstraintSettings, SwingTwistConstraintSettings

public abstract class TwoBodyConstraintSettings extends ConstraintSettings
Settings used to construct a TwoBodyConstraint.
  • Method Details

    • create

      public TwoBodyConstraint create(Body body1, Body body2)
      Create a constraint using the settings. The settings are unaffected.
      Parameters:
      body1 - the desired first body (not null)
      body2 - the desired 2nd body (not null)
      Returns:
      a new constraint
    • toRef

      Create a counted reference to the native ConstraintSettings.
      Specified by:
      toRef in interface RefTarget
      Overrides:
      toRef in class ConstraintSettings
      Returns:
      a new JVM object with a new native object assigned