|
RavEngine
|
Work items at the end of an update step for a PhysX actor based vehicle. More...
#include <PxVehiclePhysXActorComponents.h>
Public Member Functions | |
| virtual void | getDataForPhysXActorEndComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxTransform > &wheelShapeLocalPoses, PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleArrayData< const PxVehicleWheelLocalPose > &wheelLocalPoses, const PxVehicleGearboxState *&gearState, PxVehiclePhysXActor *&physxActor)=0 |
| Provide vehicle data items for this component. | |
| virtual bool | update (const PxReal dt, const PxVehicleSimulationContext &context) |
| Update function for a vehicle component. | |
Work items at the end of an update step for a PhysX actor based vehicle.
Includes:
|
pure virtual |
Provide vehicle data items for this component.
| [out] | axleDescription | identifies the wheels on each axle. |
| [out] | rigidBodyState | is the state of the rigid body used by the Vehicle SDK. |
| [out] | wheelParams | describes the radius, mass etc. of the wheels. |
| [out] | wheelShapeLocalPoses | are the local poses in the wheel's frame to apply to the PxShape instances that represent the wheel |
| [out] | wheelRigidBody1dStates | describes the angular speed of the wheels. |
| [out] | wheelLocalPoses | describes the local poses of the wheels in the rigid body frame. |
| [out] | gearState | The gear state. Can be set to NULL if the vehicle does not have gears. |
| [out] | physxActor | is the PxRigidBody instance associated with the vehicle. |
Implemented in snippetvehicle2::EngineDriveVehicle, and snippetvehicle2::PhysXActorVehicle.
|
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.