forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
EffectLib Cube
JasperLorelai edited this page Jan 13, 2024
·
2 revisions
class: Cube
This effect creates a wireframe cube.
Option | Default |
---|---|
type |
"repeating" |
particle |
"flame" |
period |
5 |
iterations |
200 |
Option | Description | Type | Default |
---|---|---|---|
edgeLength |
Length of the edges of the cube. | Float | 3 |
angularVelocityX |
Turns the cube by this angle each iteration around the x-axis. | Double | PI / 200 |
angularVelocityY |
Turns the cube by this angle each iteration around the y-axis. | Double | PI / 170 |
angularVelocityZ |
Turns the cube by this angle each iteration around the z-axis. | Double | PI / 155 |
particles |
The number of particles displayed in each row. | Integer | 8 |
enableRotation |
Whether or not the cube should rotate. | Boolean | true |
outlineOnly |
Whether only the outline of the cubes are drawn. | Boolean | true |
orient |
Whether the effect should orient pitch and yaw. | Boolean | false |
CubeExample:
spell-class: ".instant.DummySpell"
effects:
Effect1:
position: caster
effect: effectlib
effectlib:
class: CubeEffect
particle: FLAME
particles: 8
edgeLength: 3
angularVelocityX: 0.015708
angularVelocityY: 0.018480
angularVelocityZ: 0.020268
type: REPEATING
period: 5
iterations: 200