Unity Gravity System - Super Mario Galaxy style planet and directional gravity!
For releases check the releases on this repository, for the latest release click here!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Unity 2018+ Should be compatible with older versions
Read INSTALLING.md for installing instructions.
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.0CurrentGravitySource
a List so the item can be affected by multiple gravity sources at once, by calculating gravity strength and distance to gravity source.
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
- Unity 3D
- JetBrains Rider - The IDE used to code the tools
We use SemVer for versioning. For the versions available, see the tags on this repository.
- David Evans - Initial work - Phosphoer
- William Whitehouse - Examples, install instructions, bug fixes, code improvements/additions & 2D version - WSWhitehouse
This project is licensed under the MIT License - see the LICENSE.md file for details