Game Development Community

Falling through terrain

by Robert Taylor · in Torque Game Engine · 02/03/2003 (9:39 am) · 6 replies

It seems when you change the scale from (1 1 1) for the terrainblock, your player always falls through the terrain. I would really appreciate if anyone can help me fix this problem.

#1
02/03/2003 (10:26 am)
The terrain block isn't like the other objects (since it's highly optimized for the rendering and interaction -handling of terrain), so scaling isn't likely to work well on it.

It would be better to scale your other objects to fit the terrain than the other way around. There's also the blocksize which you can tweak, and if you just want more terrain area, there's the terrain manager.
#2
02/03/2003 (6:17 pm)
Ah, so I can import a 512x512 height map?
#3
02/10/2003 (6:48 am)
That's interesting. I also got some questions with this regard. I created a building with different levels and i tried to insert it into the terrain. Unfortunately the terrain would be all over the hollow areas of the building. How can you make the terrain respect the area of the building or how can you carve a hole in the terrain to insert your levels?
#4
02/10/2003 (6:55 am)
You can go to Terrain Painter. Then select in the drop down menu at the top, "Set Empty" to make holes in the terrain, and "Clear Empty" too fill the holes. Note that it will get rid of the whole polygon when you set the polygon to empty. You'll need to have the building cover the gaps.
#5
02/10/2003 (7:32 am)
If your player falls through the terrain as soon as you start a level, then it could be that the player's spawn sphere is now below the terrain. You can edit the spawn sphere and raise it a tad to fix the problem.

If not, then ignore this post...........

Edit: fixed a dumb spelling mistake that changed the context of my reply.
#6
02/10/2003 (8:42 am)
No, the spawn sphere is considerably above the terrain. Usually fall a ways before hitting and passing through the terrain. It only does it if I up the scale of the map. But actually, now that you mention it, I don't think the terrain scales at all. But the collision might think the terrain is. That actually explains why you fall through. It completely ignores the "SCALE" property of the terrainblock now (use to work), but the collision still does scale when calculating rather there is a collision.

I would like to up the scale of the terrain because I'm not sure if you can have multiple terrain blocks. Last I heard they removed it from Tribes 2. 2km x 2km is too small for what I want to do. I don't see any in game support for multiple terrain blocks.