mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-04 09:10:27 +02:00
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:
@ -1872,10 +1872,10 @@ ISceneNodeAnimatorCollisionResponse* CSceneManager::createCollisionResponseAnima
|
||||
//! Creates a follow spline animator.
|
||||
ISceneNodeAnimator* CSceneManager::createFollowSplineAnimator(s32 startTime,
|
||||
const core::array< core::vector3df >& points,
|
||||
f32 speed, f32 tightness, bool loop, bool pingpong)
|
||||
f32 speed, f32 tightness, bool loop, bool pingpong, bool steer)
|
||||
{
|
||||
ISceneNodeAnimator* a = new CSceneNodeAnimatorFollowSpline(startTime, points,
|
||||
speed, tightness, loop, pingpong);
|
||||
speed, tightness, loop, pingpong, steer);
|
||||
return a;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user