Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/3top1a/uCUPG
Browse files Browse the repository at this point in the history
  • Loading branch information
3top1a committed Nov 17, 2019
2 parents 507899e + aac2d27 commit 71c14c0
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# uCUPG

uCUPG (unity CUstom Physics & Gravity) - an open source custom gravity project.
uCUPG (unity CUstom Physics & Gravity) is an open-source custom gravity script for Unity.

# Modes
uCUPG has 3 different modes:

1) Standard gravity
Standard mode is the exact same as the Unity-s default gravity.
It just accelerates the object down (or in any direction) at any speed. Just like IRL.

2) Faux gravity
Faux gravity can be used for planets, moons and other objects that orbit one point but use their own rotation.

3) Faux gravity with rotation
Same as the previous one, but with added rotation.
Perfect for player character and other objects that walk on a planet.

# Scripts

- cupgManager
CupgManager is a script that has all the information for the cupgBodies.
Add this script to your Game Manager object and set up your gravity!

- cupgBody
This script sits on the objects that you want to have gravity on.
They use CupgManagers variables for gravity.

- cupgAttractor
CUpgAttractor pulls CupgBodies towards it.
This can be used to make entire solar systems, 2 walkable planets with a portal on each, gravity trap projectiles and much much more.

0 comments on commit 71c14c0

Please sign in to comment.