I don't know, why my enemy on my platformer game doesn't getting information about he is on slope or not.
I have same functionality added to player, and it works.
Somebody can help me figure out what's going on there?
This is variables (same as for player):
Slope Check Distance = 0.3;
Max Slope Angle = 50;
What is Ground = Ground;
And whole code for ground checking (same for Player):
Slope Detection Issue
I have same functionality added to player, and it works.
Somebody can help me figure out what's going on there?
This is variables (same as for player):
Slope Check Distance = 0.3;
Max Slope Angle = 50;
What is Ground = Ground;
And whole code for ground checking (same for Player):
Code (CSharp):
- private void CheckSlope()
- {