Page 1 of 1

Move a Character follow an anchor point/bone in realtime

Posted: Mon Jun 24, 2019 2:48 pm
by sonic2002
Hello,
If you have a dinosaur, and you have also in a separate file your main character,

Inside Unity, How do you make the Main character follow the backbone of the dinosaur so it looks like he rides it ?

I would like something that follows the animation of the dinosaur so the charcter moves along with it.

Any help ?

Thank you

Re: Move a Character follow an anchor point/bone in realtime

Posted: Mon Jun 24, 2019 3:15 pm
by sonic2002
For anyone I just discovered this:


https://www.kestrelmoon.com/creaturedoc ... gines.html

But no tutorial on how to use it inside Unity. any code help or tutorial ?

Re: Move a Character follow an anchor point/bone in realtime

Posted: Mon Jun 24, 2019 3:40 pm
by chong
Hello,

There isn't a tutorial because once you get the bone position from Creature via its API, the rest is pure Unity.
You should look up in Unity how to set transforms on GameObjects to accomplish what you want.

Re: Move a Character follow an anchor point/bone in realtime

Posted: Mon Jun 24, 2019 4:55 pm
by sonic2002
Yes but how do I set it back? a little example would be nice in the doc.
Also, Is this avalaible with Creature Pack?

is Vertex attachment equivalent to anchor point in Creature pack?

Re: Move a Character follow an anchor point/bone in realtime

Posted: Mon Jun 24, 2019 8:49 pm
by chong
Vertex attachment allows attachment via vertices instead of bone transforms. So it is more precise in that way.
It will return you the vertex position you designated in Creature and you can use that to set the position of your attachment.
You can search the forum for the use cases, there was a previous question about it and it was answered quite comprehensively.