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...
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.
◆ Init()
virtual void PlatformerPro.ForceApplier.Init |
( |
| ) |
|
|
protectedvirtual |
◆ character
Character PlatformerPro.ForceApplier.character |
|
protected |
◆ 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:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Movement/Special/ForceApplier.cs