↧
Answer by Bora Kasap
it's about "hit" function. look at "footstep sound" scripts, you can see it inside these scripts, about colliding with ground.
View ArticleAnswer by FLASHDENMARK
I use this:var jumpHeight = 7.5; var canJump = true; var jumpCount = 0; function Update () { if(Input.GetButtonDown("Jump") && jumpCount == 0) { rigidbody.AddForce(Vector3.up * jumpHeight,...
View ArticleAnswer by lancerfour
maybe: use a child cube, about a quarter of the height of the parent (so it doesn't collide too high up), with a length x width error-margin you prefer around the outside, that looks for collisions....
View ArticleAnswer by dillon_kneeland
You could get the collision data and get the position of the collision and the normal and then if the rotation of the normal is less than some certain value you set then you set your canJump boolean to...
View Article