foxbat
29-01-2007 23:36:23
Hi.
I'm getting a crash when using long rays with terrain with the new sdk. Rays up to a few terrain quads in length work ok, but longer ones will cause a crash with the following error:
I tested this with the landscape demo also, and I get the same result. Here are the ray parameters I'm using with the landscape demo:
I also found that rays which are even longer than that, say 100000 units will cause a different crash - an abnormal program termination.
I'm getting a crash when using long rays with terrain with the new sdk. Rays up to a few terrain quads in length work ok, but longer ones will cause a crash with the following error:
Invalid operation for locked space (\Programming\OgreODE\ode\ode\src\collision_space.cpp:699)
I tested this with the landscape demo also, and I get the same result. Here are the ray parameters I'm using with the landscape demo:
OgreOde::RayGeometry *mRay = new OgreOde::RayGeometry(1000, _world, _world->getDefaultSpace());
mRay->setDefinition(Vector3(10,200,10),Vector3(1,-0.4,1));I also found that rays which are even longer than that, say 100000 units will cause a different crash - an abnormal program termination.