Character Controller Possible Bug?

Ok unless I’m doing something very stupid and not realising it I think the character controller may have something going on. I’m using version 5.0.0b12 and when I try to do even something as simple as

public class Player : MonoBehaviour
{

    CharacterController controller;

    void Start()
    {
        controller = GetComponent<CharacterController>();
    }

    void Update()
    {
        controller.SimpleMove(Vector3.zero);
    }
}

It causes the player to shoot off in the left direction at a pretty high speed which is odd cause I figured it shouldn’t do anything at all? I’ve tried playing around with a few other directions and still giving me really odd results. Sorry if this has been brought up before but I couldn’t find anything on it. Oh also no Rigidbody is attached to the player.

Are there any other colliders which are children of the gameObject with the CharacterController?

Nope no children. I’ve made a quick video showing off what is happening.

Also I’d like to point out while I use the character motor in the video for demonstration purposes when I tried to setup a character controller script of my own no matter what direction I gave it, it moved in odd and incorrect ways.

So, yes, try disabling the CapsuleCollider on that GameObject.

CharacterControllers will collide with other Colliders on the same GameObject (or it’s children). It also did this before 5.0, but in an inconsistent way. Since this seems to be causing a lot of issues for people, we are looking at excluding all colliders on the same GO (+children), but this will go into a later beta.

ahhh ok I didn’t even consider the capsule collider. Many thanks :slight_smile: