I am making a horse right now, but I am having trouble moving it forward. When the horse’s orientation at 0,0,0 I can simply just increase X and leave Z = 0. But what happens when the orientation is not at 0,0,0 how can I change the value of X and Z so it can move forward
1 Like
You can try using a base part within the horse as reference for your velocity. Something similar to a HumanoidRootPart would work pretty well for this, although any sort of fixed invisible origin part inside the horse which isn’t naturally rotated and faces to the front of the horse works as well.
Example
BodyVelocity.Velocity = Horse.HumanoidRootPart.CFrame.lookVector * Speed
You can do this backwards as well by making the speed a negative integer.
BodyVelocity.Velocity = Horse.HumanoidRootPart.CFrame.lookVector * -Speed
2 Likes