Box2D Forum Archive
Search Settings
Home › Box2D › General Discussion

SetAngle()

General Discussion
S Storyyeller
Mar 11, 2010 06:32
How do you set the angle of a body?

For some reason, there is no b2Body::SetAngle()
J Jesse
Mar 11, 2010 12:57
You can just use the 'set transform' function, and use the body's current position for the 'position' argument (which will have the effect of modifying the angle and leaving the position unchanged).

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

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