Game Development Community

RTS. Unit Movement on walls

by Dewaldt · in General Discussion · 01/15/2010 (2:17 am) · 2 replies

Hi.

Somewere in this Torque blog i did read about discussions Regards of Unit Movement on walls {Troubles}
Can someone explain this matter to me in details what to do. My game South Africa Boer Wars will have lots of walls {Forts} In the Campaign Story Line!!! We are still busy with the Prototype. I just need to be Prepared if this Subject come to matter! Unit Movement on wall etc, Advice will be Glady appreciate?

Best of Regards

Dewaldt Steenkamp

#1
01/15/2010 (6:46 am)
RTS Units by default clamp their Z position to the height of the terrain beneath them. This is performed by a simple terrrain height lookup, performed in RTSUnit::process tick, after the line PROFILE_START(RTSUnit_Z);

To make them walk on walls or any other non-terrain object, you could replace the terrain height lookup with a raycast downwards from a position above the unit, and use the enpoint of the raycast for their height.

*/EDIT >>
Are you talking about RTSUnits as in those from the RTSStarter kit? If you are, then the above applies.
*/EDIT <<
#2
01/15/2010 (12:04 pm)
Hi guy allard.

Yes & no. I don't own the Rts Starter kit, I will get it soon, But i think as you mentioned above it will help if i own that kit!

Best of Regards