java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
- Direct Known Subclasses:
PxVehicleFourWheelDriveDifferentialParams,PxVehicleTankDriveDifferentialParams
PxVehicleMultiWheelDriveDifferentialParams specifies the wheels that are to receive drive torque from the differential
and the division of torque between the wheels that are connected to the differential.
-
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 TypeMethodDescriptionarrayGet(long baseAddress, int index) createAt(long address) static <T> PxVehicleMultiWheelDriveDifferentialParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatgetAveWheelSpeedRatios(int index) floatgetTorqueRatios(int index) booleanisValid(PxVehicleAxleDescription axleDesc) voidsetAveWheelSpeedRatios(int index, float value) voidvoidsetTorqueRatios(int index, float value) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) wrapPointer(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
-
PxVehicleMultiWheelDriveDifferentialParams
protected PxVehicleMultiWheelDriveDifferentialParams(long address) -
PxVehicleMultiWheelDriveDifferentialParams
public PxVehicleMultiWheelDriveDifferentialParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleMultiWheelDriveDifferentialParams
-
createAt
public static <T> PxVehicleMultiWheelDriveDifferentialParams createAt(T allocator, NativeObject.Allocator<T> allocate) - 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 PxVehicleMultiWheelDriveDifferentialParams
-
destroy
public void destroy() -
getTorqueRatios
public float getTorqueRatios(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setTorqueRatios
public void setTorqueRatios(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getAveWheelSpeedRatios
public float getAveWheelSpeedRatios(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setAveWheelSpeedRatios
public void setAveWheelSpeedRatios(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
setToDefault
public void setToDefault() -
transformAndScale
public PxVehicleMultiWheelDriveDifferentialParams 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:
PxVehicleMultiWheelDriveDifferentialParams[Value]
-
isValid
- Parameters:
axleDesc- WebIDL type:PxVehicleAxleDescription[Const, Ref]- Returns:
- WebIDL type: boolean
-