[ODE] What would cause a geom's space to change?

Tim Rightnour root at garbled.net
Tue Nov 30 12:50:53 MST 2004


In my simulation I have cut the map into 256x256 chunks.  Each one has a space
associated with it.  When a moving object transitions from one map to the next,
I call dSpaceRemove(spaceid, geomid) and then dSpaceAdd(newspaceid, geomid);

This results in:

ODE INTERNAL ERROR 2: object is not in this space in remove()
Program received signal SIGABRT, Aborted.

(which I might add the ODE docs specifically state it should not do)

When I look at my geom however, I see that it really isn't in the space I
placed it in.

(gdb) print *obj->gtrans[0]
parent_space = 0x81da200

However, when I created the geometry transform, and even after I attached it to
a body, I check the parent_space, and it was 0x81a2180.

So what made my geom change spaces on me?  I've tried this with both hash
spaces and simple spaces, and I allways end up with the same problem.

---
Tim Rightnour <root at garbled.net>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/


More information about the ODE mailing list