Add steer parameter to CSceneNodeAnimatorFollowSpline which allows rotating node toward direction of movement.

Thanks @ Bate for the patch (patch #175 with minor changes).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6234 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2021-08-20 16:39:37 +00:00
parent 54e10d0dbe
commit fab0c53b85
6 changed files with 29 additions and 12 deletions

View File

@ -341,7 +341,7 @@ namespace scene
//! Creates a follow spline animator.
virtual ISceneNodeAnimator* createFollowSplineAnimator(s32 startTime,
const core::array< core::vector3df >& points,
f32 speed, f32 tightness, bool loop, bool pingpong) _IRR_OVERRIDE_;
f32 speed, f32 tightness, bool loop, bool pingpong, bool steer) _IRR_OVERRIDE_;
//! Creates a simple ITriangleSelector, based on a mesh.