10 Commits

Author SHA1 Message Date
51c0cb22d2 Minor changes
Remove debug cout, change some parameters to make it more pleasant to use
2020-10-05 17:55:21 +02:00
074ec20e1b Add interactive path editing
The PathMovementSwitchSystem was repurposed to a general InteractivePathSystem for this. It handles switching and adding points, as both seem like sensible possibilities for such entities to have.
2020-10-03 18:05:55 +02:00
3fb23200fb Add system to switch between path and manual movement
This system automatically checks for entities with both movement methods, and activates/deactivates them when pressing P.
2020-10-03 17:44:52 +02:00
cf19af1142 Attempt at constant speed
Not working because linearly increasing t doesn't imply constant velocity within a segment between two points. Seems like a more complex approach will be necessary
2020-10-03 00:56:49 +02:00
09897240d1 Add changing speed with W and S 2020-10-03 00:56:41 +02:00
aef495a394 Add Quaternion interpolation
glm made this quite easy!
2020-10-02 22:27:12 +02:00
9125e7a3cc Add origin vector to Transform
We need this in addition to the Matrix (which includes translation) - mainly for rotation, which should be around the translation, but not around the origin.

There may be some places left which need changes due to this - the line between the origin and translation isn't as clear yet as it should be.
2020-09-29 21:04:25 +02:00
0aa41b3d66 Basic structure for rotation 2020-09-29 17:56:07 +02:00
d6effd66f6 Finish basic spline movement
The speed isn't chosen correctly yet, but the basic movement along the spline is functional!

There are opportunities for a performance increase: Some calculations which we currently do every frame, are actually only necessary once we choose a new point for moving towards.
2020-09-28 18:14:20 +02:00
8f3d3dc7bf First steps towards Catmul-Rom spline path movement
Lots of hardcoded stuff, but interpolation between two points is working and displayed.
2020-09-28 16:52:35 +02:00