So halfway through my project I tried out the GetLinearVelocity() function for b2Body, along a few of the other Get_ functions. When I tried to get a copy of the b2Vec2 returned and then altering said copy, I noticed that the linear velocity of the object itself is directly changed (no SetLinearVelocity in there). Same goes for GetPosition().
Am I taking crazy pills here, or is my code so twisted and tangled that I messed up somehow? When I dug into the source code for Box2D it doesn't appear to return references...
Am I taking crazy pills here, or is my code so twisted and tangled that I messed up somehow? When I dug into the source code for Box2D it doesn't appear to return references...