Particle Elliptical Arc or Sector (Expression) — skript-particle

Addon: skript-particle · Category: Expression · Since: 1.0.0

Syntax

[an] elliptical (arc|sector) (with|of) radi(i|us) %number%(,| and) %number%[,] and [cutoff] angle [of] %number% [degrees|radians]

Description

Creates an elliptical arc or sector with the given radii and cutoff angle. The radii must be greater than 0 and the height, if given, must be positive. The angle must be between 0 and 360 degrees. If the angle is 360 degrees, the shape will be a ellipse or elliptical cylinder. An arc is a portion of the ellipse's circumference. A sector is a portion of the ellipse's area. NOTE: Very eccentric elliptical sectors (those with a large difference between the x and z radii) may have many more particles than expected. Be careful.

Examples

set {_shape} to an elliptical arc with radii 10 and 3 and cutoff angle of 90 degrees
set {_shape} to a elliptical sector of radius 3 and 5 and cutoff angle of 45 degrees
set {_shape} to a elliptical cylinder with radii 3 and 5, height 10, and cutoff angle of 3.1415 radians

View source