I have implemented a first version of the Grappling Hook.
After watching some tutorials on youtube I decided to implement it in my own way. Most of the tutorials don't utilize the physics engine of Unity and instead give a constant speed to the player when pulling. I wanted to make the character accelerate towards the point, making the game play fell better and more exiting.
The grappling hook only works on objects with a special layer and is at the moment instant. When the ray from the player connects to the special object, the pulling starts instantly with a Rigidbody.AddForce(). This gives the spring effect. I also change the FOV of the camera to give the sensation of acceleration.
My next goal is to have less spring effect on the hook and instead force the player towards the spot but keeping the ability to move sideways in the air. I will also work more on the hook itself, it won't be instant but instead have a small projectile that shots of the player and attaches to the object, only then will it start pulling the player towards it.
The grappling hook only works on objects with a special layer and is at the moment instant. When the ray from the player connects to the special object, the pulling starts instantly with a Rigidbody.AddForce(). This gives the spring effect. I also change the FOV of the camera to give the sensation of acceleration.
My next goal is to have less spring effect on the hook and instead force the player towards the spot but keeping the ability to move sideways in the air. I will also work more on the hook itself, it won't be instant but instead have a small projectile that shots of the player and attaches to the object, only then will it start pulling the player towards it.
Kommentarer
Skicka en kommentar