Need Help in Box 2D
Monkey Forums/Monkey Beginners/Need Help in Box 2D
| ||
How to create angle shape in box 2d so that my ball will roll down.. the only option that I see is the box and circle. |
| ||
You can rotate the painting direction with the command Rotate(). All Draw() commands after this will be rotated. Often we use this in combination with PushMatrix() and PopMatrix() to return to the normal direction: PushMatrix Translate 300,200 Rotate 45 DrawRect 0,0,200,100 PopMatrix |
| ||
Check my basic framework here: http://www.monkeycoder.co.nz/Community/posts.php?topic=3106&page=1 Just can create a Box2D poly shape or use a Box2D edge line at an angle. |
| ||
fantomEngine also has a wrapper that is pretty straight forward. You can get the picture from it quite easily. Also it supports PhysicEditor shapes. :-) |