TreeCollsision: Movement stops at Pos. x = 100 or x = -100

yoursort

07-10-2006 17:26:54

Hi,

I´m using a treeCollision object for simple collision detection between my world and my camera. Everything works fine but when I walk to the position (100, 0, 0) or (-100, 0, 0) or (0, 0, 100) or (0, 0, -100) the movement stops and I can´t move anymore. This happens everytime I try to walk farther away than 100 units from the origin.

The camera and the collision objects are initialized as described in the fps camera tutorials on this forum.

Are there any propertys which set a maximum range for collision detection or something like that? I´ve got no idea what´s going on here.

Thank you!

HexiDave

07-10-2006 17:41:57

Ya, you need to define the world size:
mWorld->setWorldSize(Vector3(-10000,-10000,-10000),Vector3(10000,10000,10000));

yoursort

10-10-2006 10:37:39

Thank you! Now it works!