I’m sure none of you played Untitled Tag Game (UTG).
But it UTG there is an extremely fun vaulting mechanic that feels friction less.
As far as I know, they boost the player up, and multiply their speed by an amount.
I’ve done this in my own Godot game, but it still feels sluggish.
I’m assuming they disabled the player collision for a bit, but I don’t think it ends there.
I already have the ledge detection code, but I’m looking for advice in making good vaulting.
If you have an example project ++ points.
Code:
func vault():
var vault_normal := vault_cast.get_collision_normal()
if not vault_normal.is_equal_approx(Vector3.DOWN):
var vault_length = (vault_cast.get_collision_point() - global_position).length()
velocity.y = vault_length * 5
velocity *= 1.2
-Thanks