Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Slope Detection Issue

$
0
0
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):
Code (CSharp):
  1. private void CheckSlope()
  2.     {
  3.         Vector2 checkPos = transform.position - (Vector3)(new...
Slope Detection Issue

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>