mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 17:13:54 +00:00
Added steering centre members to VehicleData.
steeringReturn is the main control for the amount of return in the steering. Setting it to 0 (the default) disables steering return completely. steeringReturnSpeedScale is a multiplier on the amount of effect that the vehicle's velocity has on its steering return. powerSteering can be set to eliminate the effect of steering return on user input. Without this flag set, the user will have a harder time steering, because the wheels try to return as they steer. If this flag is set, steering return will not be applied while the user is actually steering, only when they release.
This commit is contained in:
parent
d38eb17056
commit
eae9fc36e5
2 changed files with 23 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ struct VehicleData: public ShapeBaseData
|
|||
F32 jetEnergyDrain; ///< Energy drain/tick
|
||||
F32 minJetEnergy;
|
||||
|
||||
F32 steeringReturn;
|
||||
F32 steeringReturnSpeedScale;
|
||||
bool powerSteering;
|
||||
|
||||
ParticleEmitterData * dustEmitter;
|
||||
S32 dustID;
|
||||
F32 triggerDustHeight; ///< height vehicle has to be under to kick up dust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue