Corgi Engine  v8.8
MoreMountains.CorgiEngine.GravityZone Class Reference

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...

Inheritance diagram for MoreMountains.CorgiEngine.GravityZone:
MoreMountains.CorgiEngine.CorgiControllerPhysicsVolume2D MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Attributes

float GravityDirectionAngle = 180
 the angle of the gravity for this zone More...
 
- Public Attributes inherited from MoreMountains.CorgiEngine.CorgiControllerPhysicsVolume2D
CorgiControllerParameters ControllerParameters
 the new parameters meant to override the olds ones More...
 
bool ResetForcesOnEntry = false
 if this is true, all forces currently applied to this controller will be reset on entry More...
 
bool MultiplyForcesOnEntry = false
 if this is true, forces will be multiplied by the values specified below More...
 
Vector2 ForceMultiplierOnEntry = Vector2.zero
 the force by which to multiply the current forces More...
 

Protected Member Functions

virtual void OnDrawGizmosSelected ()
 On DrawGizmos, we draw an arrow to show the zone's current gravity direction More...
 

Properties

virtual Vector2 GravityDirectionVector [get]
 the vector angle of the gravity for this zone More...
 

Detailed Description

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

Member Function Documentation

◆ OnDrawGizmosSelected()

virtual void MoreMountains.CorgiEngine.GravityZone.OnDrawGizmosSelected ( )
protectedvirtual

On DrawGizmos, we draw an arrow to show the zone's current gravity direction

Member Data Documentation

◆ GravityDirectionAngle

float MoreMountains.CorgiEngine.GravityZone.GravityDirectionAngle = 180

the angle of the gravity for this zone

Property Documentation

◆ 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: