Class Knockback
Helper class for easily knocking back entities. (which basically is a non-friendly displacement)
Inheritance
object
Knockback
Assembly: Dew.Core.dll
Syntax
[Serializable]
public class Knockback
Fields
distance
Declaration
Field Value
duration
Declaration
Field Value
ignoreTenacity
Declaration
public bool ignoreTenacity
Field Value
Methods
ApplyWithDirection(Quaternion, Entity)
Declaration
public void ApplyWithDirection(Quaternion rot, Entity to)
Parameters
| Type |
Name |
Description |
| UnityEngine.Quaternion |
rot |
|
| Entity |
to |
|
ApplyWithDirection(Vector3, Entity)
Declaration
public void ApplyWithDirection(Vector3 dir, Entity to)
Parameters
| Type |
Name |
Description |
| UnityEngine.Vector3 |
dir |
|
| Entity |
to |
|
ApplyWithOrigin(Vector3, Entity)
Declaration
public void ApplyWithOrigin(Vector3 origin, Entity to)
Parameters
| Type |
Name |
Description |
| UnityEngine.Vector3 |
origin |
|
| Entity |
to |
|