Hey, i’m new to unity and are trying to make a grappling hook so if the player shoot at the wall he will be dragged in a straight line to the position he shot at, I use this to move the player:
transform.Translate (Vector3.forward * Time.deltaTime * Speed);
But this only moves the player along the ground and not upwards if the player shoots on the wall, how can i make the player move upwards to? I’m coding in c#.
Thanks for all help