Hello,
it seems that there is a bug when using MotionEvents when not playing the cinematic but manually calling setTime.
The event reverts to the starting position once the time of the cinematic is greater than the initialduration of the MotionEvent.
On further investigation I found out that the spatial does not change the translation smoothly. While the output of spatial.getWorldTranslation() is like this:
(0.32764757, 0.5, 0.0)
(0.41019493, 0.5, 0.0)
(0.49423054, 0.5, 0.0)
(0.5762775, 0.5, 0.0)
(0.66033393, 0.5, 0.0)
(0.7427033, 0.5, 0.0)
(0.8274445, 0.5, 0.0)
(0.90997744, 0.5, 0.0)
(0.9932416, 0.5, 0.0)
(1.0802809, 0.5, 0.0)
when playing the cinematic; it is like this:
(8.1, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
(8.125, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
(8.175, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
(8.200001, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
(8.225, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
(8.25, 0.5, 0.0)
(0.0, 0.5, 0.0)
(0.0, 0.5, 0.0)
when setting the time manually. (0, 0.5, 0) is the start WayPoint of the MotionEvent.
Is this a bug or am I doing something wrong?