java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleAutoboxParams
-
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 PxVehicleAutoboxParamsarrayGet(long baseAddress, int index) static PxVehicleAutoboxParamscreateAt(long address) static <T> PxVehicleAutoboxParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatgetDownRatios(int index) floatSet the latency time of the autobox.floatgetUpRatios(int index) booleanisValid(PxVehicleGearboxParams gearboxParams) voidsetDownRatios(int index, float value) voidsetLatency(float value) Set the latency time of the autobox.voidsetUpRatios(int index, float value) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleAutoboxParamswrapPointer(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
-
PxVehicleAutoboxParams
protected PxVehicleAutoboxParams(long address) -
PxVehicleAutoboxParams
public PxVehicleAutoboxParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleAutoboxParams
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxVehicleAutoboxParams
-
destroy
public void destroy() -
getUpRatios
public float getUpRatios(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setUpRatios
public void setUpRatios(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getDownRatios
public float getDownRatios(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setDownRatios
public void setDownRatios(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getLatency
public float getLatency()Set the latency time of the autobox.Note: Latency time is the minimum time that must pass between each gear change that is initiated by the autobox. The auto-box will only attempt to initiate another gear change up or down if the simulation time that has passed since the most recent automated gear change is greater than the specified latency.
Range: [0, inf)
Unit: time -
setLatency
public void setLatency(float value) Set the latency time of the autobox.Note: Latency time is the minimum time that must pass between each gear change that is initiated by the autobox. The auto-box will only attempt to initiate another gear change up or down if the simulation time that has passed since the most recent automated gear change is greater than the specified latency.
Range: [0, inf)
Unit: time -
transformAndScale
public PxVehicleAutoboxParams 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:
PxVehicleAutoboxParams[Value]
-
isValid
- Parameters:
gearboxParams- WebIDL type:PxVehicleGearboxParams[Const, Ref]- Returns:
- WebIDL type: boolean
-