mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
@@ -563,7 +563,7 @@ void GodotBody2D::integrate_forces(real_t p_step) {
|
||||
linear_velocity = constant_linear_velocity + motion / p_step;
|
||||
|
||||
real_t rot = new_transform.get_rotation() - get_transform().get_rotation();
|
||||
angular_velocity = constant_angular_velocity + remainder(rot, 2.0 * Math::PI) / p_step;
|
||||
angular_velocity = constant_angular_velocity + std::remainder(rot, 2.0 * Math::PI) / p_step;
|
||||
|
||||
do_motion = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user