Does anyone know how to make a block player in unity jump on ground?
UPDATE: OMMMMMGGGGG IT WORKS!!!! SORRY IF I WAS A PAIN IN THE BUM
Does anyone know how to make a block player in unity jump on ground?
UPDATE: OMMMMMGGGGG IT WORKS!!!! SORRY IF I WAS A PAIN IN THE BUM
If your player gameObject has a rigidBody attached to it, the simplest way is probably to apply a force with an upwards direction:
gameObject.GetComponent<RigidBody>().AddForce(Vector3.up , ForceMode.Impulse);
This will inject an “impulse” of vectorial magnitude = 1 in the up direction!
Ok but could you give me the full code and what you do step by step because i’m a beginner in C#
C’mon man I just want to learn how you do it! And by the way the YouTube tutorials are not working but I will try!
I tried everything but nothing seems to work. That’s why I asked for you’re guyes help!!!
No I don’t have any script or a error. All I want is a jump script please anyone. I tried everything and watched every video on YouTube just please HELP ME!!
If you are in desperate need for a tutorial on character movement:
https://www.youtube.com/user/Cercopithecan
He has some nice tutorials about character movement.
I also recommend to check out this channel:
https://www.youtube.com/user/Brackeys
They are currently collaborating on a RPG.
But before all that; learn some C# before attempting to make a game.
Wow, that escalated quickly.
But do as AquaXV above me says and you will learn very nice stuff very quick.
The first thing I did was to watch and do these tutorials:
https://unity3d.com/de/learn/tutorials
There you will learn the very basics first.