Package physx.physics

Class PxConstraint


  • public class PxConstraint
    extends PxBase
    • Constructor Detail

      • PxConstraint

        protected PxConstraint()
      • PxConstraint

        protected PxConstraint​(long address)
    • Method Detail

      • wrapPointer

        public static PxConstraint wrapPointer​(long address)
      • release

        public void release()
        Overrides:
        release in class PxBase
      • markDirty

        public void markDirty()
      • setFlag

        public void setFlag​(int 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