- Home /
Question by
Tesorero204 · Aug 01, 2017 at 01:02 AM ·
rigidbodyspherejumping object
How do you make a sphere jump with a rigidbody attached to it?
Hi, I'm a beginner who would like advice for making a ball jump and bounce on the ground with a rigidbody attached to it.
Comment
Answer by Artaani · Aug 01, 2017 at 03:48 AM
You should apply force to Rigidbody component. https://docs.unity3d.com/ScriptReference/Rigidbody.AddForce.html
Or change its velocity https://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html
For example:
void Start () {
GetComponent <Rigidbody> ().velocity = new Vector3 (0, 1, 0);
}
Thank you! I left you a reputation point as a reward! :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612131635im_/https://answers.unity.com/themes/thub/images/avi.jpg)