FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
Knockback Class Reference

Component to add force to attached objects rigidbody2D for easier access. More...

Inheritance diagram for Knockback:

Public Member Functions

void ApplyForce (Vector2 direction, float amount)
 Applies a force in a direction with a force depending on a percentile.
 

Detailed Description

Component to add force to attached objects rigidbody2D for easier access.

Definition at line 10 of file Knockback.cs.

Member Function Documentation

◆ ApplyForce()

void ApplyForce ( Vector2 direction,
float amount )

Applies a force in a direction with a force depending on a percentile.

Parameters
directiondirection to apply force
amounta value between 0-1 to applie towards max force

Definition at line 26 of file Knockback.cs.


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