Skip to content

Relations between x y axis and the velocity in pixels? #1093

Answered by AlmasB
chengenzhao asked this question in Q&A
Discussion options

You must be logged in to vote

There are two methods in PhysicsComponent that take velocity: one is in pixels, the other in meters. Velocity is measured by units per second, rather than units per frame (at least as far as I can remember), so something like x += velocity * tpf is a closer comparison.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chengenzhao
Comment options

Answer selected by chengenzhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants