Add this component to an object with a trigger 2D collider and it'll act as a gravity zone, modifying the gravity for all Characters entering it, providing they have the CharacterGravity ability
More...
Add this component to an object with a trigger 2D collider and it'll act as a gravity zone, modifying the gravity for all Characters entering it, providing they have the CharacterGravity ability
◆ OnDrawGizmosSelected()
virtual void MoreMountains.CorgiEngine.GravityZone.OnDrawGizmosSelected |
( |
| ) |
|
|
protectedvirtual |
On DrawGizmos, we draw an arrow to show the zone's current gravity direction
◆ GravityDirectionAngle
float MoreMountains.CorgiEngine.GravityZone.GravityDirectionAngle = 180 |
the angle of the gravity for this zone
◆ GravityDirectionVector
virtual Vector2 MoreMountains.CorgiEngine.GravityZone.GravityDirectionVector |
|
get |
the vector angle of the gravity for this zone
The documentation for this class was generated from the following file: