|
|
|
|
|
by ycmbntrthrwaway
3716 days ago
|
|
Looks like controls are completely different from https://xmoto.tuxfamily.org/. In Elastomania and original XMoto left/right just adds momentum, and in XMoto.js it just tilts the player forward or backward, which is more realistic. Is this behaviour intended? Compatibility with original XMoto is not planned, right? |
|
If you want to play with the physics, you can try to change some values here by clicking on them: http://js.xmoto.io/?level=1010&debug=true It's fun to do and I'm open to new modes :-)
If you are interested, the input code is here. As you can see, acceleration and brake are only applied on the wheels, like in real-life. But for the moto rotation, I cheat by applying some torque on the moto body because the driver was not heavy enough to make it rotate quicky: https://github.com/MichaelHoste/xmoto.js/blob/pixijs/src/mot...