- Home /
Question by
raed · Jul 03, 2012 at 10:14 AM ·
charactercharactercontrollerwalkclimbing
character controlling script
hi how i can make the character walk on the wall or walk up or down a hill with its rotation correct like this img
Comment
Answer by nventimiglia · Jul 04, 2012 at 09:32 PM
Try using 2 ray casts.
Cast one ray down from the characters position. Cast the other ray down from 1 meter in front of the character. Compare the difference to compute the slop.
Your answer
Follow this Question
Related Questions
Need help addind a attack and jump script 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Translation of an object 2 Answers
Why is my character's y axis randomly changing? 1 Answer
How do I fix my player jumping code? 2 Answers