Box2D Forum Archive
Search Settings
Home › Box2D Ports › Flash

Mass in b2ContactListener.

Flash
M mbhagya
Jan 3, 2012 05:16
I need to access 'Mass' in b2ContactListener.

Using contact.GetFixtureA().GetBody().GetMass(), I always get zero.

Any suggestions?
M mbhagya
Jan 3, 2012 05:38
I get it. It returns 0 for static bodies. :-/

Original thread: https://box2d.org/forum/viewtopic.php?t=8027

This is an unofficial, read-only archive preserved for the community. Original site: https://box2d.org

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About