How could i prevent the character from rotating like this when he encounters an obstacle?

Greetings,

I am using a BodyVelocity to create a dash, and it works pretty good(way better than the new body movers sadly). The only issue i have with it is that it sometimes rotates the character when it encounters a large obstacle. I am wondering if there is a way to prevent that?

I tried using AlignOrientation to force him to look forward at all times, did not work. I know i could also just stop the dash if the character encounters an obstacle, but I don’t want to do that. If anyone has any ideas I’d really appreciate it.

here is how it looks
robloxapp-20230619-1208177.wmv (1.1 MB)

Thank you for your time

try inserting an AlignOrientation (or BodyGyro, if you prefer the old bodymovers) into the character’s HumanoidRootPart and set it’s CFrame to the character’s LookVector (character.HumanoidRootPart.CFrame.LookVector) then remove it after the dash has finished. However, this may not work as you might not be able to turn mid-dash.

as I stated in my post, using Align Orientation did not work, perhaps bodyGyro might tho

oh, my bad yeah try a bodygyro, I sometimes prefer the old forces too.

sadly gyro doesn’t help either. Seems to be a quirk of BodyVelocity. Well i guess it’s not a huge deal, even with this BodyVelocity is still better than any of the newer movers for making a dash. All the others just ragdoll out of control when they encounter an obstacle. Thank you either way

I ended up just correcting the orientation of the character on renderstepped

local goal = RootPart.CFrame * CFrame.new(0,0,-55)
	
	CC = RunService.RenderStepped:Connect(function()
		Character:PivotTo(CFrame.lookAt(RootPart.Position, goal.Position))
	end)
1 Like

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