Wheel instance data changes during the simulation 更多...
#include <WheelSystem.h>
类 Chaos::FSimpleWheelSim 继承关系图:Public 成员函数 | |
| float | GetAngularPosition () const |
| Get the angular position of the wheel [radians] | |
| float | GetAngularVelocity () const |
| Get the angular velocity of the wheel [radians/sec] | |
| float | GetBrakeTorque () const |
| Get the braking torque being applied to the wheel [N.m] | |
| float | GetDriveTorque () const |
| Get the drive torque being applied to the wheel [N.m] | |
| float | GetEffectiveRadius () const |
| Get the radius of the wheel [cm] | |
| FVector | GetForceFromFriction () const |
| return the calculated available friction force | |
| float | GetNormalizedLongitudinalSlip () const |
| Get the current longitudinal slip value [0 no slip - using static friction, 1 full slip - using dynamic friction] | |
| float | GetRoadSpeed () const |
| Get the road speed at the wheel | |
| float | GetSlipAngle () const |
| Get the slip angle for this wheel - angle between wheel forward axis and velocity vector [degrees] | |
| float | GetSurfaceFriction () const |
| Get the friction coefficient of the surface in contact with the wheel | |
| float | GetWheelGroundSpeed () const |
| Get the linear ground speed of the wheel based on its current rotational speed | |
| float | GetWheelLoadForce () const |
| Get the magnitude of the force pressing the wheel into the terrain | |
| float | GetWheelRPM () |
| Get the wheel RPM [revolutions per minute] | |
| bool | InContact () const |
| Is the wheel in contact with the terrain or another object | |
| void | SetBrakeTorque (float BrakeTorqueIn) |
| Set the braking torque - decelerating rotational force | |
| void | SetDriveTorque (float EngineTorqueIn) |
| Set the drive torque - accelerating rotational force | |
| void | SetMatchingSpeed (float LinearMetersPerSecondIn) |
| set wheel rotational speed to match the specified linear forwards speed | |
| void | SetSurfaceFriction (float InFriction) |
| Set the friction coefficient of the surface under the wheel | |
| void | SetVehicleGroundSpeed (FVector &VIn) |
| Set the vehicle's speed at the wheels location in local wheel coords | |
| void | SetWheelLoadForce (float WheelLoadForceIn) |
| Set the force pressing the wheel into the terrain - from suspension | |
| void | SetWheelRadius (float NewRadius) |
| Set the wheel radius - can change dynamically during simulation if desired | |
| void | Simulate (float DeltaTime) |
| Simulate - figure out wheel lateral and longitudinal forces based on available friction at the wheel Wheel load force from body weight and the surface friction together determine the grip available at the wheel DriveTorque accelerates the wheel BrakeTorque decelerates the wheel 更多... | |
静态 Public 成员函数 | |
| static float | GetNormalisedFrictionFromSlipAngle (float SlipIn) |
| Amount of friction we can expect after taking into account the amount the wheel slips | |
Wheel instance data changes during the simulation
| void Chaos::FSimpleWheelSim::Simulate | ( | float | DeltaTime | ) |
Simulate - figure out wheel lateral and longitudinal forces based on available friction at the wheel Wheel load force from body weight and the surface friction together determine the grip available at the wheel DriveTorque accelerates the wheel BrakeTorque decelerates the wheel
#todo: this function is a mess and needs tidied/consolidated #todo: lateral friction is currently not affected by longitudinal wheel slip #todo: wheel slip angle isn't being used