java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleWheelParams
-
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 PxVehicleWheelParamsarrayGet(long baseAddress, int index) voiddestroy()floatDamping rate applied to wheel.floatHalf-width of unit that includes wheel plus tire.floatgetMass()Mass of unit that includes wheel plus tire.floatgetMoi()Moment of inertia of unit that includes wheel plus tire about the rolling axis.floatRadius of unit that includes metal wheel plus rubber tire.booleanisValid()voidsetDampingRate(float value) Damping rate applied to wheel.voidsetHalfWidth(float value) Half-width of unit that includes wheel plus tire.voidsetMass(float value) Mass of unit that includes wheel plus tire.voidsetMoi(float value) Moment of inertia of unit that includes wheel plus tire about the rolling axis.voidsetRadius(float value) Radius of unit that includes metal wheel plus rubber tire.transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleWheelParamswrapPointer(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
-
PxVehicleWheelParams
protected PxVehicleWheelParams(long address) -
PxVehicleWheelParams
public PxVehicleWheelParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getRadius
public float getRadius()Radius of unit that includes metal wheel plus rubber tire.Range: (0, inf)
Unit: length -
setRadius
public void setRadius(float value) Radius of unit that includes metal wheel plus rubber tire.Range: (0, inf)
Unit: length -
getHalfWidth
public float getHalfWidth()Half-width of unit that includes wheel plus tire.Range: (0, inf)
Unit: length -
setHalfWidth
public void setHalfWidth(float value) Half-width of unit that includes wheel plus tire.Range: (0, inf)
Unit: length -
getMass
public float getMass()Mass of unit that includes wheel plus tire.Range: (0, inf)
Unit: mass -
setMass
public void setMass(float value) Mass of unit that includes wheel plus tire.Range: (0, inf)
Unit: mass -
getMoi
public float getMoi()Moment of inertia of unit that includes wheel plus tire about the rolling axis.Range: (0, inf)
Unit: mass * (length^2) -
setMoi
public void setMoi(float value) Moment of inertia of unit that includes wheel plus tire about the rolling axis.Range: (0, inf)
Unit: mass * (length^2) -
getDampingRate
public float getDampingRate()Damping rate applied to wheel.Range: [0, inf)
Unit: torque * time = mass * (length^2) / time -
setDampingRate
public void setDampingRate(float value) Damping rate applied to wheel.Range: [0, inf)
Unit: torque * time = mass * (length^2) / time -
transformAndScale
public PxVehicleWheelParams 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:
PxVehicleWheelParams[Value]
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-