Skip to content

MinMaxConfigType

ts
type MinMaxConfigType = object;

Type defining the configuration for movement behavior using min/max speeds.

Properties

maxMoveSpeed

ts
maxMoveSpeed: PointData;

Maximum movement speed for X and Y axes.


minMoveSpeed

ts
minMoveSpeed: PointData;

Minimum movement speed for X and Y axes.


mode?

ts
optional mode: "linear" | "acceleration";

Movement mode. In linear mode particles move at a constant speed, while in acceleration mode particles accelerate over time based on initial speed.


space?

ts
optional space: MovementSpace;

Space in which movement is applied. In local space, movement is relative to the particle's initial direction, while in global space movement is applied relative to the container.