Physical Object

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Fax3D
Posts: 22
Joined: Mon Sep 29, 2008 7:42 am

Physical Object

Post by Fax3D »

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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Physical Object

Post by Norbo »

I don't think I understand the issue well enough to reproduce it; could you post the code you use to set up the problematic bodies?
Post Reply