In response to this thread:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=195771&page=1
This example has a rotating 'door'. Gravity has been set to 0 in the Box2D properties for a top-down game.
Printable View
In response to this thread:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=195771&page=1
This example has a rotating 'door'. Gravity has been set to 0 in the Box2D properties for a top-down game.
This isn't exactly what I'm looking for. The game is a platformer, so gravity should affect the door, making it swing downwards. Also, the door needs to be movable, for example, always anchored at the mouse coordinates.
Make a mouse joint...
That was an example. I do not want a mouse joint; I want a revolute joint at a dynamic set of coordinates.
You could at least say thanks for trying :P
I made another example. I think it's more what you want. I used some code from the testbed.mfa. You'll need to tweak how much the door rotates and where it rotates using the centre of gravity and the positioning of the object itself relative to the square active.
I apologise for my evident lack of recognition. I was quite in a rush to get numerous other tasks completed before the arrival of family members for this upcoming week in which I will be absent.
On a lighter note, this final example, it works great and is precisely what I wanted. Thank you!
PS: Thanks for trying...
Haha no problem! I completely understand. I hope it helps :) Just ask if you need any more help.