My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt3

Hand Position game object created as a target for the Player.
Adjusted the size of the Ledge Grab Checker and Hand Position game objects.
Hand Position game object assigned and passed in to the GrabLedge() method.
Player’s position is assigned to the Hand Position when the Player grabs the ledge.
Player is aligned with Hand Position object, but not correctly.
Player’s Ledge Checker equals the position of the Hand Position.
Player grabs the ledge according to its position with the Ledge Grab Checker equaling the Hand Position.
Ledge Grab Checker’s position equals the Hand Position, but the Player’s position is still off.
Player needs alignment adjusted to match the Hand Position.
Player’s position adjusted with an offset added to the Hand Position object.
Player just grabbing the ledge at the Hand Position.
Player’s hands matching the Hand Position object’s position with distance in between.
Player’s position moved a little closer on the Z-axis to the Hand Position object.
Mesh Renderer turned off for the 3 ledge checker objects to see the Player’s hands clearly.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store