Box2D Forum Archive
Search Settings
Home › Box2D Ports › Flash

cornor rotation

Flash
S satarupa
Apr 25, 2009 07:33
how to rotate body from corner not form center
i am using body.setXform(b2vec2(X,Y), angle)
this angle basically rotate ..but its doing form center of body
N Neosano
Apr 25, 2009 07:54
Subtract your corner vector from the body center, then use Vec2.CrossFV(1) and then applyForce!

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

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