java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleAckermannParams
A description of a single axle that is to be affected by Ackermann steer correction.
-
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 PxVehicleAckermannParamsarrayGet(long baseAddress, int index) voiddestroy()floatis the strength of the correction with 0 denoting no correction and 1 denoting perfect correction.floattrackWidth is the width of the axle specified by #wheelIdsfloatwheelBase is the longitudinal distance between the axle that is affected by Ackermann correction and a reference axle.intgetWheelIds(int index) booleanisValid(PxVehicleAxleDescription axleDesc) voidsetStrength(float value) is the strength of the correction with 0 denoting no correction and 1 denoting perfect correction.voidsetTrackWidth(float value) trackWidth is the width of the axle specified by #wheelIdsvoidsetWheelBase(float value) wheelBase is the longitudinal distance between the axle that is affected by Ackermann correction and a reference axle.voidsetWheelIds(int index, int value) transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleAckermannParamswrapPointer(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
-
PxVehicleAckermannParams
protected PxVehicleAckermannParams(long address) -
PxVehicleAckermannParams
public PxVehicleAckermannParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getWheelIds
public int getWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setWheelIds
public void setWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getWheelBase
public float getWheelBase()wheelBase is the longitudinal distance between the axle that is affected by Ackermann correction and a reference axle. -
setWheelBase
public void setWheelBase(float value) wheelBase is the longitudinal distance between the axle that is affected by Ackermann correction and a reference axle. -
getTrackWidth
public float getTrackWidth()trackWidth is the width of the axle specified by #wheelIds -
setTrackWidth
public void setTrackWidth(float value) trackWidth is the width of the axle specified by #wheelIds -
getStrength
public float getStrength()is the strength of the correction with 0 denoting no correction and 1 denoting perfect correction. -
setStrength
public void setStrength(float value) is the strength of the correction with 0 denoting no correction and 1 denoting perfect correction. -
isValid
- Parameters:
axleDesc- WebIDL type:PxVehicleAxleDescription[Const, Ref]- Returns:
- WebIDL type: boolean
-
transformAndScale
public PxVehicleAckermannParams 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:
PxVehicleAckermannParams[Value]
-