Implemented simple forward facing animation type for Catmull-Rom splines.
Gah, that was painful. Obvious solution with object.lookAt doesn't work, forward facing direction (heading and attitude) is fine, but banking gets messed up:( Tried many fixes, none worked, so I just resorted to simple rotation around Y-axis based on direction vector.
Showing
想要评论请 注册 或 登录