Class PxVehicleRigidBodyState

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleRigidBodyState

public class PxVehicleRigidBodyState extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleRigidBodyState

      protected PxVehicleRigidBodyState(long address)
    • PxVehicleRigidBodyState

      public PxVehicleRigidBodyState()
  • Method Details

    • wrapPointer

      public static PxVehicleRigidBodyState wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getPose

      public PxTransform getPose()
      the body's pose (in world space)
    • setPose

      public void setPose(PxTransform value)
      the body's pose (in world space)
    • getLinearVelocity

      public PxVec3 getLinearVelocity()
      the body's linear velocity (in world space)
    • setLinearVelocity

      public void setLinearVelocity(PxVec3 value)
      the body's linear velocity (in world space)
    • getAngularVelocity

      public PxVec3 getAngularVelocity()
      the body's angular velocity (in world space)
    • setAngularVelocity

      public void setAngularVelocity(PxVec3 value)
      the body's angular velocity (in world space)
    • getPreviousLinearVelocity

      public PxVec3 getPreviousLinearVelocity()
      the previous linear velocity of the body (in world space)
    • setPreviousLinearVelocity

      public void setPreviousLinearVelocity(PxVec3 value)
      the previous linear velocity of the body (in world space)
    • getPreviousAngularVelocity

      public PxVec3 getPreviousAngularVelocity()
      the previous angular velocity of the body (in world space)
    • setPreviousAngularVelocity

      public void setPreviousAngularVelocity(PxVec3 value)
      the previous angular velocity of the body (in world space)
    • getExternalForce

      public PxVec3 getExternalForce()
      external force (in world space) affecting the rigid body (usually excluding gravitational force)
    • setExternalForce

      public void setExternalForce(PxVec3 value)
      external force (in world space) affecting the rigid body (usually excluding gravitational force)
    • getExternalTorque

      public PxVec3 getExternalTorque()
      external torque (in world space) affecting the rigid body
    • setExternalTorque

      public void setExternalTorque(PxVec3 value)
      external torque (in world space) affecting the rigid body
    • setToDefault

      public void setToDefault()
    • getVerticalSpeed

      public float getVerticalSpeed(PxVehicleFrame frame)
      Compute the vertical speed of the rigid body transformed to the world frame.
      Parameters:
      frame - describes the axes of the vehicle
    • getLateralSpeed

      public float getLateralSpeed(PxVehicleFrame frame)
      Parameters:
      frame - describes the axes of the vehicle Compute the lateral speed of the rigid body transformed to the world frame.
    • getLongitudinalSpeed

      public float getLongitudinalSpeed(PxVehicleFrame frame)
      Compute the longitudinal speed of the rigid body transformed to the world frame.
      Parameters:
      frame - describes the axes of the vehicle