EffectLib Cube - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Cube

Description:

This effect creates a wireframe cube.

Configuration:

Overridden:

Option Default
type "repeating"
particle "flame"
period 5
iterations 200

Other:

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

Example:

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