This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sticky Player Demo | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, grey, white); | |
min-height: 100%; | |
margin:0 5%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sticky Player Demo | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, grey, white); | |
min-height: 100%; | |
margin:0 5%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
// Intended to be attached to a GameObject in order for that object to have its own gravity. | |
// Standard Unity Gravity is disabled on objects implementing this class | |
// This class is pared down from the original WorldBodyController used Oliver Holmberg's game Apogee to simply demonstrate orbital gravity. | |
public class OrbitalGravityObject : MonoBehaviour { |