Posted: 28th Sep 2021 10:49
Hi there
sorry to be a pain but i'm stuck again with my 3D animation of a character.
Using " PlayObjectAnimation( 10, "", 0.0, -1, 1, 0 ) " starts the character to walk for 2 steps but instead of continuing the walk from its new position it jumps back to the original start point and the takes another 2 steps and so on.
How do i get it from returning to its original start point every loop. I basically want it to walk forward until i want it to stop.

Thanks
Posted: 28th Sep 2021 10:57
Ah, your Mixamo character has root motion?

go back to Mixamo, redownload the character but select "In Place" on the movement animation .. if you downloaded an animation pack then some extra work is needed in blender to remove the root motion from the hip bone
Posted: 28th Sep 2021 11:15
Hi PartTimerCoder, Thanks for that bit of info which helps to some degree.
The walking does loop continuously now but basically on the same spot.
I guess now that i need to somehow incorporate the "x,y,z object positioning" to be in relation to the animation movement ?
Starting to get even more complicated.
Posted: 28th Sep 2021 11:21
The walking does loop continuously now but basically on the same spot.


That is exactly what you want, the game engine should be responsible for moving the object.

Now simply use MoveObjectLocalZ

or look for the character controller example from the 3D physics, but that's a little advanced
Posted: 28th Sep 2021 11:30
Many thanks PTC, youv'e helped a great deal. Would never of even got this far without your help.

I would be surprised if many have created a moving 3D character project as its turning out to be very difficult, with little help from the TGC documentation or examples.

Thank goodness for the forum
Posted: 28th Sep 2021 11:45
No Problem, glad to help

When you make a game that goes viral and makes millions, remember who got you started
Posted: 28th Sep 2021 12:10
Ha, if only