java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleAntiRollForceParams
The purpose of the anti-roll bar is to generate a torque to apply to the vehicle's rigid body that will reduce the jounce difference arising
between any pair of chosen wheels. If the chosen wheels share an axle, the anti-roll bar will attempt to reduce the roll angle of the vehicle's rigid body.
Alternatively, if the chosen wheels are the front and rear wheels along one side of the vehicle, the anti-roll bar will attempt to reduce the pitch angle of the
vehicle's rigid body.
-
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 PxVehicleAntiRollForceParamsarrayGet(long baseAddress, int index) voiddestroy()floatintintbooleanisValid(PxVehicleAxleDescription axleDesc) voidsetStiffness(float value) voidsetWheel0(int value) voidsetWheel1(int value) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleAntiRollForceParamswrapPointer(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
-
PxVehicleAntiRollForceParams
protected PxVehicleAntiRollForceParams(long address) -
PxVehicleAntiRollForceParams
public PxVehicleAntiRollForceParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getWheel0
public int getWheel0() -
setWheel0
public void setWheel0(int value) -
getWheel1
public int getWheel1() -
setWheel1
public void setWheel1(int value) -
getStiffness
public float getStiffness() -
setStiffness
public void setStiffness(float value) -
transformAndScale
public PxVehicleAntiRollForceParams 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:
PxVehicleAntiRollForceParams[Value]
-
isValid
- Parameters:
axleDesc- WebIDL type:PxVehicleAxleDescription[Const, Ref]- Returns:
- WebIDL type: boolean
-