Game Development Community

Falling through ground

by Vasilios Hioureas · in Torque X 3D · 06/18/2009 (7:43 pm) · 22 replies

Im having a problem, when i move my character around, at some random points in the terrain, i end up falling through.

does anybody know what this might be caused from or how to fix it. or also, is there a way to find out the height of the terrain at the place which you are stepping so that i can do a:
if (myPosition < terrainPosition)
myPosition = terrainPosition+1;

or something.

thanks
Vas
Page«First 1 2 Next»
#21
08/15/2010 (5:32 am)
It turns out my issue was also not with falling it was with my static object that my guy was starting on.

Glad you figured out the RigidComponent thing. How did you find out it was not cloning correctly? I use object.CloneT() and have not had an issue, that I know of.


#22
08/16/2010 (1:33 am)
I put a breakpoint on the CopyTo to ensure the T3RigidManager was being copied over, and discovered none of my components were making it over to the TorqueObject clone. I gave up on trying to modify the CopyTo component and just generated the objects as new TorqueObjects.

Note I had a custom component in my TorqueObject components: my AiComponent. Plus I had overridden my CopyTo method already...so those may have been the issue.
Page«First 1 2 Next»