Game Development Community

Conform to terrain & particles

by Deepeyed · in RTS Starter Kit · 12/08/2006 (1:32 pm) · 2 replies

Hello, i want to get my tanks and such to conform to the terrain, i found the resource to conform the player to the terrain, but when i tried to follow that for RTSUnit.cc the 2 classes seem quite different, so i couldnt follow it (i dont really know c++ yet). so can some kind soul please either tell me exactly what i have to change or even supply a modded rtsunit.cc.

also while your here, i read some where that particles in the rts cam dont render or have been cut, is that true? if so how can they be brought back?

many thanks

#1
12/12/2006 (12:44 pm)
Hi, ill try and shine some light on some of your questions. First the RTSUnit does not have any physics. All it does is simply "Clamp" the units to the ground(hence why they walk through each other). This is done by raycasting at the ground.

The only way I could think of without reimplemnting physics is to do the same but in the four corners of your tank. Then somehow work out the rotation from that.

I personally would reimplement the physics or adapt to use a vehicle class.

For particles I have not tried yet, but I swear i've seen it mentioned before somwhere in the RTS forums.

Hope that helped!
#2
12/14/2006 (9:36 pm)
Particles work..

There is a single line fix for it..

http://www.garagegames.com/mg/forums/result.thread.php?qt=26068