Package physx.vehicle
Class PxVehicleNoDrive
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBase
-
- physx.vehicle.PxVehicleWheels
-
- physx.vehicle.PxVehicleNoDrive
-
public class PxVehicleNoDrive extends PxVehicleWheels
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxVehicleNoDrive()protectedPxVehicleNoDrive(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxVehicleNoDriveallocate(int nbWheels)voidfree()floatgetBrakeTorque(int id)floatgetDriveTorque(int id)intgetNbBrakeTorque()intgetNbDriveTorque()intgetNbSteerAngle()floatgetSteerAngle(int id)voidsetBrakeTorque(int id, float brakeTorque)voidsetDriveTorque(int id, float driveTorque)voidsetSteerAngle(int id, float steerAngle)voidsetToRestState()voidsetup(PxPhysics physics, PxRigidDynamic vehActor, PxVehicleWheelsSimData wheelsData)static PxVehicleNoDrivewrapPointer(long address)-
Methods inherited from class physx.vehicle.PxVehicleWheels
computeForwardSpeed, computeSidewaysSpeed, getMWheelsDynData, getMWheelsSimData, getNbNonDrivenWheels, getRigidDynamicActor, getVehicleType, setMWheelsDynData, setMWheelsSimData
-
Methods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlags
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxVehicleNoDrive wrapPointer(long address)
-
allocate
public static PxVehicleNoDrive allocate(int nbWheels)
- Parameters:
nbWheels- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxVehicleNoDrive
-
free
public void free()
-
setup
public void setup(PxPhysics physics, PxRigidDynamic vehActor, PxVehicleWheelsSimData wheelsData)
- Parameters:
physics- WebIDL type:PxPhysicsvehActor- WebIDL type:PxRigidDynamicwheelsData- WebIDL type:PxVehicleWheelsSimData[Const, Ref]
-
setToRestState
public void setToRestState()
-
setBrakeTorque
public void setBrakeTorque(int id, float brakeTorque)- Parameters:
id- WebIDL type: unsigned longbrakeTorque- WebIDL type: float
-
setDriveTorque
public void setDriveTorque(int id, float driveTorque)- Parameters:
id- WebIDL type: unsigned longdriveTorque- WebIDL type: float
-
setSteerAngle
public void setSteerAngle(int id, float steerAngle)- Parameters:
id- WebIDL type: unsigned longsteerAngle- WebIDL type: float
-
getBrakeTorque
public float getBrakeTorque(int id)
- Parameters:
id- WebIDL type: unsigned long- Returns:
- WebIDL type: float
-
getDriveTorque
public float getDriveTorque(int id)
- Parameters:
id- WebIDL type: unsigned long- Returns:
- WebIDL type: float
-
getSteerAngle
public float getSteerAngle(int id)
- Parameters:
id- WebIDL type: unsigned long- Returns:
- WebIDL type: float
-
getNbSteerAngle
public int getNbSteerAngle()
- Returns:
- WebIDL type: unsigned long
-
getNbDriveTorque
public int getNbDriveTorque()
- Returns:
- WebIDL type: unsigned long
-
getNbBrakeTorque
public int getNbBrakeTorque()
- Returns:
- WebIDL type: unsigned long
-
-