- Home /
jump and land quicker
i have a rigidbody with a box collider as my player. I dont want to use the character controller, but imitate its capabilities. I can make my player jump by several methods. Adding to
rigidbody.velocity.y = 10;
or
rigidbody.AddForce(Vector3.up * jumpSpeed);
but they happen to jump like its on the moon or something. i want quick fast jumps and lands but only for this gameObject. AND my scale is at default (1, 1, 1)
thank you
Answer by hijinxbassist · May 21, 2012 at 10:12 PM
Increase the mass on your players rigidbody.
forgot to mention that mass doesnt have any noticeable affect
Ok no worries, what was the solution? If it is solved, can you close the question.
Answer by cityseeker · May 21, 2012 at 11:12 PM
Can't you affect the physics with. Physics.gravity = new Vector(0f,-10f,0f);
This is not exact code it is untested. But I gave the whole scene negative y gravity and the character jumps faster or maybe it is just the character jumps higher. hmm....
Your answer
Follow this Question
Related Questions
How to make a object jump constantly at y and move to the next position to z (perfectly) 0 Answers
Rigidbody ball physics 1 Answer
Turning gravity on makes objects fly 2 Answers
Movement on a tube 1 Answer
rb.addforce being really buggy 2 Answers