On 27 janv. 07, at 00:52, Greg Ewing wrote:
marmoute wrote:
As a world can only have a single Space the creation of any new
Space for a World will replace the old one (and transvase it's
content into the new one).
I hope it's possible for a single ode world to have more
than one collision space.
In my game I have two spaces, one for fixed objects and one
for moving objects. I test the moving objects for collision
with each other and with the fixed objects, but don't test
the fixed objects for collision with each other (which
obviously can't happen).
Since I expect to have many fixed objects and only a few
moving ones, this greatly reduces the amount of collision
detection that must be done.
each body (with collision detection) will be placed into the
Space of it's parent World* and each Space will be placed into
the Space of it's parent until you get the root space.
Okay, so I could have two (non-ode) sub-worlds called
fixed_objects and moving_objects, each with its own
space. All I need then is the ability to tell it not
to collide the fixed_objects space with itself. Is it
possible to do that?
Not yet but it may be possible to implement it as I think ODE allow
such thing.
I'll have a look to the soya part, may you look at the ODE part ?
--
marmoute
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user