Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WSWhitehouse/Unity-Gravity-System
Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
https://github.com/WSWhitehouse/Unity-Gravity-System
gravity gravity-simulation gravity-source mario-galaxy physics unity unity-gravity unity3d
Last synced: about 1 month ago
JSON representation
Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
- Host: GitHub
- URL: https://github.com/WSWhitehouse/Unity-Gravity-System
- Owner: WSWhitehouse
- License: mit
- Created: 2019-07-03T23:36:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T18:09:37.000Z (over 5 years ago)
- Last Synced: 2024-08-02T05:13:19.867Z (5 months ago)
- Topics: gravity, gravity-simulation, gravity-source, mario-galaxy, physics, unity, unity-gravity, unity3d
- Language: C#
- Homepage:
- Size: 26.1 MB
- Stars: 40
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Gravity System
Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
## Releases
For releases check the [releases on this repository](https://github.com/WSWhitehouse/Unity-Gravity-System/releases), for the latest release [click here](https://github.com/WSWhitehouse/Unity-Gravity-System/releases/latest)!## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
- Unity 2018+ *Should be compatible with older versions*
### Installing
Read [INSTALLING.md](INSTALLING.md) for installing instructions.
## Known Issues
1. If there are more than one gravity source at a time, the item might remove a current gravity source and not be affected. - *Fixed in v1.1.0*
2. Change `OnTriggerEnter()` to `OnTriggerStay()` so it can update the gravity source. - *Fixed in v1.1.0*
3. Make the `CurrentGravitySource` a List so the item can be affected by multiple gravity sources at once, by calculating gravity strength and distance to gravity source. - *Fixed in v2.0.0*## To Do
- Create a 2D version - *Completed in v1.0.0*
- Allow Gravity Items to be affected by multiple gravity sources - *Completed in v2.0.0*
- Add Rotate To Ground, where an item will always face upwards. - *Completed in v2.1.0*
- Add Enable Gravity boolean that will enable and disable a Gravity Source - *Completed in v2.2.0*
- Create detailed documentation - *No estimated release*## Built With
- [Unity 3D](https://unity.com/)
- [JetBrains Rider](https://www.jetbrains.com/rider/) - The IDE used to code the tools## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/WSWhitehouse/Unity-Gravity-System/tags).
## Authors & Contributors
- **David Evans** - [*Initial work*](https://gist.github.com/phosphoer/a283cdbeca5d2160d5eed318d0362826) - [Phosphoer](https://github.com/phosphoer)
- **William Whitehouse** - *Examples, install instructions, bug fixes, code improvements/additions & 2D version* - [WSWhitehouse](https://github.com/WSWhitehouse)## Acknowledgments
- [**Bayat Games**](https://assetstore.unity.com/publishers/26641) - [*Free 2D Game Assets used for 2D example*](https://assetstore.unity.com/packages/2d/environments/free-platform-game-assets-85838)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details