Class DispByDestination
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public class DispByDestination : Displacement
Fields
canGoOverTerrain
Can this displacement go over terrain/go through walls?
If this is false, the displacement might end up not reaching the desired destination.
Default value is true.
Declaration
public bool canGoOverTerrain
Field Value
| Type | Description |
|---|---|
| bool |
curve
Cubic bezier parameter. Use this to curve the movement trajectory.
https://cubic-bezier.com/
Declaration
public Vector4 curve
Field Value
| Type | Description |
|---|---|
| UnityEngine.Vector4 |
curveHorizontalDistance
Set the horizontal sway magnitude of the curve.
If not set, the curve will be scaled to the length of the linear line.
Declaration
public float? curveHorizontalDistance
Field Value
| Type | Description |
|---|---|
| float? |
destination
Destination of this displacement. You should feed in a valid agent position using Dew.GetValidAgentPosition()
Declaration
public Vector3 destination
Field Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
duration
Duration of this displacement.
Declaration
public float duration
Field Value
| Type | Description |
|---|---|
| float |
ease
Type of ease function that this displacement will follow over its course.
Declaration
public DewEase ease
Field Value
| Type | Description |
|---|---|
| DewEase |