- Home /
Why does my caracter fly insted of going down hill
I created mountains and lakes on my terrain but my character only goes up the mountains when he passes the lakes he just walks in mid-air i think it is a terraindata problem but i can't find a fix
For me it's usually a script problem, where the script doesn't (correctly, or at all) apply gravity. Esp. with a charController.
Try pausing and manually moving the player up for no reason -- see if she says at that height. Or move down to the ground from floating -- she if she correctly follows upwards slopes. Or, after you float over an area, drag to the ground and walk backwards over it.
You'll probably see that it always follows the terrain up, just never down, so the terrain is fine.
When you select the player, then go to Scene View, you'll see the green wire collider, which is where she counts as being. If that gets below the ground, she falls through. If it gets away from where the player appears to be, something is messed up.
The trick to everything is testing. If you move the player down a tiny bit, does she still fall through the ground? And so on.
Answer by Zeyami · Oct 09, 2013 at 03:44 PM
did you check to see if "use gravity" is checked on the rigidbody of the character?