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

Character has a sudden drop when walking off a ledge

$
0
0
The game is a platformer. I have an "anchorForce" that keeps the player glued to the ground that is only applied when the the character controller's "isGrounded" is true. The problem is, that for a split second when walking off a ledge, it says it is true and this causes the player to shoot downward with the force of anchorForce. Anyone know how to prevent this? Been wracking my brain on it:

Code (CSharp):
  1. void Update()
  2.     {  
  3.         //recieve controller input
  4.         if (controller != null)...
Character has a sudden drop when walking off a ledge

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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