|
JPH_OVERRIDE_NEW_DELETE | WheelTV (const WheelSettingsTV &inWheel) |
| Constructor. More...
|
|
const WheelSettingsTV * | GetSettings () const |
| Override GetSettings and cast to the correct class. More...
|
|
void | CalculateAngularVelocity (const VehicleConstraint &inConstraint) |
| Update the angular velocity of the wheel based on the angular velocity of the track. More...
|
|
void | Update (uint inWheelIndex, float inDeltaTime, const VehicleConstraint &inConstraint) |
| Update the wheel rotation based on the current angular velocity. More...
|
|
JPH_OVERRIDE_NEW_DELETE | Wheel (const WheelSettings &inSettings) |
| Constructor / destructor. More...
|
|
virtual | ~Wheel ()=default |
|
const WheelSettings * | GetSettings () const |
| Get settings for the wheel. More...
|
|
float | GetAngularVelocity () const |
| Get the angular velocity (rad/s) for this wheel, note that positive means the wheel is rotating such that the car moves forward. More...
|
|
void | SetAngularVelocity (float inVel) |
| Update the angular velocity (rad/s) More...
|
|
float | GetRotationAngle () const |
| Get the current rotation angle of the wheel in radians [0, 2 pi]. More...
|
|
void | SetRotationAngle (float inAngle) |
| Set the current rotation angle of the wheel in radians [0, 2 pi]. More...
|
|
float | GetSteerAngle () const |
| Get the current steer angle of the wheel in radians [-pi, pi], positive is to the left. More...
|
|
void | SetSteerAngle (float inAngle) |
| Set the current steer angle of the wheel in radians [-pi, pi]. More...
|
|
bool | HasContact () const |
| Returns true if the wheel is touching an object. More...
|
|
BodyID | GetContactBodyID () const |
| Returns the body ID of the body that this wheel is touching. More...
|
|
SubShapeID | GetContactSubShapeID () const |
| Returns the sub shape ID where we're contacting the body. More...
|
|
RVec3 | GetContactPosition () const |
| Returns the current contact position in world space (note by the time you call this the vehicle has moved) More...
|
|
Vec3 | GetContactPointVelocity () const |
| Velocity of the contact point (m / s, not relative to the wheel but in world space) More...
|
|
Vec3 | GetContactNormal () const |
| Returns the current contact normal in world space (note by the time you call this the vehicle has moved) More...
|
|
Vec3 | GetContactLongitudinal () const |
| Returns longitudinal direction (direction along the wheel relative to floor) in world space (note by the time you call this the vehicle has moved) More...
|
|
Vec3 | GetContactLateral () const |
| Returns lateral direction (sideways direction) in world space (note by the time you call this the vehicle has moved) More...
|
|
float | GetSuspensionLength () const |
| Get the length of the suspension for a wheel (m) relative to the suspension attachment point (hard point) More...
|
|
bool | HasHitHardPoint () const |
| Check if the suspension hit its upper limit. More...
|
|
float | GetSuspensionLambda () const |
| Get the total impulse (N s) that was applied by the suspension. More...
|
|
float | GetLongitudinalLambda () const |
| Get total impulse (N s) applied along the forward direction of the wheel. More...
|
|
float | GetLateralLambda () const |
| Get total impulse (N s) applied along the sideways direction of the wheel. More...
|
|
bool | SolveLongitudinalConstraintPart (const VehicleConstraint &inConstraint, float inMinImpulse, float inMaxImpulse) |
| Internal function that should only be called by the controller. Used to apply impulses in the forward direction of the vehicle. More...
|
|
bool | SolveLateralConstraintPart (const VehicleConstraint &inConstraint, float inMinImpulse, float inMaxImpulse) |
| Internal function that should only be called by the controller. Used to apply impulses in the sideways direction of the vehicle. More...
|
|
| NonCopyable ()=default |
|
| NonCopyable (const NonCopyable &)=delete |
|
void | operator= (const NonCopyable &)=delete |
|