Animating models on slope terrains

I’m trying to animate my models to move around the terrain. Currently, I’m using pathfinding waypoints to create paths for my models to follow. However, the issue I’m facing is that these waypoints do not account for terrain slopes and my models get stuck at the base of the slopes as shown in this video:

I’m wondering if anyone has worked around this issue?

3 Likes

Its so hard to see whats happening the video is so laggy

Roblox’s default characters have most of their limbs set to CanCollide = false. None of the leg parts you see are actually colliding with the ground. The Humanoid object makes an invisible collider under the HumanoidRootPart. You can adjust how far from the HumanoidRootPart the collider is by adjusting the HipHeight property.

1 Like

hey, thks for feedback, updated the video

Hm, but in order to adjust the HipHeight, I need to know the change in height of the terrain. How can I know the height of the terrain?

Use a part to measure? Or there may be a better way but you can definetly measure it using parts

The hip height is a constant value. It will just set the distance between the ground on the invisible collider, and the center of the HumanoidRootPart. You don’t have to change that value after it’s set.