Hey guys!
I defined a mousejoint like here:
b2MouseJointDef md;
_worldBody->SetFixedRotation(true);
_playerBody->SetFixedRotation(true);
md.bodyA = _worldBody;
md.bodyB = _playerBody;
md.target = locationWorld;
md.collideConnected = TRUE;
md.maxForce = playerSpeed * _playerBody->GetMass();
_mouseJoint = (b2MouseJoint *)world->CreateJoint(&md);
_playerBody->SetAwake(TRUE);
But when I drag the ship (from anywhere) ist begins to rotate around my mousejoint :(
But how can I decline that ? How to keep the distance constant?
best regards ^^