I have a capsule object with Character Controller component enabled in it. Somehow if I want to change it’s transform.position, I can not just do it like as if it doesn’t have Character Controller.
So workaround is, to temporarily disable the CC for a while and change its position then re-enable it again like this:
CharacterController cc = GetComponent<CharacterController>(); cc.enabled = false; transform.position = somevector3value; cc.enabled = true;
Hope you can find it useful guys!