From b794737bcf5db7f941cb4741757607de31c3f953 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 6 Oct 2019 09:51:09 -0500 Subject: [PATCH] WiimoteEmu: Disable simulation of centripetal acceleration. --- Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp index b4d5eed7a6..c1f9663c7e 100644 --- a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp @@ -732,18 +732,6 @@ Common::Vec3 Wiimote::GetAcceleration() // Our shake effects have never been affected by orientation. Should they be? accel += m_shake_state.acceleration; - // Simulate centripetal acceleration caused by an offset of the accelerometer sensor. - // Estimate of sensor position based on an image of the wii remote board: - constexpr float ACCELEROMETER_Y_OFFSET = 0.1f; - - const auto angular_velocity = GetAngularVelocity(); - const auto centripetal_accel = - // TODO: Is this the proper way to combine the x and z angular velocities? - std::pow(std::abs(angular_velocity.x) + std::abs(angular_velocity.z), 2) * - ACCELEROMETER_Y_OFFSET; - - accel.y += centripetal_accel; - return accel; }