0

Lerp not get it working.

I tried different combinations. but i do not get Lerp working. it keeps complaining about things. And no example line available. So am lost.

Am stuck with this error.

This last code i tried. Vector.Lerp is possible wrong. But i tried other combination is and that is failing to.

        Vector StartPos = new Vector(0f,0f,0f);
        Vector TargetPos = new Vector(10f,0f,0f);
        Vector CurPos = RigidBody.GetPosition();

        while (true)
        {
            CurPos = Vector.Lerp(TargetPos, 1.0f);
            Log.Write(CurPos.ToString());
            Wait(TimeSpan.FromSeconds(3));
        }

4 comments

Please sign in to leave a comment.