Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
WIP - WiimoteEmu: Improve emulated swing. #7973
I've replaced the hard to comprehend "Jerk" setting with a "Speed", measured in m/s.
The jerk required to reach this velocity when traveling 1 meter is used to "move" the emulated wiimote.
I've added a "Return Speed" setting which is used to move the emulated wiimote back to its neutral position after a swing.
The emulated wiimote is now moved backwards and with a twist in the direction of the swing to simulate the motions one would make with their arm.
The swing emulation code is getting a little more ugly than I'd like but short of pulling in a physics library I don't think it can be much cleaner while maintaining this functionality.
No More Heroes 1 and 2
I played a few games tonight to see how this did and it works quite well.
No More Heroes - initially I ran into some minor issues with this game on the default settings but after playing another game and tweaking the settings, I came back and found it immensely satisfying.
All n all I think this is a game changer. Controls feel very responsive now.
I will test more games in the next day or two. Thank you @jordan-woyak !
A couple more games played today:
Deadly Creatures - I haven't tried this on master but I was able to execute the Wii swing motions easily. I did have trouble with the Scorpion's 'Dash' move which is supposedly activated by a Nunchuk down-swing.