ofxBox2D mouseJoint angular damping/velocity issue

Discuss issues specific to miscellaneous ports of Box2D
autofasurer
Posts: 1
Joined: Mon Apr 10, 2017 6:09 am

ofxBox2D mouseJoint angular damping/velocity issue

Postby autofasurer » Wed Apr 12, 2017 12:03 am

Hi everyone,

I've been messing around with the examples of Box2d for openframeworks and I've run into an issue which I can't seem to resolve.
Hopefully someone here can point the right way!

I'm trying to make a simple puzzle game for iOS in which you drag the pieces around; I'm using box2d because it works very nicely in terms of collision with other pieces and gives the whole thing a 'natural' feel. There's one thing I can't seem to figure out though, and that is when dragging a piece it tends to rotate and keep spinning after release.
I've made a screencap of this here: https://www.youtube.com/watch?v=Q2aM1onXqMg

Any clues on why and how to solve this would be greatly appreciated; I'm rather stuck...

Return to “Miscellaneous”



Who is online

Users browsing this forum: No registered users and 2 guests