|
RavEngine
|
Common parameters and settings used for the vehicle simulation. More...
#include <PxVehicleSDK.h>
Public Member Functions | |
| PX_INLINE | PxVehicleContext () |
| Constructor sets to default. | |
| PX_INLINE void | setToDefault () |
| (re)sets the structure to the default. | |
| PX_INLINE bool | isValid () const |
| Check if the settings descriptor is valid. | |
| PX_INLINE void | computeSideAxis () |
| Compute the side-axis from the up- and forward-axis. | |
Public Attributes | |
| PxVec3 | upAxis |
| The axis denoting the up direction for vehicles. | |
| PxVec3 | forwardAxis |
| The axis denoting the forward direction for vehicles. | |
| PxVec3 | sideAxis |
| The axis denoting the side direction for vehicles. | |
| PxVehicleUpdateMode::Enum | updateMode |
| Apply vehicle simulation results as acceleration or velocity modification. | |
| PxF32 | pointRejectAngleThresholdCosine |
| Cosine of threshold angle for rejecting sweep hits. | |
| PxF32 | normalRejectAngleThresholdCosine |
| Cosine of threshold angle for rejecting sweep hits. | |
| PxF32 | maxHitActorAcceleration |
| Maximum acceleration experienced by PxRigidDynamic instances that are found to be in contact with a wheel. | |
Common parameters and settings used for the vehicle simulation.
To be passed into PxVehicleUpdates(), for example.
| PX_INLINE bool physx::PxVehicleContext::isValid | ( | ) | const |
Check if the settings descriptor is valid.
| PxVec3 physx::PxVehicleContext::forwardAxis |
The axis denoting the forward direction for vehicles.
Range: unit length vector
Default: PxVec3(0,0,1)
| PxF32 physx::PxVehicleContext::maxHitActorAcceleration |
Maximum acceleration experienced by PxRigidDynamic instances that are found to be in contact with a wheel.
See PxVehicleSetMaxHitActorAcceleration() for details.
Range: [0, PX_MAX_REAL]
Default: PX_MAX_REAL
| PxF32 physx::PxVehicleContext::normalRejectAngleThresholdCosine |
Cosine of threshold angle for rejecting sweep hits.
See PxVehicleSetSweepHitRejectionAngles() for details.
Range: (1, -1)
Default: 0.707f (cosine of 45 degrees)
| PxF32 physx::PxVehicleContext::pointRejectAngleThresholdCosine |
Cosine of threshold angle for rejecting sweep hits.
See PxVehicleSetSweepHitRejectionAngles() for details.
Range: (1, -1)
Default: 0.707f (cosine of 45 degrees)
| PxVec3 physx::PxVehicleContext::sideAxis |
The axis denoting the side direction for vehicles.
Has to be the cross product of the up- and forward-axis. The method computeSideAxis() can be used to do that computation for you.
Range: unit length vector
Default: PxVec3(1,0,0)
| PxVec3 physx::PxVehicleContext::upAxis |
The axis denoting the up direction for vehicles.
Range: unit length vector
Default: PxVec3(0,1,0)
| PxVehicleUpdateMode::Enum physx::PxVehicleContext::updateMode |
Apply vehicle simulation results as acceleration or velocity modification.
See PxVehicleSetUpdateMode() for details.
Default: eVELOCITY_CHANGE