Skip to content

An experiment in Unity to create gravity effects like in Super Mario Galaxy and the real world.

License

Notifications You must be signed in to change notification settings

Ryan-Amaral/super-gravity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

super-gravity

An experiment in Unity to create gravity effects like in Super Mario Galaxy and the real world. Performs efficiently by baking a gravity vector field in the world at the start of the level. Efficient as in time efficient (after baking), not very space efficient unfortunately.

Still a Work in Progress

Not completely done, still a little shakey for some reason, probably to do with interpolation between vectors or the player. Once mostly complete I will likely release a tutorial on YouTube.

TODO

  • Smoothen interpolation, either on the player adjusting to the new gravity, or just the player camera and model.
  • Make gravity fields bakable in the editor and save to a file, for quicker loading and to still have higher resolution gravity fields on mobile and web.
  • Use partial mass for sectors not completely in or out of a gravity source.
  • Allow multiple instances of GravityField to have effects like gravity from planets orbiting each other.
  • To allow moving GravityFields as described above, the internal coordinates of GravitySectors must be made relative the the field location.

Visuals

The player moving around some planets. The player coming walking out of a hollow planet.

About

An experiment in Unity to create gravity effects like in Super Mario Galaxy and the real world.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages