How to make the character align to a surface while prone?

Hey.

Currently, my system looks like this;
image

I want to know how it can look like this;


(game is Horizon Blue: 1919)

The character is aligned to the surface beneath it while prone, while my system doesn’t, which means it is mostly floating.

While not critical to gameplay, it can help concealment and generally looks good and polished.

I can think of a solution, however, I’m 90% certain that if I spent the time and effort trying it, it would just explode (Humanoid physics are wack.)

Any help is appreciated, thanks.

2 Likes

This might be what you’re looking for

No.

Roblox humanoids have a self correcting system where they will always face straight up (the humanoid root part)

This means that physics objects will not work, since the forces are consistent throughout the whole assembly (Any parts with joints connecting together, which is the entire character).

The only solution that I can imagine involves modifying the root-torso motor, but I don’t know how to actually calculate that.

1 Like

Hello, see my post on this other discussion. It’s a similar problem to yours and the proposed solution should work here too.

TL:DR

You need to raycast to find the surface normal (which is the vector perpendicular to the hit surface), then set the character’s CFrame via :PivotTo() to have the normal vector as its UpVector.

2 Likes

Whoops.

I’m sorry. I tried to look for other discussions that covered my question, but searching for keywords didn’t find anything. Thanks for linking it here.