Class PxVehicleSuspensionForce

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionForce

public class PxVehicleSuspensionForce extends NativeObject
The force and torque for a single suspension to apply to the vehicle's rigid body.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleSuspensionForce

      protected PxVehicleSuspensionForce(long address)
    • PxVehicleSuspensionForce

      public PxVehicleSuspensionForce()
  • Method Details

    • wrapPointer

      public static PxVehicleSuspensionForce wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getForce

      public PxVec3 getForce()
      The force to apply to the rigid body. Note: force is expressed in the world frame.

      Unit: mass * length / (time^2)

    • setForce

      public void setForce(PxVec3 value)
      The force to apply to the rigid body. Note: force is expressed in the world frame.

      Unit: mass * length / (time^2)

    • getTorque

      public PxVec3 getTorque()
      The torque to apply to the rigid body. Note: torque is expressed in the world frame.

      Unit: mass * (length^2) / (time^2)

    • setTorque

      public void setTorque(PxVec3 value)
      The torque to apply to the rigid body. Note: torque is expressed in the world frame.

      Unit: mass * (length^2) / (time^2)

    • getNormalForce

      public float getNormalForce()
      The component of force that lies along the normal of the plane under the wheel. Note: normalForce may be used by the tire model as the tire load.

      Unit: mass * length / (time^2)

    • setNormalForce

      public void setNormalForce(float value)
      The component of force that lies along the normal of the plane under the wheel. Note: normalForce may be used by the tire model as the tire load.

      Unit: mass * length / (time^2)

    • setToDefault

      public void setToDefault()