Physical Object
Posted: Mon May 25, 2009 10:53 am
Hi all,
i've this strange problem: I create a set of CompoundBody made by a simple ConvexHull object, and all of theese CompoundBody are identical each other. If i create them as dynamic object all works fine, but if i create all as nonDynamic objects, only the first added object to the space works right while the others seem to be ghost!
I notice that when i run (Space).add(CompoundBody) for each of thoose, if they are all dynamic the (Space).entities and (Space).physObjects count grow as we would expect. But in the second case, when they are all nonDynamic, only adding the first CompoundBody make (Space).entities and (Space).physObjects count grow, while adding the others make only (Space).entities grow and (Space).physObjects remains to 1. This is why all objects except the first seems to be ghost!
What could be the problem?
Thanks in advance!
Fax3D
i've this strange problem: I create a set of CompoundBody made by a simple ConvexHull object, and all of theese CompoundBody are identical each other. If i create them as dynamic object all works fine, but if i create all as nonDynamic objects, only the first added object to the space works right while the others seem to be ghost!
I notice that when i run (Space).add(CompoundBody) for each of thoose, if they are all dynamic the (Space).entities and (Space).physObjects count grow as we would expect. But in the second case, when they are all nonDynamic, only adding the first CompoundBody make (Space).entities and (Space).physObjects count grow, while adding the others make only (Space).entities grow and (Space).physObjects remains to 1. This is why all objects except the first seems to be ghost!
What could be the problem?
Thanks in advance!
Fax3D