java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
physx.vehicle2.PxVehicleTankDriveDifferentialParams
public class PxVehicleTankDriveDifferentialParams
extends PxVehicleMultiWheelDriveDifferentialParams
-
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> PxVehicleTankDriveDifferentialParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatgetAveWheelSpeedRatios(int index) intintgetNbWheelsInTrack(int i) intgetNbWheelsPerTrack(int index) intgetThrustControllerIndex(int i) intgetThrustIdPerTrack(int index) floatgetTorqueRatios(int index) intgetTrackToWheelIds(int index) intgetWheelIdsInTrackOrder(int index) intgetWheelInTrack(int j, int i) getWheelsInTrack(int i) voidsetAveWheelSpeedRatios(int index, float value) voidsetNbTracks(int value) voidsetNbWheelsPerTrack(int index, int value) voidsetThrustIdPerTrack(int index, int value) voidvoidsetTorqueRatios(int index, float value) voidsetTrackToWheelIds(int index, int value) voidsetWheelIdsInTrackOrder(int index, int value) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) wrapPointer(long address) Methods inherited from class physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
isValidMethods 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
-
PxVehicleTankDriveDifferentialParams
protected PxVehicleTankDriveDifferentialParams(long address) -
PxVehicleTankDriveDifferentialParams
public PxVehicleTankDriveDifferentialParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleTankDriveDifferentialParams
-
createAt
public static <T> PxVehicleTankDriveDifferentialParams 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 PxVehicleTankDriveDifferentialParams
-
destroy
public void destroy()- Overrides:
destroyin classPxVehicleMultiWheelDriveDifferentialParams
-
getNbTracks
public int getNbTracks()- Returns:
- WebIDL type: unsigned long
-
setNbTracks
public void setNbTracks(int value) - Parameters:
value- WebIDL type: unsigned long
-
getThrustIdPerTrack
public int getThrustIdPerTrack(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setThrustIdPerTrack
public void setThrustIdPerTrack(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getNbWheelsPerTrack
public int getNbWheelsPerTrack(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setNbWheelsPerTrack
public void setNbWheelsPerTrack(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getTrackToWheelIds
public int getTrackToWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setTrackToWheelIds
public void setTrackToWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getWheelIdsInTrackOrder
public int getWheelIdsInTrackOrder(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setWheelIdsInTrackOrder
public void setWheelIdsInTrackOrder(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getTorqueRatios
public float getTorqueRatios(int index) - Overrides:
getTorqueRatiosin classPxVehicleMultiWheelDriveDifferentialParams- Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setTorqueRatios
public void setTorqueRatios(int index, float value) - Overrides:
setTorqueRatiosin classPxVehicleMultiWheelDriveDifferentialParams- Parameters:
index- Array indexvalue- WebIDL type: float
-
getAveWheelSpeedRatios
public float getAveWheelSpeedRatios(int index) - Overrides:
getAveWheelSpeedRatiosin classPxVehicleMultiWheelDriveDifferentialParams- Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setAveWheelSpeedRatios
public void setAveWheelSpeedRatios(int index, float value) - Overrides:
setAveWheelSpeedRatiosin classPxVehicleMultiWheelDriveDifferentialParams- Parameters:
index- Array indexvalue- WebIDL type: float
-
setToDefault
public void setToDefault()- Overrides:
setToDefaultin classPxVehicleMultiWheelDriveDifferentialParams
-
getNbWheelsInTrack
public int getNbWheelsInTrack(int i) - Parameters:
i- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
getWheelsInTrack
- Parameters:
i- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxU32ConstPtr[Value]
-
getWheelInTrack
public int getWheelInTrack(int j, int i) - Parameters:
j- WebIDL type: unsigned longi- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
getThrustControllerIndex
public int getThrustControllerIndex(int i) - Parameters:
i- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
transformAndScale
public PxVehicleTankDriveDifferentialParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) - Overrides:
transformAndScalein classPxVehicleMultiWheelDriveDifferentialParams- 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:
PxVehicleTankDriveDifferentialParams[Value]
-