Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Looping animation keeps going back to original position

Author
Message
Battoad
AGK Developer
17
Years of Service
User Offline
Joined: 12th Feb 2007
Location: A Dark Place
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

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
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
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Battoad
AGK Developer
17
Years of Service
User Offline
Joined: 12th Feb 2007
Location: A Dark Place
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.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 28th Sep 2021 11:21
Quote: "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
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Battoad
AGK Developer
17
Years of Service
User Offline
Joined: 12th Feb 2007
Location: A Dark Place
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
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
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
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Battoad
AGK Developer
17
Years of Service
User Offline
Joined: 12th Feb 2007
Location: A Dark Place
Posted: 28th Sep 2021 12:10
Ha, if only

Login to post a reply

Server time is: 2024-05-04 09:53:29
Your offset time is: 2024-05-04 09:53:29