Wishlist Surf 'n Turf!
https://store.steampowered.com/app/3514850/Surf_n_Turf/
Simondebruijne.com
If you think the game looks cool, consider wishlisting it on Steam!
store.steampowered.com/app/3514850/...
If you think the game looks cool, consider wishlisting it on Steam!
store.steampowered.com/app/3514850/...
The only thing I had to do was note down what the change of the position was at the end of the animation, copy these values to Unity, and teleport the rigidbody there
The only thing I had to do was note down what the change of the position was at the end of the animation, copy these values to Unity, and teleport the rigidbody there
A little sleight of hand, but the player never needs to know ;)
A little sleight of hand, but the player never needs to know ;)
While all other animations happen in place while Munch moves around. The animation for the ledgegrab moves the entirety of Munch.
While all other animations happen in place while Munch moves around. The animation for the ledgegrab moves the entirety of Munch.
All the movement in the game is done by changing the velocity of a rigidbody, how do I do that for the ledgegrab? I can't just push it up and forward, it would look jarring and imprecise
All the movement in the game is done by changing the velocity of a rigidbody, how do I do that for the ledgegrab? I can't just push it up and forward, it would look jarring and imprecise
A floor would shoot a laser up, a (0,1,0) vector.
That's the one we need, so we check if normal.y = 1
Now we only ledgegrab on flat platforms
A floor would shoot a laser up, a (0,1,0) vector.
That's the one we need, so we check if normal.y = 1
Now we only ledgegrab on flat platforms
To check if what we hit is a flat surface, we can check the normal of what we hit.
A normal of a surface is the direction it's facing. Basically, if you shoot a laser from a hole in that surface, which direction would it go?
To check if what we hit is a flat surface, we can check the normal of what we hit.
A normal of a surface is the direction it's facing. Basically, if you shoot a laser from a hole in that surface, which direction would it go?
This raycast shoots down until it hits something, we can do a ledgegrab!
This raycast shoots down until it hits something, we can do a ledgegrab!
Our solution: give a little leeway when reaching a platform.
Our solution: give a little leeway when reaching a platform.
Introducing Munch, our main character, and the one who will be showing how a ledgegrab works!
Introducing Munch, our main character, and the one who will be showing how a ledgegrab works!