java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleEngineDriveTransmissionCommandState
- Direct Known Subclasses:
PxVehicleTankDriveTransmissionCommandState
A description of the state of transmission-related commands that are applied to a vehicle with engine drive.
-
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
ConstructorsModifierConstructorDescriptionprotectedPxVehicleEngineDriveTransmissionCommandState(long address) -
Method Summary
Modifier and TypeMethodDescriptionarrayGet(long baseAddress, int index) voiddestroy()floatThe instantaneous state of the clutch controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.intThe desired gear of the input gear controller.voidsetClutch(float value) The instantaneous state of the clutch controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.voidsetTargetGear(int value) The desired gear of the input gear controller.voidwrapPointer(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
-
PxVehicleEngineDriveTransmissionCommandState
protected PxVehicleEngineDriveTransmissionCommandState(long address) -
PxVehicleEngineDriveTransmissionCommandState
public PxVehicleEngineDriveTransmissionCommandState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getClutch
public float getClutch()The instantaneous state of the clutch controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed. -
setClutch
public void setClutch(float value) The instantaneous state of the clutch controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed. -
getTargetGear
public int getTargetGear()The desired gear of the input gear controller. -
setTargetGear
public void setTargetGear(int value) The desired gear of the input gear controller. -
setToDefault
public void setToDefault()
-