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

Force applier applies a force based on the velocity of the character. Make sure the layer of this object isn't one the Character can collide with, else the character will collide with itself. More...

Inheritance diagram for PlatformerPro.ForceApplier:

Public Attributes

ForceMode2D forceMode = ForceMode2D.Impulse
 How the force will be applied. More...
 
Vector2 forceModifier = Vector2.one
 Force modifier - Applied force will be multiplied by this. More...
 
bool dontApplyDownForce = true
 If true don't apply downwards force on an object. More...
 

Protected Member Functions

virtual void Init ()
 Init this instance. More...
 

Protected Attributes

Character character
 Character reference. More...
 

Detailed Description

Force applier applies a force based on the velocity of the character. Make sure the layer of this object isn't one the Character can collide with, else the character will collide with itself.

Member Function Documentation

◆ Init()

virtual void PlatformerPro.ForceApplier.Init ( )
protectedvirtual

Init this instance.

Member Data Documentation

◆ character

Character PlatformerPro.ForceApplier.character
protected

Character reference.

◆ dontApplyDownForce

bool PlatformerPro.ForceApplier.dontApplyDownForce = true

If true don't apply downwards force on an object.

◆ forceMode

ForceMode2D PlatformerPro.ForceApplier.forceMode = ForceMode2D.Impulse

How the force will be applied.

◆ forceModifier

Vector2 PlatformerPro.ForceApplier.forceModifier = Vector2.one

Force modifier - Applied force will be multiplied by this.


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