Character Controller Flying up into the sky

Hi, I’m very new to Unity and I have a problem. I’ve made a map and I put a character controller in it. But whenever I push play to test the map, The character controller flies up in the sky. He never comes down. I have put a Rigidbody on the character with use gravity, But it still don’t work. Any solution?

PICTURE! :

First of all I’d say, select the object and make sure that the green lines (colliders) are not going through the map or any other objects. :slight_smile:

Did that, Didn’t work :([quote=“Mattmakesgames_1, post:2, topic: 521391, username:Mattmakesgames_1”]
First of all I’d say, select the object and make sure that the green lines (colliders) are not going through the map or any other objects. :slight_smile:
[/quote]

Can you take a screenshot of your scene with the character selected and post it on here?

The picture is added in the main section in the thread[quote=“Mattmakesgames_1, post:4, topic: 521391, username:Mattmakesgames_1”]
Can you take a screenshot of your scene with the character selected and post it on here?
[/quote]

1432967--76320--$hjutgf.jpg

Try changing the tag to player and if that doesn’t work de-active each script one at a time by clicking the blue tick in the top left of each one to work out which one is causing the problem.

Tested, Didn’t work[quote=“Mattmakesgames_1, post:6, topic: 521391, username:Mattmakesgames_1”]
Try changing the tag to player and if that doesn’t work de-active each script one at a time by clicking the blue tick in the top left of each one to work out which one is causing the problem.
[/quote]

So even with all the scripts on it switched off it still goes up in the air?

Yea :/[quote=“Mattmakesgames_1, post:8, topic: 521391, username:Mattmakesgames_1”]
So even with all the scripts on it switched off it still goes up in the air?
[/quote]

That’s odd :confused: Does he keep on flying or stop at a certain point?

It keeps on flying[quote=“Mattmakesgames_1, post:10, topic: 521391, username:Mattmakesgames_1”]
That’s odd :confused: Does he keep on flying or stop at a certain point?
[/quote]

Do you have any other scripts in your project? Also try pausing and resuming and see if it stops and add another capsule and see if that goes up.

I think I fixed it. I unchecked the Third Person Controller Script on the terrain and then unchecked “Use Gravity” on rigidbody on the Character Controller :smile:[quote=“Mattmakesgames_1, post:12, topic: 521391, username:Mattmakesgames_1”]
Do you have any other scripts in your project? Also try pausing and resuming and see if it stops and add another capsule and see if that goes up.
[/quote]

Ah okay cool, sorry I wasn’t much help. I don’t think you should have a third person controller on the terrain though haha :smile:

Hey, don’t add a rigidbody to it.
character controllers dont work like that.

1 Like

Or your player is placed inside another mesh or 3D primitiv. If it has a collider this might force the player to move up outside the collider.

Have you tried this?
Try setting “Is Kinematic” to true on your rigid body… This has worked well for me in the past.
8856799--1208167--upload_2023-3-6_16-38-27.png

triedt it but it messes with my player movement