Commit 62186dbc authored by Ian McInerney's avatar Ian McInerney

Fixed issue with differentiating the position

parent d2f80e12
......@@ -232,9 +232,9 @@ void commanderXYZ_GetPosition(state_t *state, const uint32_t tick) {
float newZ = commanderXYZ_GetPositionZ();
// Compute the linear velocity
state->velocity.x = newX - oldX;
state->velocity.y = newY - oldY;
state->velocity.z = newZ - oldZ;
state->velocity.x = (newX - oldX) / 0.01;
state->velocity.y = (newY - oldY) / 0.01;
state->velocity.z = (newZ - oldZ) / 0.01;
// Set the current position stuff in the structure
state->cameraYaw = commanderXYZ_GetPositionYaw();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment