#Detect what slope character is walking on

14 messages · Page 1 of 1 (latest)

marsh rapids
#

So is it possible to detect what angle/slope character is walking on? Like say if the character is walking up a mountain, i would get an output of say 30 degrees?

formal scroll
#

yes

#

just take a vector for what's supposed to be normal and calculate the angle between this one and the movement vector

tiny ibex
#

You only walk straight, you cant walk in a slope. right?

#

I have never heard of a roblox character walking at an angle

formal scroll
#

it's about the movement

marsh rapids
#

i need to find this number (x)

#

i just want to make a system if the slope is too steep, the character will ragdoll and fall down

formal scroll
#

two vectors

#

one normal

#

and the movement vector (difference of positions)

marsh rapids
#

ye

#

ty