Game Development Community

Phisical zone and vehicle

by Andrea Bigiarini · in Torque Game Engine · 07/01/2004 (2:59 am) · 3 replies

Hi all
I'm a professional TGE Newbie and browsing, poking and handling starter.racing demo (race car)I've tried to insert a physical zone with gravity=-2 (read somewhere that the ranges for this are from -4 to 4).
Nothing!
Tried all the other 3 settings of Physical Zone in the Inspector but same as above.
Is the WheeledVehicle different from a normal player object?
The Physical Zone is affected by parameters like mass (of the obj)or other in the WVehicle definition?
THX all you guys for support
Andrea
(Sorry 4 my English ... I'm the only italian here?)

#1
07/01/2004 (8:15 am)
It's possible that vehicles don't check for physical zones. You'd have to look in the code.
#2
07/01/2004 (11:31 am)
More easy hints like scripting?
THX
#3
11/08/2007 (6:10 am)
In wheeledVehicle.cc:

change the line

// Gravity
mRigid.force += Point3F(0, 0, sWheeledVehicleGravity * mRigid.mass);

to:

// Gravity
mRigid.force += Point3F(0, 0, sWheeledVehicleGravity *mGravityMod* mRigid.mass);

and recompile.

That will enable the gravity modifer of pZones for wheeledVehicles. However, this does not enable other pZone effects for them.

PS: I know this question was two years old but this problem still exists in TGE 1.5.2.