generated from fenix31415/TemplatePluginSSE
-
Notifications
You must be signed in to change notification settings - Fork 5
Position Pattern
fenix31415 edited this page Nov 8, 2023
·
12 revisions
Some of the features work with patterns. This is a set of points placed in space. The points are located relative to the starting point and the direction of the figure.
At the moment, the following features works with figures:
- MultiCast: placing new projectiles at points on the figure.
- Followers: following projectiles to points on the figure.
Following steps are performed.
- The initial parameters are set.
- The pattern center is either node position or initial center.
- The pattern center is shifted by the specified offset.
- The plane of pattern is determined. This is the plane with the calculated center and the specified normal.
The normal is relative to the initial direction. - Points are placed according to the figure, positioned in the resulting plane.
- The points are rotated along the normal to the plane at a given angle.
This is an object with the following fields.
-
origin
: Center of the pattern is either a node (set its name in this property) or casting position/projectile position/caster position/etc (set "" for this) (default: ""). See 2. -
posOffset
: an offset of the pattern center from theorigin
(default: [0,0,0]). See 3. -
normal
: a normal of plane of pattern, relative to initial direction (default: [0,1,0], i.e. forward). See 4. -
xDepends
: determines whether the vertical direction of the pattern affects the resulting plane. See 4. -
Figure
: set the initial figure. Then it will be moved/rotated. See 5. -
planeRotate
: an angle to rotate a figure along the resulting plane (default: 0). See 6.
This is an object with the following fields.
-
shape
: a method of placing points in the figure. -
count
: number of points in the figure (default: 1). -
size
: some figures have a custom size.
The points can be located in the following patterns.
-
Single
(default): all points are in the center of the figure. -
Line
: the points are on a straight line. -
Circle
: the points are arranged in a ring. -
HalfCircle
: the points are arranged in a semiring. -
FillSquare
: the points are arranged in a square. -
FillCircle
: the points are arranged in a circle. -
FillHalfCircle
: the points are arranged in an upper half of a circle. -
Sphere
: the points are located on a sphere. -
HalfSphere
: the points are located on an upper half of a sphere. -
Cylinder
: the points are located on a cylinder.