java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleAxleDescription
-
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 PxVehicleAxleDescriptionarrayGet(long baseAddress, int index) voiddestroy()intgetAxle(int wheelId) Return the axle of a specified wheel.intgetAxleToWheelIds(int index) intThe number of axles on the vehicleintThe number of wheels on the vehicle.intgetNbWheelsOnAxle(int i) Return the number of wheels on the ith axle.intgetNbWheelsPerAxle(int index) intgetWheelIdsInAxleOrder(int index) intgetWheelOnAxle(int j, int i) Return the wheel id of the jth wheel on the ith axle.booleanisValid()voidsetAxleToWheelIds(int index, int value) voidsetNbAxles(int value) The number of axles on the vehiclevoidsetNbWheels(int value) The number of wheels on the vehicle.voidsetNbWheelsPerAxle(int index, int value) voidvoidsetWheelIdsInAxleOrder(int index, int value) static PxVehicleAxleDescriptionwrapPointer(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
-
PxVehicleAxleDescription
protected PxVehicleAxleDescription(long address) -
PxVehicleAxleDescription
public PxVehicleAxleDescription()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getNbAxles
public int getNbAxles()The number of axles on the vehicle -
setNbAxles
public void setNbAxles(int value) The number of axles on the vehicle -
getNbWheelsPerAxle
public int getNbWheelsPerAxle(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setNbWheelsPerAxle
public void setNbWheelsPerAxle(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getAxleToWheelIds
public int getAxleToWheelIds(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setAxleToWheelIds
public void setAxleToWheelIds(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getWheelIdsInAxleOrder
public int getWheelIdsInAxleOrder(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setWheelIdsInAxleOrder
public void setWheelIdsInAxleOrder(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getNbWheels
public int getNbWheels()The number of wheels on the vehicle. -
setNbWheels
public void setNbWheels(int value) The number of wheels on the vehicle. -
setToDefault
public void setToDefault() -
getNbWheelsOnAxle
public int getNbWheelsOnAxle(int i) Return the number of wheels on the ith axle.- Parameters:
i- specifies the axle to be queried for its wheel count.- Returns:
- The number of wheels on the specified axle.
- See Also:
-
getWheelOnAxle
public int getWheelOnAxle(int j, int i) Return the wheel id of the jth wheel on the ith axle.- Parameters:
j- specifies that the wheel id to be returned is the jth wheel in the list of wheels on the specified axle.i- specifies the axle to be queried.- Returns:
- The wheel id of the jth wheel on the ith axle.
- See Also:
-
getAxle
public int getAxle(int wheelId) Return the axle of a specified wheel.- Parameters:
wheelId- is the wheel whose axle is to be queried.- Returns:
- The axle of the specified wheel.
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-