Game Development Community

BUG: Collision on terrain stops working past certain height

by Samuel Rowe · in Torque 3D Professional · 12/20/2013 (6:27 pm) · 4 replies

Hello everyone, I'm Samuel and recently I've been getting quite into Torque3D. It has a great interface, easy-to-use tools and a straightforward setup.
But recently - In fact all of today - I've been stumped by an annoying bug:
Whenever the player goes past a certain height on my terrain, he just falls through it. The terrain max height is 2047 since I heard the max height is actually 2047.9 or something.
The height at which the player falls through is around 1020 (I assume the problem has something to do with the 1024 number).
Some information:
My Terrain HM is 2048x2048,
Max height is 2047,
Square size is 10,
Imported using L3DT's 'Export to Torque3D' tool.

Now, I'm a persistent person, and usually don't stop working on something until I know that it is not able to be worked around.

Any ideas guys?

About the author

Recent Threads


#1
12/20/2013 (6:38 pm)
Which Torque 3D version are you using? And is it possible you could link a download to the terrain you've imported into Torque 3D and are experiencing the problem with?
#2
12/20/2013 (6:48 pm)
Torque3d MIT and yeah, here it is: https://www.mediafire.com/folder/5166qik8rqm9c/Files
#3
12/21/2013 (12:03 pm)
Yep, happens on my other map too. So it's either a T3DT problem or something to do with my particular game.
#4
12/21/2013 (1:25 pm)
Good news! I fixed the bug. It seemed to be related to my project and I discovered this by creating a new project and testing the map on the new project. I'm guessing it had something to do with me recompiling the project code earlier on and possibly I didn't set up the environment properly in Visual Studio 2010. So from now on it would be best for me to leave the source code until I know what I'm doing.
Thanks,
Samuel.