Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.Gravity Class Reference

Applies the default gravity to the character. More...

Inheritance diagram for PlatformerPro.Gravity:
PlatformerPro.FlippableGravity

Public Member Functions

virtual void Init (Character character)
 
virtual void ApplyGravity ()
 

Public Attributes

bool usePhysics2dGravity
 If true use the gravity value form the Physics 2D Project settings. More...
 
float gravity = -20.0f
 The value of gravity for manual gravity type. More...
 

Protected Attributes

Character character
 Cached reference to the character. More...
 

Properties

virtual float? Value [get]
 Gets the current value of gravity. More...
 
virtual bool IsGravityFlipped [get]
 Gets a value indicating whether thegravity flipped. More...
 

Detailed Description

Applies the default gravity to the character.

Member Function Documentation

◆ ApplyGravity()

virtual void PlatformerPro.Gravity.ApplyGravity ( )
virtual

◆ Init()

virtual void PlatformerPro.Gravity.Init ( Character  character)
virtual

Member Data Documentation

◆ character

Character PlatformerPro.Gravity.character
protected

Cached reference to the character.

◆ gravity

float PlatformerPro.Gravity.gravity = -20.0f

The value of gravity for manual gravity type.

◆ usePhysics2dGravity

bool PlatformerPro.Gravity.usePhysics2dGravity

If true use the gravity value form the Physics 2D Project settings.

Property Documentation

◆ IsGravityFlipped

virtual bool PlatformerPro.Gravity.IsGravityFlipped
get

Gets a value indicating whether thegravity flipped.

◆ Value

virtual float? PlatformerPro.Gravity.Value
get

Gets the current value of gravity.


The documentation for this class was generated from the following file: