Class PxVehicleSuspensionForceParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionForceParams

public class PxVehicleSuspensionForceParams extends NativeObject
Suspension force is computed by converting suspenson state to suspension force under the assumption of a linear spring.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleSuspensionForceParams

      protected PxVehicleSuspensionForceParams(long address)
    • PxVehicleSuspensionForceParams

      public PxVehicleSuspensionForceParams()
  • Method Details

    • wrapPointer

      public static PxVehicleSuspensionForceParams wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getStiffness

      public float getStiffness()
      Spring strength of suspension.

      Range: (0, inf)
      Unit: mass / (time^2)

    • setStiffness

      public void setStiffness(float value)
      Spring strength of suspension.

      Range: (0, inf)
      Unit: mass / (time^2)

    • getDamping

      public float getDamping()
      Spring damper rate of suspension.

      Range: [0, inf)
      Unit: mass / time

    • setDamping

      public void setDamping(float value)
      Spring damper rate of suspension.

      Range: [0, inf)
      Unit: mass / time

    • getSprungMass

      public float getSprungMass()
      Part of the vehicle mass that is supported by the suspension spring.

      Range: (0, inf)
      Unit: mass

    • setSprungMass

      public void setSprungMass(float value)
      Part of the vehicle mass that is supported by the suspension spring.

      Range: (0, inf)
      Unit: mass

    • transformAndScale

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

      public boolean isValid()
      Returns:
      WebIDL type: boolean