Unity Animation – Trouble making object to jump to new position.

Updated on May 10, 2017 in Unity
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on May 6, 2017

Bey Chaps/Chappettes.

i am new to Unity and am learning alot on the job.. i am playing around with getting an object (player) to move from positon A to position B smoothly using an animation.

i am using the Vector3.Lerp function to move the object and using a trigger on the animation transition to set the jump from idle.

When this trigger is disabled and the object is just “Idling” the object shifts correctly and successfully, but when i turn on the jump animation, the code goes to pot and the object does not shift at all and disregards and poisitons.

i was using the YouTube Channel (Penguin Design) as my base point for moving the object as the channel describes making a version of crossy road.

anyone got any good links or useful Tuts that can assist me in getting this right.

  • Liked by
Reply
0 on May 10, 2017

i fixed it by stripping it all out and building it up from the beginning. i decided to read in full al the documentation for Lerp / animation within Unity which helped massively.

All working.

  • Liked by
Reply
Cancel