Game Development Community

Basic terrian collision

by John Crawford · in Torque 3D Professional · 02/10/2010 (1:56 pm) · 3 replies


Is there a terrain collision setting box in the inspector? In the game mode is terrain collision automatic or do you have to crete a mesh or program it in. In other words how can I walk around the terrain either in sandbox mode or game mode without going though the terrain or going though hills or mountains.

I know it a really basic question but I've been stuck for a few days on this and there is nothing in the fourms or the documentation the adrress this. directly

Thanks

sonnyc

#1
02/10/2010 (3:39 pm)
It's automatic. If your spawn sphere is set below the terrain, that might make it appear that you are falling through the terrain.
#2
02/17/2010 (10:47 pm)
Thanks. But what is really odd is that if you use the "play " button from within the editor It still seems to still be in edit mode and you still have no collision. If you start the from the tool box and press "play game " then you get full collision.

Thanks again
#3
02/18/2010 (2:06 pm)
I think that what you are talking about is being in world camera mode as opposed to player camera mode.

When you start the game in the way you describe, the object you are controlling is not the player...it is only the world camera. Thus, when you move, you are not moving the player, just the camera. In that mode, you won't collide with the terrain.

You want Player camera mode. use Alt C to toggle between them.