Answers for "how to change the center of the character controller in unity"

C#
1

how to change the center of the character controller in unity

using UnityEngine;

public class Example : MonoBehaviour
{
    CharacterController controller;
    private void Start()
    {
        controller = GetComponent<CharacterController>();
        controller.center = new Vector3(0, 1, 0);
    }
}
Posted by: Guest on August-16-2020

Code answers related to "how to change the center of the character controller in unity"

C# Answers by Framework

Browse Popular Code Answers by Language