Platformer: Wall Jumping Setup

Intro

  1. When the player has hit the wall.
  2. Calculating the surface normal, which is the reflection of the contact point or direction that will be perpendicular of the contact point.
Red Line Shows the Surface Normal

The Code

--

--

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