Game Development Community

Increasing max wheels

by David Erenger · in Torque Game Engine · 03/01/2004 (3:55 am) · 4 replies

Is it possible to change the engine code for vehicles to alow more then 8 wheels??

I was thinking of creating a tank, I would need 18 wheels, and for the track I just link plates to an offset dummy linked to the wheel hubs and face the next hub.

but it wont look good with only 8 wheels.

Is there anyone who have done this modifikation to the source, or is there a better way to create a tank??

//David

#1
03/01/2004 (4:04 am)
Why do you need 18 wheels? , wont the track be driving the tank and the wheels just be animated?

Or have 8 invisible wheels.. and an animated track (track link array following spline patch works quite good in torque).

What you can do is assign keys to power each side.

i.e. 1 key powers right side, and play right track animation, and same with other side. Assign all 8 wheels powered with high friction and fairly beefy enngine torque to get you over rugged terrain.

But other than that i dont see why you are limited to 8 wheels.. just change it support how ever many you want... within reason :)
#2
03/01/2004 (4:13 am)
Yes it is possible to change the engine code for more than 8 wheels. Not sure if thats the way to go. Westy[X-Tatic] game some better ideas. Also "BraveTree" the creators of Think Tanks are creating a Tank Content Pack (like the other ones they have done) As far as I know there is no release date on it.

See here for more details. Its towards then end of the thread where the BraveTree content pack it talked about.
#3
03/01/2004 (6:32 am)
OK... maby its beter for me to wait, I'm not sure how to do the tracks the way Westy[X-Tatic] talking about, I'll just stick to wheeld apc for now then.

hope they release the pack soon, I have the car pack and it was a great learning tool for wheel vwhicles. Thanks for the replies
#4
12/14/2005 (5:49 am)
Increasing the maxwheels inside the c++ script was easy. I increased the max wheels to 300 for my game. (Trust me i required that for max just incase)
just open the wheeledvehicle.h file, i think, and search for "maxwheels" you will find a couple of them but the one you need will have this:

maxwheels = 8;
(something about max parts) = 3;

increase the max wheels to 300 that should allow for any type of vehicle. (i will update this when i get to my home computer)

This post is for those who often stumble on to this Discussion.