You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When porting box2d to actionscript, I found some problems, but because I
didn't study the code deeply, so maybe they are designedly.
1. Possible a contact is passed to contactListerner.BeginContact, but
never passed to contactListerner.EndContact, even if it has been destroyed:
a. one case: the contact is a touched in last step, but in current step,
even the aabbs are not overlapped, then the contact is destroyed, so the
EndContact is not called for this contact.
b. other reasons make the contact destroyed:
- some Destroy (contact)s in contactManager.Collide
- destroy fixtures
2. SyaGoodbye is not called in body.DestroyFixture and body.DestroyJoint.
Maybe this is deliberately.
3. Should "BufferMove (fixture)" also be called when a body become dynamic
from static? Image a situation: in a non-gravity enviroment, two static
shapes are ovelapped, then make one dynamic. Seems now no contacts will be
created between them.
4. Should ContactListener.PreSolve () only be called when (contact.m_flags
& e_touchingFlag) != 0 && newCount > 0
5. If I change the ShouldCollide rules runtimely, how can I make the core
api knows this change and call FlagForFiltering?
6. Can I change joint.m_collideConnected runtimely, if true, how can I
make the core api knows this change and call FlagForFiltering?
7. About the body mass, if there is only one shape with zero density in a
body, then the body is static, but if another shape with non-zero density
is added to the body, the body will become dynamic. If it is the design,
no problems here. I just thnk it is more reasonable to make the body
static only if there is a zero denstiy shape in the body.
That is all, maybe I'm wrong on these points.
btw, I like the new broadphase very much!
Original issue reported on code.google.com by Tapir....@gmail.com on 29 Sep 2009 at 11:23
The text was updated successfully, but these errors were encountered:
sorry, my english is not good. int the last point, it should be "I just thnk it
is
more reasonable to make the body static as long as there is a zero denstiy
shape in
the body."
Original comment by Tapir....@gmail.com on 29 Sep 2009 at 11:39
This post is more of a discussion than a bug report or feature request. Please
post
this on the forums. If we resolve that something needs to be changed, please
file and
issue again, but only one issue per issue please.
Original comment by erinca...@gmail.com on 20 Nov 2009 at 6:50
Original issue reported on code.google.com by
Tapir....@gmail.com
on 29 Sep 2009 at 11:23The text was updated successfully, but these errors were encountered: