|
RavEngine
|
Forward integrate the momentum and pose of the vehicle's rigid body after applying forces and torques from the suspension, tires and anti-roll bars. More...
#include <PxVehicleRigidBodyComponents.h>
Public Member Functions | |
| virtual void | getDataForRigidBodyComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyParams *&rigidBodyParams, PxVehicleArrayData< const PxVehicleSuspensionForce > &suspensionForces, PxVehicleArrayData< const PxVehicleTireForce > &tireForces, const PxVehicleAntiRollTorque *&antiRollTorque, PxVehicleRigidBodyState *&rigidBodyState)=0 |
| Retrieve pointers to the parameter and state data required to update the dynamic state of a rigid body. | |
| virtual bool | update (const PxReal dt, const PxVehicleSimulationContext &context) |
| Update function for a vehicle component. | |
Forward integrate the momentum and pose of the vehicle's rigid body after applying forces and torques from the suspension, tires and anti-roll bars.
|
pure virtual |
Retrieve pointers to the parameter and state data required to update the dynamic state of a rigid body.
| [out] | axleDescription | must be returned as a non-null pointer to a single PxVehicleAxleDescription instance that describes the wheels and axles of the vehicle. |
| [out] | rigidBodyParams | must be returned as a non-null pointer to a single PxVehicleRigidBodyParams instance that describes the mass and moment of inertia of the rigid body. |
| [out] | suspensionForces | must be returned as a non-null pointer to an array of suspension forces and torques in the world frame. The suspension forces and torques will be applied to the rigid body to update rigidBodyState. |
| [out] | tireForces | must be returned as a non-null pointer to an array of tire forces and torques in the world frame. The tire forces and torques will be applied to the rigid body to update rigidBodyState. |
| [out] | antiRollTorque | may be returned an optionally non-null pointer to a single PxVehicleAntiRollTorque instance that contains the accumulated anti-roll torque to apply to the rigid body. |
| [out] | rigidBodyState | imust be returned as a non-null pointer to a single PxVehicleRigidBodyState instance that is to be forward integrated. |
Implemented in snippetvehicle2::BaseVehicle.
|
inlinevirtual |
Update function for a vehicle component.
| [in] | dt | The timestep size to use for the update step. |
| [in] | context | Vehicle simulation context holding global data or data that usually applies to a large group of vehicles. |
Implements physx::vehicle2::PxVehicleComponent.