04-23-2014, 08:20 AM
I had an object generated by 3ds Max, when I put it in the scene, it need some rotation to get it right in the scene.
However, when I started the SplineWalkerCon I lost those initial values:
I changed line (107) in SplineWalkerCon:
transform.rotation = Spline.GetOrientationFast(mTF) * initialRotation;
to use the initial rotation which I copied it in the Start() from the transform object.
I did something similar on lines (95, 102) for position:
mTransform.position += positionShift;
I wanted to have my object walking above the Spline. Did I do something unnecessary (did Curvy already have such a feature?) and is this performant or you guys would consider adding it to script in a better way?
Thanks for the tool, made my life 1000x easier.
However, when I started the SplineWalkerCon I lost those initial values:
I changed line (107) in SplineWalkerCon:
transform.rotation = Spline.GetOrientationFast(mTF) * initialRotation;
to use the initial rotation which I copied it in the Start() from the transform object.
I did something similar on lines (95, 102) for position:
mTransform.position += positionShift;
I wanted to have my object walking above the Spline. Did I do something unnecessary (did Curvy already have such a feature?) and is this performant or you guys would consider adding it to script in a better way?
Thanks for the tool, made my life 1000x easier.