Particle Arc or Sector (Expression) — skript-particle

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

Syntax

[a[n]] [circular] (arc|sector) (with|of) radius %number% and [cutoff] angle [of] %number% [degrees|radians]

Description

Creates an arc or sector with the given radius and cutoff angle. The radius 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 circle or cylinder. An arc is a portion of the circle's circumference. A sector is a portion of the circle's area.

Examples

set {_shape} to an arc with radius 10 and angle 45 degrees
set {_shape} to a circular sector of radius 3 and angle 90 degrees
set {_shape} to a sector of radius 3 and height 5 and angle 90 degrees
set {_shape} to a cylindrical sector of radius 1, height 0.5, and angle 45

View source