https://github.com/seblague/spherical-gravity
https://github.com/seblague/spherical-gravity
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/seblague/spherical-gravity
- Owner: SebLague
- License: mit
- Created: 2015-05-23T16:03:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T09:17:23.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T13:32:24.881Z (about 1 year ago)
- Language: C#
- Size: 3.91 KB
- Stars: 159
- Watchers: 17
- Forks: 54
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.