java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleEngineParams
-
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 PxVehicleEngineParamsarrayGet(long baseAddress, int index) static PxVehicleEngineParamscreateAt(long address) static <T> PxVehicleEngineParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatfloatfloatfloatfloatfloatgetMoi()floatbooleanisValid()voidsetDampingRateFullThrottle(float value) voidsetDampingRateZeroThrottleClutchDisengaged(float value) voidsetDampingRateZeroThrottleClutchEngaged(float value) voidsetIdleOmega(float value) voidsetMaxOmega(float value) voidsetMoi(float value) voidsetPeakTorque(float value) voidtransformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleEngineParamswrapPointer(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
-
PxVehicleEngineParams
protected PxVehicleEngineParams(long address) -
PxVehicleEngineParams
public PxVehicleEngineParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleEngineParams
-
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 PxVehicleEngineParams
-
destroy
public void destroy() -
getTorqueCurve
- Returns:
- WebIDL type:
PxVehicleTorqueCurveLookupTable[Value]
-
setTorqueCurve
- Parameters:
value- WebIDL type:PxVehicleTorqueCurveLookupTable[Value]
-
getMoi
public float getMoi()- Returns:
- WebIDL type: float
-
setMoi
public void setMoi(float value) - Parameters:
value- WebIDL type: float
-
getPeakTorque
public float getPeakTorque()- Returns:
- WebIDL type: float
-
setPeakTorque
public void setPeakTorque(float value) - Parameters:
value- WebIDL type: float
-
getIdleOmega
public float getIdleOmega()- Returns:
- WebIDL type: float
-
setIdleOmega
public void setIdleOmega(float value) - Parameters:
value- WebIDL type: float
-
getMaxOmega
public float getMaxOmega()- Returns:
- WebIDL type: float
-
setMaxOmega
public void setMaxOmega(float value) - Parameters:
value- WebIDL type: float
-
getDampingRateFullThrottle
public float getDampingRateFullThrottle()- Returns:
- WebIDL type: float
-
setDampingRateFullThrottle
public void setDampingRateFullThrottle(float value) - Parameters:
value- WebIDL type: float
-
getDampingRateZeroThrottleClutchEngaged
public float getDampingRateZeroThrottleClutchEngaged()- Returns:
- WebIDL type: float
-
setDampingRateZeroThrottleClutchEngaged
public void setDampingRateZeroThrottleClutchEngaged(float value) - Parameters:
value- WebIDL type: float
-
getDampingRateZeroThrottleClutchDisengaged
public float getDampingRateZeroThrottleClutchDisengaged()- Returns:
- WebIDL type: float
-
setDampingRateZeroThrottleClutchDisengaged
public void setDampingRateZeroThrottleClutchDisengaged(float value) - Parameters:
value- WebIDL type: float
-
transformAndScale
public PxVehicleEngineParams 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:
PxVehicleEngineParams[Value]
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-