-
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 PxVehicleGearboxStatearrayGet(long baseAddress, int index) voiddestroy()intCurrent gearfloatReported time that has passed since gear change started.intTarget gear (different from current gear if a gear change is underway)voidsetCurrentGear(int value) Current gearvoidsetGearSwitchTime(float value) Reported time that has passed since gear change started.voidsetTargetGear(int value) Target gear (different from current gear if a gear change is underway)voidstatic PxVehicleGearboxStatewrapPointer(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
-
PxVehicleGearboxState
protected PxVehicleGearboxState(long address) -
PxVehicleGearboxState
public PxVehicleGearboxState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getCurrentGear
public int getCurrentGear()Current gear -
setCurrentGear
public void setCurrentGear(int value) Current gear -
getTargetGear
public int getTargetGear()Target gear (different from current gear if a gear change is underway) -
setTargetGear
public void setTargetGear(int value) Target gear (different from current gear if a gear change is underway) -
getGearSwitchTime
public float getGearSwitchTime()Reported time that has passed since gear change started.The special value PX_VEHICLE_NO_GEAR_SWITCH_PENDING denotes that there is currently no gear change underway.
If a gear switch was initiated, the special value PX_VEHICLE_GEAR_SWITCH_INITIATED will be used temporarily but get translated to 0 in the gearbox update immediately. This state might only get encountered, if the vehicle component update is split into multiple sequences that do not run in one go.
Unit: time
-
setGearSwitchTime
public void setGearSwitchTime(float value) Reported time that has passed since gear change started.The special value PX_VEHICLE_NO_GEAR_SWITCH_PENDING denotes that there is currently no gear change underway.
If a gear switch was initiated, the special value PX_VEHICLE_GEAR_SWITCH_INITIATED will be used temporarily but get translated to 0 in the gearbox update immediately. This state might only get encountered, if the vehicle component update is split into multiple sequences that do not run in one go.
Unit: time
-
setToDefault
public void setToDefault()
-