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

CharacterController.IsGrounded Not Working

$
0
0
Code (CSharp):
  1. using UnityEngine;
  2.  
  3. public class CharacterLocomotion : MonoBehaviour
  4. {
  5.     private CharacterController controller;
  6.  
  7.     private Animator animator;
  8.     private Vector2 input;
  9.  
  10.     private float verticalVelocity;
  11.     [SerializeField] private float stickToGroundForce = 10.0F;
  12.     [SerializeField] private float jumpForce = 8.0F;
  13.     [SerializeField] private bool isGrounded;
  14.  
  15.     void Start()
  16.     {
  17.         controller = GetComponent<CharacterController>();
  18.         animator =...
CharacterController.IsGrounded Not Working

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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