Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 397 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 397 Bytes

Spherical-Gravity

Source code from my spherical gravity tutorial, updated for Unity 5. Tutorial availaible here: https://youtu.be/TicipSVT-T8

Your planet object should have the GravityAttractor script attached. It should also have a 'Planet' tag applied, and a layer specified for the ground. This ground layer should be assigned to the grounded mask on the first person character controller.