Class PxVehicleSuspensionParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionParams

public class PxVehicleSuspensionParams extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleSuspensionParams

      protected PxVehicleSuspensionParams(long address)
    • PxVehicleSuspensionParams

      public PxVehicleSuspensionParams()
  • Method Details

    • wrapPointer

      public static PxVehicleSuspensionParams wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getSuspensionAttachment

      public PxTransform getSuspensionAttachment()
      suspensionAttachment specifies the wheel pose at maximum compression. Note: suspensionAttachment is specified in the frame of the rigid body. Note: camber, steer and toe angles are all applied in the suspension frame.
    • setSuspensionAttachment

      public void setSuspensionAttachment(PxTransform value)
      suspensionAttachment specifies the wheel pose at maximum compression. Note: suspensionAttachment is specified in the frame of the rigid body. Note: camber, steer and toe angles are all applied in the suspension frame.
    • getSuspensionTravelDir

      public PxVec3 getSuspensionTravelDir()
      suspensionTravelDir specifies the direction of suspension travel. Note: suspensionTravelDir is specified in the frame of the rigid body.
    • setSuspensionTravelDir

      public void setSuspensionTravelDir(PxVec3 value)
      suspensionTravelDir specifies the direction of suspension travel. Note: suspensionTravelDir is specified in the frame of the rigid body.
    • getSuspensionTravelDist

      public float getSuspensionTravelDist()
      suspensionTravelDist is the maximum distance that the suspenson can elongate along #suspensionTravelDir from the pose specified by #suspensionAttachment. Note: The position suspensionAttachment.p + #suspensionTravelDir*#suspensionTravelDist corresponds to the the suspension at maximum droop in the rigid body frame.
    • setSuspensionTravelDist

      public void setSuspensionTravelDist(float value)
      suspensionTravelDist is the maximum distance that the suspenson can elongate along #suspensionTravelDir from the pose specified by #suspensionAttachment. Note: The position suspensionAttachment.p + #suspensionTravelDir*#suspensionTravelDist corresponds to the the suspension at maximum droop in the rigid body frame.
    • getWheelAttachment

      public PxTransform getWheelAttachment()
      wheelAttachment is the pose of the wheel in the suspension frame. Note: The rotation angle around the wheel's lateral axis is applied in the wheel attachment frame.
    • setWheelAttachment

      public void setWheelAttachment(PxTransform value)
      wheelAttachment is the pose of the wheel in the suspension frame. Note: The rotation angle around the wheel's lateral axis is applied in the wheel attachment frame.
    • transformAndScale

      public PxVehicleSuspensionParams 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: PxVehicleSuspensionParams [Value]
    • isValid

      public boolean isValid()
      Returns:
      WebIDL type: boolean