Unity-Gravity-System
Unity-Gravity-System copied to clipboard
Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
Unity Gravity System
Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
Releases
For releases check the releases on this repository, for the latest release click here!
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 for installing instructions.
Known Issues
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.0Change- Fixed in v1.1.0OnTriggerEnter()toOnTriggerStay()so it can update the gravity source.Make the- Fixed in v2.0.0CurrentGravitySourcea List so the item can be affected by multiple gravity sources at once, by calculating gravity strength and distance to gravity source.
To Do
Create a 2D version- Completed in v1.0.0Allow Gravity Items to be affected by multiple gravity sources- Completed in v2.0.0Add Rotate To Ground, where an item will always face upwards.- Completed in v2.1.0Add 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
- JetBrains Rider - The IDE used to code the tools
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors & Contributors
- David Evans - Initial work - Phosphoer
- William Whitehouse - Examples, install instructions, bug fixes, code improvements/additions & 2D version - WSWhitehouse
Acknowledgments
License
This project is licensed under the MIT License - see the LICENSE.md file for details