Class TwoBodyConstraintSettings

All Implemented Interfaces:
ConstConstraintSettings, ConstJoltPhysicsObject, ConstSerializableObject, 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 rigidBody1, Body rigidBody2)
      Create a constraint using the settings. The settings are unaffected.
      Parameters:
      rigidBody1 - the desired first body (not null, not soft)
      rigidBody2 - the desired 2nd body (not null, not soft)
      Returns:
      the new constraint, ready to be added to a PhysicsSystem
    • 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