PxVehiclePhysXActorEndComponent#
Defined in include/vehicle2/physxActor/PxVehiclePhysXActorComponents.h
-
class PxVehiclePhysXActorEndComponent : public PxVehicleComponent#
Work items at the end of an update step for a PhysX actor based vehicle.
Includes:
Writing vehicle internal state to the PhysX actor.
Keeping the vehicle awake if certain criteria are met.
Public Functions
-
inline PxVehiclePhysXActorEndComponent()#
-
inline virtual ~PxVehiclePhysXActorEndComponent()#
- 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,
- const PxReal *&throttle,
- PxVehiclePhysXActor *&physxActor,
Provide vehicle data items for this component.
- Parameters:
axleDescription – [out] identifies the wheels on each axle.
rigidBodyState – [out] is the state of the rigid body used by the Vehicle SDK.
wheelParams – [out] describes the radius, mass etc. of the wheels.
wheelShapeLocalPoses – [out] are the local poses in the wheel’s frame to apply to the PxShape instances that represent the wheel
wheelRigidBody1dStates – [out] describes the angular speed of the wheels.
wheelLocalPoses – [out] describes the local poses of the wheels in the rigid body frame.
gearState – [out] The gear state. Can be set to NULL if the vehicle does not have gears.
throttle – [out] The throttle command state (see PxVehicleCommandState). Can be set to NULL if the vehicle is not controlled through PxVehicleCommandState.
physxActor – [out] is the PxRigidBody instance associated with the vehicle.
- inline virtual bool update(
- const PxReal dt,
- const PxVehicleSimulationContext &context,
Update function for a vehicle component.
See also
- Parameters:
dt – [in] The timestep size to use for the update step.
context – [in] Vehicle simulation context holding global data or data that usually applies to a large group of vehicles.
- Returns:
True if subsequent components in a sequence should get updated, false if the sequence should be aborted.