Skip to content

Commit

Permalink
Merge pull request #43 from itulau/fix-rotational-drag
Browse files Browse the repository at this point in the history
fix rotational drag not working as intended
  • Loading branch information
AustinEast authored Jan 10, 2024
2 parents 77e0f4f + e6ca792 commit 8a9d56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo/Physics.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Physics {

// Apply Rotational Acceleration, Drag, and Max Velocity
var accel_rot = body.torque * body.inverse_mass;
body.rotational_velocity = compute_velocity(body.rotational_velocity, body.rotational_drag, accel_rot, body.max_rotational_velocity, dt);
body.rotational_velocity = compute_velocity(body.rotational_velocity, accel_rot, body.rotational_drag, body.max_rotational_velocity, dt);

// Apply Rotational Velocity
body.rotation += body.rotational_velocity * dt;
Expand Down

0 comments on commit 8a9d56a

Please sign in to comment.