What do you want to achieve?
A horse with proper movement
What is the issue?
The horse is working right now, however when going at a 45 degree angle in the world where both the X and Z forces need to be equal to get that type of rotation, eg. 25, 0, 25; it sometimes reaches numbers that appear like this,
I’m not sure how to fix the calculation for this to make it work. What I’m assuming is the numbers are so low it just doesn’t move.
What solutions have you tried so far?
I tried using a function that rounds the velocity values however had no luck with this. The script is a module script and if any code is needed to explain this please let me know.
function Horse:Rotate(Side, model, char)
local vel = model.HorseBody.AngularVelocity
vel.Attachment0 = model.HorseBody.HorseVelAttachment
if Side then
vel.AngularVelocity = Vector3.new(0,-.01,0)*self.Speed
elseif not Side then
vel.AngularVelocity = Vector3.new(0,.01,0)*self.Speed
end
end
Hooked into a localscript controller with A and D binded to Side = True / Side = False