java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionParams
-
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 TypeMethodDescriptionstatic PxVehicleSuspensionParamsarrayGet(long baseAddress, int index) voiddestroy()suspensionAttachment specifies the wheel pose at maximum compression.suspensionTravelDir specifies the direction of suspension travel.floatsuspensionTravelDist is the maximum distance that the suspenson can elongate along #suspensionTravelDir from the pose specified by #suspensionAttachment.wheelAttachment is the pose of the wheel in the suspension frame.booleanisValid()voidsuspensionAttachment specifies the wheel pose at maximum compression.voidsetSuspensionTravelDir(PxVec3 value) suspensionTravelDir specifies the direction of suspension travel.voidsetSuspensionTravelDist(float value) suspensionTravelDist is the maximum distance that the suspenson can elongate along #suspensionTravelDir from the pose specified by #suspensionAttachment.voidsetWheelAttachment(PxTransform value) wheelAttachment is the pose of the wheel in the suspension frame.transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleSuspensionParamswrapPointer(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
-
PxVehicleSuspensionParams
protected PxVehicleSuspensionParams(long address) -
PxVehicleSuspensionParams
public PxVehicleSuspensionParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
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
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
suspensionTravelDir specifies the direction of suspension travel. Note: suspensionTravelDir is specified in the frame of the rigid body. -
setSuspensionTravelDir
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
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
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
-