Im trying to find a way to make a character to tilt upwards when walking up a hill, same effect walking downwards. Ive searched everywhere, id appreciate any help
1 Like
Like waist tilt? or overall M6D tilt?
yes.
awefbapeiwfbaiwfbe30characters
I suppose you could cast down from the humanoidrootpart, get the normal of the surface and update the motor6d of the torso based on that amount. To avoid small parts changing the normal, use CanCollide and cast from different places under the torso, and get the average normal.
Or just don’t really tilt the character a lot at all, only a little bit, you could probably do that by adding some upvalue to the vector and then normalizing it again.
1 Like