Connecting Carts
Warning! Difficult task!
The old implementation of Rails let the user connect one cart to another. This was dropped with the rework of rails. The new impulse solver will need to be extended to support connecting two carts together.
The current implementation of the impulse solver is fairly simplistic and for the mod this works really well. This will require tweaking the impulse solver to allow carts to be connected to each other. Collisions between carts should be ignored to prevent unintended jumping. This type of constraint should act like a spring that pulls carts together.
There are some basic elements provided but beyond that this requires extending the impulse system. There are some nice resources on the subject but translating those details is not easy.
Definition of 'Done'
- A PR is submitted to the Rails repo with the requested changes
Where to start
- Investigate how the impulse solver works and how this works against bullet.
See also
- Physics Constraint: http://myselph.de/gamePhysics/equalityConstraints.html
- Old Implementation: https://www.youtube.com/watch?time_continue=22&v=_SwESByZtZg
- legacy branch: https://github.com/Terasology/Rails/tree/rails-legacy