- Home /
Why do my player fall down in to the ground when I start the game?
Every time I start the game, the player falls just a little down and down in to the ground. Why is that? How can I prevent it?
Is it a imported model or is it a standard model from Unity?
Check to make sure the collider for your character is sized right (i.e. at or slightly bigger than your visible character).
@robertbu Yeah, that was the problem. See comment on @oliver-jones answer. :)
Answer by oliver-jones · May 09, 2013 at 05:50 PM
There are a few possible reasons:
1) Your character/player does not have a collider on it.
2) Your ground does not have a collider.
If your ground is a map you made yourself, then you will need to turn on Colliders within the model settings (Click on your model within the project, and in the inspector, apply collisions.
Also, make sure all the colliders are no a trigger (if you click on a collider object, within the inspector, make sure Is Trigger is OFF)
See if that works.
Ahh! Yeah, the graphics was bigger than the collider on the player. I made the collider align with the graphics and all good. :) Thanks.
Hi I have colliders set but I need "Is trigger" because i would like to use detection of collisions.
private void OnCollisionEnter(Collision collision) { if (gameObject.CompareTag("Obstacle")) { gameOver = true;
Your answer
Follow this Question
Related Questions
Player starts instantiate at random places? 3 Answers
Initialising List array for use in a custom Editor 1 Answer
How to make collision for character controller with moving objects smooth? 0 Answers
How can I decrease points by the second? 2 Answers
Player GameObject changes position when I start the game 4 Answers