Game Development Community

Automatically align to terrain when adding objects in editor?

by Mike Stoddart · in Torque Game Engine · 02/20/2005 (6:33 pm) · 5 replies

Is there any feature in Torque to automatically align an object with the terrain when it is added using an editor? I have some cuboid objects that I want to automatically be aligned with the terrain, to make life easier.

Thanks

#1
02/20/2005 (7:58 pm)
Place the object like normal then choose World->Drop to Ground, then choose World->Drop Selection. This will align the shape's origin to the ground. You will then want to choose World-Drop to Screen Center to continue to place objects.
#2
02/21/2005 (4:41 pm)
Oh cool thanks - I wondered how that all worked.
#3
06/23/2006 (10:40 am)
Even cooler would be to have a "drop to ground" action (not having to set, do, and reset every time one wants to drop to ground). This goes for most drop to options I guess, even though the drop to ground is the one I use most frequent.

I'm actually looking for another feature, or info how to implement it.
That is, align terrain to objects bounding box. Its a version of the terain tool set height but the height
for each terrain tile would be calculated from object (perferably selected by type so you could choose to only align to DIFs for instance).
#4
06/23/2006 (11:48 am)
Quote:Even cooler would be to have a "drop to ground" action (not having to set, do, and reset every time one wants to drop to ground). This goes for most drop to options I guess, even though the drop to ground is the one I use most frequent.

it's pretty easy to add script functionality to the world editor..
#5
06/24/2006 (5:35 am)
Great :-) Any suggestions where to look.

Are the terrain blocks geometry accessible from scripts?