java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSimulationContext
- Direct Known Subclasses:
PxVehiclePhysXSimulationContext
-
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 PxVehicleSimulationContextarrayGet(long baseAddress, int index) voiddestroy()getFrame()Structure to support Omni PVD, the PhysX Visual Debugger.getScale()floatForward wheel speed below which the wheel rotation speed gets blended with the rolling speed.getType()voidsetFrame(PxVehicleFrame value) voidsetGravity(PxVec3 value) voidsetPvdContext(PxVehiclePvdContext value) Structure to support Omni PVD, the PhysX Visual Debugger.voidsetScale(PxVehicleScale value) voidsetThresholdForwardSpeedForWheelAngleIntegration(float value) Forward wheel speed below which the wheel rotation speed gets blended with the rolling speed.voidvoidvoidtransformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleSimulationContextwrapPointer(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
-
PxVehicleSimulationContext
protected PxVehicleSimulationContext(long address) -
PxVehicleSimulationContext
public PxVehicleSimulationContext()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getGravity
-
setGravity
-
getFrame
-
setFrame
-
getScale
-
setScale
-
getTireSlipParams
-
setTireSlipParams
-
getTireStickyParams
-
setTireStickyParams
-
getThresholdForwardSpeedForWheelAngleIntegration
public float getThresholdForwardSpeedForWheelAngleIntegration()Forward wheel speed below which the wheel rotation speed gets blended with the rolling speed.The blended rotation speed is used to integrate the wheel rotation angle. At low forward wheel speed, the wheel rotation speed can get unstable (depending on the tire model used) and, for example, oscillate.
Note: If brake or throttle is applied, there will be no blending.
Unit: velocity = length / time
-
setThresholdForwardSpeedForWheelAngleIntegration
public void setThresholdForwardSpeedForWheelAngleIntegration(float value) Forward wheel speed below which the wheel rotation speed gets blended with the rolling speed.The blended rotation speed is used to integrate the wheel rotation angle. At low forward wheel speed, the wheel rotation speed can get unstable (depending on the tire model used) and, for example, oscillate.
Note: If brake or throttle is applied, there will be no blending.
Unit: velocity = length / time
-
getPvdContext
Structure to support Omni PVD, the PhysX Visual Debugger. -
setPvdContext
Structure to support Omni PVD, the PhysX Visual Debugger. -
getType
- Returns:
- WebIDL type:
PxVehicleSimulationContextTypeEnum[enum]
-
setToDefault
public void setToDefault() -
transformAndScale
public PxVehicleSimulationContext 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:
PxVehicleSimulationContext[Value]
-