I Have a physics object and I want to be able to drag it around, like in this game :
http://www.motika.com.mk/index.php?opti ... &Itemid=57
I tried the drag and drop behavior but it doesn't work very well (object doesn't rotate and collisions are wrong ) So i wonder how else can I do that ?
Thanks in advance.
Develop games in your browser. Powerful, performant & highly capable.
Here's an example cap.
Click on the sprite to drag.
http://dl.dropbox.com/u/22173473/Physics%20drag.cap
Hope this helps.
Thanks, but I also want the sprite to rotate depending on where I click it. Like creating a hinge at the mouse point. Thats why I didn't use Drag-and-drop behavior in he first place.