Class DispByTarget
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public class DispByTarget : Displacement
Fields
cancelTime
Max duration of this displacement until it cancels itself.
Default value is Infinity.
Declaration
public float cancelTime
Field Value
| Type | Description |
|---|---|
| float |
goalDistance
Goal distance. The displacement will finish when it reaches this distance to the target entity.
Declaration
public float goalDistance
Field Value
| Type | Description |
|---|---|
| float |
speed
This displacement's speed in unit/s.
Declaration
public float speed
Field Value
| Type | Description |
|---|---|
| float |
target
Target entity that this displacement will chase after.
Declaration
public Entity target
Field Value
| Type | Description |
|---|---|
| Entity |