1 decade ago by Ashims
Hi Guys,
I'm attaching two entities that have Box2d physics enabled on them using a simple...
...and its giving me some funky physics problems, which I'm assuming are to do with the entity "being carried" still having its physics enabled. I can't however find details on how to disable the body collisions.
I've tried freezing it, destroying it, and throwing various m_types at it, but I'm really working blind here. Can anyone perhaps give me a little direction on how this sort of thing would normally be achieved with box2d?
I'm attaching two entities that have Box2d physics enabled on them using a simple...
this.body.SetXForm(this.carriedBy.body.GetPosition(), 0);
...and its giving me some funky physics problems, which I'm assuming are to do with the entity "being carried" still having its physics enabled. I can't however find details on how to disable the body collisions.
I've tried freezing it, destroying it, and throwing various m_types at it, but I'm really working blind here. Can anyone perhaps give me a little direction on how this sort of thing would normally be achieved with box2d?