Android. LidGDX. Following CatmullRom spline produces weird results in 3D
问题 I have a 3D-object that is navigating the CatmullRom spline. The code I'm using is taken from Xoppa's answer here: Xoppa's answer There are 2 ways of aligning object along thre spline. I tried both of them. And have weird results with both. Option 1 (it mostly OK but have a weird rotations occuring...see image below): Option 2 (removes issue from Option 1 but everything else is not okay..see image below ): My spline: pointsArray = new Vector3[21]; pointsArray[0] = new Vector3(-5, -2, 2);