|
Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine. GitHub | Iuvo Unity Updates | Creator |
Global gravity manager for all gravity bodies. More...
Public Member Functions | |
| Vector3 | GravityDirection () |
| void | SetGravityDirection (Vector3 direction) |
| float | GravityStrength () |
| void | SetGlobalStrength (float strength) |
Protected Member Functions | |
| override void | Awake () |
| Protected Member Functions inherited from IuvoUnity.Singletons.PersistentSingleton< T > | |
| virtual void | InitializeSingleton () |
Properties | |
| Vector3 | gravityDirection = Vector3.zero [get, private set] |
| float | gravityStrength = 0.0f [get, private set] |
| Properties inherited from IuvoUnity.Singletons.PersistentSingleton< T > | |
| static bool | HasInstance [get] |
| static T | Current [get] |
| static T | Instance [get] |
Private Attributes | |
| Vector3 | defaultDirection = Vector3.down |
| float | defaultStrength = 9.81f |
Additional Inherited Members | |
| Public Attributes inherited from IuvoUnity.Singletons.PersistentSingleton< T > | |
| bool | UnparentOnAwake = true |
| Static Protected Attributes inherited from IuvoUnity.Singletons.PersistentSingleton< T > | |
| static T | instance |
Global gravity manager for all gravity bodies.
|
protectedvirtual |
Reimplemented from IuvoUnity.Singletons.PersistentSingleton< T >.
| Vector3 IuvoUnity.Singletons.GravityManager.GravityDirection | ( | ) |
References gravityDirection.
| float IuvoUnity.Singletons.GravityManager.GravityStrength | ( | ) |
References defaultStrength, and gravityStrength.
| void IuvoUnity.Singletons.GravityManager.SetGlobalStrength | ( | float | strength | ) |
References defaultStrength.
| void IuvoUnity.Singletons.GravityManager.SetGravityDirection | ( | Vector3 | direction | ) |
References defaultDirection.
|
private |
Referenced by SetGravityDirection().
|
private |
Referenced by GravityStrength(), and SetGlobalStrength().
|
getprivate set |
Referenced by GravityDirection().
|
getprivate set |
Referenced by GravityStrength().