Meters to pixels?
When you calculate the delta time, it most likely returns the meters in change.
(If not pretend it does, lol)
This is perfect for a 3D world, because you adjust the 3D engine on any measurement system, inches, meters, feet, etc...
But how would you do this for a 2D world that is based in pixels?
When you calculate delta time you get change in time, not change in meters. No amount of pretending is going to change units from time to distance. You can calculate displacement of an object by multiplying the change in time by a velocity, be it in terms of meters per second or pixels per second.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement