Package physx.physics

Class PxConstraintInfo

java.lang.Object
physx.NativeObject
physx.physics.PxConstraintInfo

public class PxConstraintInfo extends NativeObject
Descriptor for a broken constraint.

An array of these structs gets passed to the PxSimulationEventCallback::onConstraintBreak() report.

See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxConstraintInfo

      protected PxConstraintInfo()
    • PxConstraintInfo

      protected PxConstraintInfo(long address)
  • Method Details

    • wrapPointer

      public static PxConstraintInfo wrapPointer(long address)
    • arrayGet

      public static PxConstraintInfo arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getConstraint

      public PxConstraint getConstraint()
      The broken constraint.
    • setConstraint

      public void setConstraint(PxConstraint value)
      The broken constraint.
    • getExternalReference

      public NativeObject getExternalReference()
      The external object which owns the constraint (see #PxConstraintConnector::getExternalReference())
    • setExternalReference

      public void setExternalReference(NativeObject value)
      The external object which owns the constraint (see #PxConstraintConnector::getExternalReference())
    • getType

      public int getType()
      Unique type ID of the external object. Allows to cast the provided external reference to the appropriate type
    • setType

      public void setType(int value)
      Unique type ID of the external object. Allows to cast the provided external reference to the appropriate type