java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleWheelConstraintGroupState
Specify groups of wheels that are to be constrained to have pre-determined angular velocity relationship.
-
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) voiddestroy()intgetGroupToWheelIds(int index) floatgetMultiplierInConstraintGroup(int j, int i) Return the constraint multiplier of the jth wheel in the ith constraint groupintReturn the number of wheel constraint groups in the vehicle.intThe number of constraint groups in the vehicleintgetNbWheelsInConstraintGroup(int i) Return the number of wheels in the ith constraint group.intThe number of wheels in a constraint group.intgetNbWheelsPerGroup(int index) intgetWheelIdsInGroupOrder(int index) intgetWheelInConstraintGroup(int j, int i) Return the wheel id of the jth wheel in the ith constraint group.floatgetWheelMultipliersInGroupOrder(int index) voidsetGroupToWheelIds(int index, int value) voidsetNbGroups(int value) The number of constraint groups in the vehiclevoidsetNbWheelsInGroups(int value) The number of wheels in a constraint group.voidsetNbWheelsPerGroup(int index, int value) voidvoidsetWheelIdsInGroupOrder(int index, int value) voidsetWheelMultipliersInGroupOrder(int index, float value) wrapPointer(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
-
PxVehicleWheelConstraintGroupState
protected PxVehicleWheelConstraintGroupState(long address) -
PxVehicleWheelConstraintGroupState
public PxVehicleWheelConstraintGroupState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getNbGroups
public int getNbGroups()The number of constraint groups in the vehicle -
setNbGroups
public void setNbGroups(int value) The number of constraint groups in the vehicle -
getNbWheelsPerGroup
public int getNbWheelsPerGroup(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setNbWheelsPerGroup
public void setNbWheelsPerGroup(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getGroupToWheelIds
public int getGroupToWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setGroupToWheelIds
public void setGroupToWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getWheelIdsInGroupOrder
public int getWheelIdsInGroupOrder(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setWheelIdsInGroupOrder
public void setWheelIdsInGroupOrder(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getWheelMultipliersInGroupOrder
public float getWheelMultipliersInGroupOrder(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setWheelMultipliersInGroupOrder
public void setWheelMultipliersInGroupOrder(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getNbWheelsInGroups
public int getNbWheelsInGroups()The number of wheels in a constraint group. -
setNbWheelsInGroups
public void setNbWheelsInGroups(int value) The number of wheels in a constraint group. -
setToDefault
public void setToDefault() -
getNbConstraintGroups
public int getNbConstraintGroups()Return the number of wheel constraint groups in the vehicle.- Returns:
- The number of wheel constraint groups.
- See Also:
-
getNbWheelsInConstraintGroup
public int getNbWheelsInConstraintGroup(int i) Return the number of wheels in the ith constraint group.- Parameters:
i- specifies the constraint group to be queried for its wheel count.- Returns:
- The number of wheels in the specified constraint group.
- See Also:
-
getWheelInConstraintGroup
public int getWheelInConstraintGroup(int j, int i) Return the wheel id of the jth wheel in the ith constraint group.- Parameters:
j- specifies that the wheel id to be returned is the jth wheel in the list of wheels on the specified constraint group.i- specifies the constraint group to be queried.- Returns:
- The wheel id of the jth wheel in the ith constraint group.
- See Also:
-
getMultiplierInConstraintGroup
public float getMultiplierInConstraintGroup(int j, int i) Return the constraint multiplier of the jth wheel in the ith constraint group- Parameters:
j- specifies that the wheel id to be returned is the jth wheel in the list of wheels on the specified constraint group.i- specifies the constraint group to be queried.- Returns:
- The constraint multiplier of the jth wheel in the ith constraint group.
-