Class PxJoint

Direct Known Subclasses:
PxD6Joint, PxDistanceJoint, PxFixedJoint, PxPrismaticJoint, PxRevoluteJoint, PxSphericalJoint

public class PxJoint extends PxBase
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxJoint

      protected PxJoint()
    • PxJoint

      protected PxJoint(long address)
  • Method Details

    • wrapPointer

      public static PxJoint wrapPointer(long address)
    • arrayGet

      public static PxJoint arrayGet(long baseAddress, int index)
    • getUserData

      public NativeObject getUserData()
      Returns:
      WebIDL type: VoidPtr
    • setUserData

      public void setUserData(NativeObject value)
      Parameters:
      value - WebIDL type: VoidPtr
    • setActors

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

      public void setLocalPose(PxJointActorIndexEnum actor, PxTransform localPose)
      Parameters:
      actor - WebIDL type: PxJointActorIndexEnum [enum]
      localPose - WebIDL type: PxTransform [Const, Ref]
    • getLocalPose

      public PxTransform getLocalPose(PxJointActorIndexEnum actor)
      Parameters:
      actor - WebIDL type: PxJointActorIndexEnum [enum]
      Returns:
      WebIDL type: PxTransform [Value]
    • getRelativeTransform

      public PxTransform getRelativeTransform()
      Returns:
      WebIDL type: PxTransform [Value]
    • getRelativeLinearVelocity

      public PxVec3 getRelativeLinearVelocity()
      Returns:
      WebIDL type: PxVec3 [Value]
    • getRelativeAngularVelocity

      public PxVec3 getRelativeAngularVelocity()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setBreakForce

      public void setBreakForce(float force, float torque)
      Parameters:
      force - WebIDL type: float
      torque - WebIDL type: float
    • setConstraintFlags

      public void setConstraintFlags(PxConstraintFlags flags)
      Parameters:
      flags - WebIDL type: PxConstraintFlags [Ref]
    • setConstraintFlag

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

      public PxConstraintFlags getConstraintFlags()
      Returns:
      WebIDL type: PxConstraintFlags [Value]
    • setInvMassScale0

      public void setInvMassScale0(float invMassScale)
      Parameters:
      invMassScale - WebIDL type: float
    • getInvMassScale0

      public float getInvMassScale0()
      Returns:
      WebIDL type: float
    • setInvMassScale1

      public void setInvMassScale1(float invMassScale)
      Parameters:
      invMassScale - WebIDL type: float
    • getInvMassScale1

      public float getInvMassScale1()
      Returns:
      WebIDL type: float
    • getConstraint

      public PxConstraint getConstraint()
      Returns:
      WebIDL type: PxConstraint
    • setName

      public void setName(String name)
      Parameters:
      name - WebIDL type: DOMString [Const]
    • getName

      public String getName()
      Returns:
      WebIDL type: DOMString [Const]
    • getScene

      public PxScene getScene()
      Returns:
      WebIDL type: PxScene