diff options
author | lawnjelly <lawnjelly@gmail.com> | 2023-05-17 16:22:26 +0100 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2023-06-06 15:36:51 +0100 |
commit | b69c8b47916e4b3511c1aeff254ebfa6deef37ba (patch) | |
tree | 121f1601353f788375749abd834bfb5515afa843 /servers/physics_3d/joints/godot_slider_joint_3d.cpp | |
parent | 543750a1b3f5696f9ba8e91cb49dc7db05d2ae62 (diff) | |
download | redot-engine-b69c8b47916e4b3511c1aeff254ebfa6deef37ba.tar.gz |
Single Compilation Unit build.
Adds support for simple SCU build (DEV_ENABLED only).
This speeds up compilation by compiling multiple cpp files within a single translation unit.
Diffstat (limited to 'servers/physics_3d/joints/godot_slider_joint_3d.cpp')
-rw-r--r-- | servers/physics_3d/joints/godot_slider_joint_3d.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/servers/physics_3d/joints/godot_slider_joint_3d.cpp b/servers/physics_3d/joints/godot_slider_joint_3d.cpp index 21004b3395..b9dca94b37 100644 --- a/servers/physics_3d/joints/godot_slider_joint_3d.cpp +++ b/servers/physics_3d/joints/godot_slider_joint_3d.cpp @@ -57,25 +57,6 @@ April 04, 2008 //----------------------------------------------------------------------------- -static _FORCE_INLINE_ real_t atan2fast(real_t y, real_t x) { - real_t coeff_1 = Math_PI / 4.0f; - real_t coeff_2 = 3.0f * coeff_1; - real_t abs_y = Math::abs(y); - real_t angle; - if (x >= 0.0f) { - real_t r = (x - abs_y) / (x + abs_y); - angle = coeff_1 - coeff_1 * r; - } else { - real_t r = (x + abs_y) / (abs_y - x); - angle = coeff_2 - coeff_1 * r; - } - return (y < 0.0f) ? -angle : angle; -} - -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- - GodotSliderJoint3D::GodotSliderJoint3D(GodotBody3D *rbA, GodotBody3D *rbB, const Transform3D &frameInA, const Transform3D &frameInB) : GodotJoint3D(_arr, 2), m_frameInA(frameInA), |