Skip to content

Class: DispByDestination ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
  • Inheritance / Derived: Displacement
csharp
public class DispByDestination : Displacement

Fields ​

NameDeclarationDescription
canGoOverTerrainpublic bool canGoOverTerrainCan 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.
curvepublic Vector4 curveCubic bezier parameter. Use this to curve the movement trajectory.https://cubic-bezier.com/
curveHorizontalDistancepublic float? curveHorizontalDistanceSet the horizontal sway magnitude of the curve.If not set, the curve will be scaled to the length of the linear line.
destinationpublic Vector3 destinationDestination of this displacement. You should feed in a valid agent position using Dew.GetValidAgentPosition()
durationpublic float durationDuration of this displacement.
easepublic DewEase easeType of ease function that this displacement will follow over its course.

Maintained by the Shape of Dreams Modding Community