Help with Velocities. (Applying to animals/npc)

Hi, I am making a game where there is a donkey/horse involved, and I don’t know what type of velocity I should be using.

I want smooth movement. that matches up with the horse’s animation, but I’m not quite sure how to go about achieving this.

Here are things I am considering.

LinearVelocity - I could use this, but it’s much harder to make it smooth and match up to the animation.
Tweening - This would be very hard for the physics of it, so probably not this either.
MoveTo() - This could work, but it’s still a velocity so I don’t know how I would match it up with the animation.
Also, does Roblox have RootMotion? I see a lot of posts about it but I cannot seem to find it in the documentation.

I could easily use any of these, but I want to be sure on which one is the best for movement.
What are the pros/cons of each?
Thank you.

Oh, I also added colliders for the legs because they were moving the horse when the walk animation was playing, is there a better way to do this?

2 Likes

If the horse npc/mob has a HumanoidRootPart, then my suggestion would be to leave the collisions for the legs off, since the humanoidrootpart and humanoid might already handle the collisions for the rest of the bodyparts themselves.

Try using MoveTo(), as you can use it with humanoids and it might work, tell me if you have tried it out, and if it works or not. :slight_smile:

I tried doing that but the horse doesn’t move when I use :MoveTo(). I decided to use linear velocity, and it seems to be working fine, but does anyone know how to match up the animation with the speed? Maybe I just have a bad animation.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.