Inlägg

Visar inlägg från november, 2019

I have finally implemented the wall riding mechanic

Bild
So a long time has passed since I wrote here. Last time I showed you that I hade just started with the grappling hook. I am now happy to announce that I have finally implemented the wall riding as well. It works very similar to Lucios wall riding, in that you attach to the surface while jumping and holding space and as soon as you release, you jump into the direction you want to move towards. I use a special collision sphere around the player that looks for surfaces with a certain layer called "Wall", after it has found a surface, it looks for the closest point to that surface and uses that to get the normal of the surface at that particular position. This is used to set the forward velocity along the surface. This video show what it looked like while testing the normal of the surface. This video show the final result.

I have implemented a first version of the Grappling Hook.

Bild
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 towa...

We have agreed on a concept!

Bild
Until yesterday, we didn't have a set concept of our game. The idea is to have some type of running game, where the character moves kind of like Lucio from Overwatch, meaning that the character slides around instead of just walking or running around. Also, the character will be able to slide on vertical surfaces, like walls e.g. and whenever you jump the character gains momentum, thus increasing the velocity. This will encourage perfect jumps from one platform to another. There is another mechanic that we want to implement, and that is a grappling hook mechanic, so whenever the character has jumped of a surface and is falling in the air, you will be able to use your grappling hook. And this can create certain scenarios where e.g. there is a hole on a wall in front of you and the only to pass through it is by using the grappling hook in the right moment. Our group is very organized by this point. We have decided that Edin and I will be working on the movement mechanics, as we are ...