SebLague / Spherical-Gravity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:C# 100.0%