Game Development Community

WheeledVehicleTire datablock typo

by Matthew Jessick · in Torque Game Engine · 10/30/2007 (2:40 pm) · 3 replies

void WheeledVehicleTire::initPersistFields()
{
...
   addField("logitudinalRelaxation", TypeF32, Offset(longitudinalRelaxation, WheeledVehicleTire));

Variable name is misspelled: should be LONGitudinal rather than LOGitudinal
(Edit: the "field name" is the problem - this only affects initializing the datablock.)

Not a problem for the buggy, as the 1m value happens to be the default.

For anything else, this is an important and subtle parameter in the longitudinal force equations. If you have tried to change it and not gotten much response, this typo might be why.

#1
10/30/2007 (3:17 pm)
What file is this in?
#2
10/30/2007 (6:45 pm)
Yeap, it's a typo sitting there.
The file is engine/game/vehicles/wheeledVehicle.cc
#3
11/01/2007 (2:15 pm)
Wow, good catch.