Package physx.physics

Class PxConstraint


public class PxConstraint extends PxBase
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxConstraint

      protected PxConstraint()
    • PxConstraint

      protected PxConstraint(long address)
  • Method Details

    • wrapPointer

      public static PxConstraint wrapPointer(long address)
    • arrayGet

      public static PxConstraint arrayGet(long baseAddress, int index)
    • getScene

      public PxScene getScene()
      Returns:
      WebIDL type: PxScene
    • setActors

      public void setActors(PxRigidActor actor0, PxRigidActor actor1)
      Parameters:
      actor0 - WebIDL type: PxRigidActor
      actor1 - WebIDL type: PxRigidActor
    • markDirty

      public void markDirty()
    • setFlags

      public void setFlags(PxConstraintFlags flags)
      Parameters:
      flags - WebIDL type: PxConstraintFlags [Ref]
    • getFlags

      public PxConstraintFlags getFlags()
      Returns:
      WebIDL type: PxConstraintFlags [Value]
    • setFlag

      public void setFlag(PxConstraintFlagEnum flag, boolean value)
      Parameters:
      flag - WebIDL type: PxConstraintFlagEnum [enum]
      value - WebIDL type: boolean
    • getForce

      public void getForce(PxVec3 linear, PxVec3 angular)
      Parameters:
      linear - WebIDL type: PxVec3 [Ref]
      angular - WebIDL type: PxVec3 [Ref]
    • isValid

      public boolean isValid()
      Returns:
      WebIDL type: boolean
    • setBreakForce

      public void setBreakForce(float linear, float angular)
      Parameters:
      linear - WebIDL type: float
      angular - WebIDL type: float
    • setMinResponseThreshold

      public void setMinResponseThreshold(float threshold)
      Parameters:
      threshold - WebIDL type: float
    • getMinResponseThreshold

      public float getMinResponseThreshold()
      Returns:
      WebIDL type: float