Getting distance moved this frame
Posted: Mon Jun 15, 2015 8:00 pm
Is there any way to get the distance that a body's moved in the last frame? I'm trying to implement scrolling. Obviously I have my x and y offsets, and when the object being tracked reaches a certain part of the screen, I start to increase the offset by how quickly the body is moving in that direction. The trouble is that I can't figure out how to find it: both GetVelocity and GetForce come up extremely short.