java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
physx.vehicle2.PxVehicleFourWheelDriveDifferentialParams
public class PxVehicleFourWheelDriveDifferentialParams
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> PxVehicleFourWheelDriveDifferentialParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatfloatfloatfloatintgetFrontWheelIds(int index) floatgetRate()floatfloatintgetRearWheelIds(int index) voidsetCenterBias(float value) voidsetCenterTarget(float value) voidsetFrontBias(float value) voidsetFrontTarget(float value) voidsetFrontWheelIds(int index, int value) voidsetRate(float value) voidsetRearBias(float value) voidsetRearTarget(float value) voidsetRearWheelIds(int index, int value) voidtransformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) wrapPointer(long address) Methods inherited from class physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
getAveWheelSpeedRatios, getTorqueRatios, isValid, setAveWheelSpeedRatios, setTorqueRatiosMethods 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
-
PxVehicleFourWheelDriveDifferentialParams
protected PxVehicleFourWheelDriveDifferentialParams(long address) -
PxVehicleFourWheelDriveDifferentialParams
public PxVehicleFourWheelDriveDifferentialParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleFourWheelDriveDifferentialParams
-
createAt
public static <T> PxVehicleFourWheelDriveDifferentialParams 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 PxVehicleFourWheelDriveDifferentialParams
-
destroy
public void destroy()- Overrides:
destroyin classPxVehicleMultiWheelDriveDifferentialParams
-
getFrontWheelIds
public int getFrontWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setFrontWheelIds
public void setFrontWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getRearWheelIds
public int getRearWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setRearWheelIds
public void setRearWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getFrontBias
public float getFrontBias()- Returns:
- WebIDL type: float
-
setFrontBias
public void setFrontBias(float value) - Parameters:
value- WebIDL type: float
-
getFrontTarget
public float getFrontTarget()- Returns:
- WebIDL type: float
-
setFrontTarget
public void setFrontTarget(float value) - Parameters:
value- WebIDL type: float
-
getRearBias
public float getRearBias()- Returns:
- WebIDL type: float
-
setRearBias
public void setRearBias(float value) - Parameters:
value- WebIDL type: float
-
getRearTarget
public float getRearTarget()- Returns:
- WebIDL type: float
-
setRearTarget
public void setRearTarget(float value) - Parameters:
value- WebIDL type: float
-
getCenterBias
public float getCenterBias()- Returns:
- WebIDL type: float
-
setCenterBias
public void setCenterBias(float value) - Parameters:
value- WebIDL type: float
-
getCenterTarget
public float getCenterTarget()- Returns:
- WebIDL type: float
-
setCenterTarget
public void setCenterTarget(float value) - Parameters:
value- WebIDL type: float
-
getRate
public float getRate()- Returns:
- WebIDL type: float
-
setRate
public void setRate(float value) - Parameters:
value- WebIDL type: float
-
setToDefault
public void setToDefault()- Overrides:
setToDefaultin classPxVehicleMultiWheelDriveDifferentialParams
-
transformAndScale
public PxVehicleFourWheelDriveDifferentialParams 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:
PxVehicleFourWheelDriveDifferentialParams[Value]
-