java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionForceParams
Suspension force is computed by converting suspenson state to suspension force under the assumption of a linear spring.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrayGet(long baseAddress, int index) voiddestroy()floatSpring damper rate of suspension.floatPart of the vehicle mass that is supported by the suspension spring.floatSpring strength of suspension.booleanisValid()voidsetDamping(float value) Spring damper rate of suspension.voidsetSprungMass(float value) Part of the vehicle mass that is supported by the suspension spring.voidsetStiffness(float value) Spring strength of suspension.transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) wrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
-
arrayGet
-
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
-