Class PxVehicleRigidBodyParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleRigidBodyParams

public class PxVehicleRigidBodyParams extends NativeObject
The properties of the rigid body.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleRigidBodyParams

      protected PxVehicleRigidBodyParams(long address)
    • PxVehicleRigidBodyParams

      public PxVehicleRigidBodyParams()
  • Method Details

    • wrapPointer

      public static PxVehicleRigidBodyParams wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getMass

      public float getMass()
      The mass of the rigid body.

      Range: (0, inf)
      Unit: mass

    • setMass

      public void setMass(float value)
      The mass of the rigid body.

      Range: (0, inf)
      Unit: mass

    • getMoi

      public PxVec3 getMoi()
      The moment of inertia of the rigid body.

      Range: (0, inf)
      Unit: mass * (length^2)

    • setMoi

      public void setMoi(PxVec3 value)
      The moment of inertia of the rigid body.

      Range: (0, inf)
      Unit: mass * (length^2)

    • transformAndScale

      public PxVehicleRigidBodyParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale)
      Parameters:
      srcFrame - WebIDL type: PxVehicleFrame [Const, Ref]
      trgFrame - WebIDL type: PxVehicleFrame [Const, Ref]
      srcScale - WebIDL type: PxVehicleScale [Const, Ref]
      trgScale - WebIDL type: PxVehicleScale [Const, Ref]
      Returns:
      WebIDL type: PxVehicleRigidBodyParams [Value]
    • isValid

      public boolean isValid()
      Returns:
      WebIDL type: boolean