Publisher | A Trillion Games Ltd |
---|---|
File size | 354.14kB |
Number of files | 18 |
Latest version | 1 |
Latest release date | 2021-03-09 11:29:13 |
First release date | 2021-03-09 11:29:13 |
Supported Unity versions | 2018.4.2 or higher |
This package adds circular gravity and magnetism to unity
(It does not account for north and south pole for the magnets)
This package has 2d and 3d scripts for gravity and magnets. All the scripts are easily customisable for whatever you may need.
All you need to do is move the script onto the objects that will be affected by the forces.
All the scripts have 2 modes; realistic mode and normal mode. They simply toggle more realistic physics at the cost of some performance but they all remain very efficient. The more realistic physics means that the forces of attraction will consider the object as a whole rather than just applying forces to the centres of mass. This means that for larger objects only the closest points of the object may be affected while the rest have a negligible force applied. While the normal physics treats all objects as almost particles but is more efficient
This package tries to simulate all these forces as close to real life as possible while also trying to keep it as efficient as possible; so it won't work as a tool to run real astrophysics physics simulations as it follows slightly altered laws of physics to make it more efficient. But it tries to be as close as possible so it should work just fine for everything else. (Within reason)
Here there is a demo scene as well as other projects for you to test to see if this is what you want: https://www.atrilliongames.com/WebPortfolio
(It does not account for north and south pole for the magnets)
This package has 2d and 3d scripts for gravity and magnets. All the scripts are easily customisable for whatever you may need.
All you need to do is move the script onto the objects that will be affected by the forces.
All the scripts have 2 modes; realistic mode and normal mode. They simply toggle more realistic physics at the cost of some performance but they all remain very efficient. The more realistic physics means that the forces of attraction will consider the object as a whole rather than just applying forces to the centres of mass. This means that for larger objects only the closest points of the object may be affected while the rest have a negligible force applied. While the normal physics treats all objects as almost particles but is more efficient
This package tries to simulate all these forces as close to real life as possible while also trying to keep it as efficient as possible; so it won't work as a tool to run real astrophysics physics simulations as it follows slightly altered laws of physics to make it more efficient. But it tries to be as close as possible so it should work just fine for everything else. (Within reason)
Here there is a demo scene as well as other projects for you to test to see if this is what you want: https://www.atrilliongames.com/WebPortfolio