Ring

interface Ring(source)

A closed outline of points, in order, such as a soft body's skin: see SoftBodies.ringOf. It reads the points where they are now, so the same one serves every frame.

Properties

Link copied to clipboard
abstract val size: Int

Number of points in the outline. The one after the last is the first.

Functions

Link copied to clipboard
abstract fun xAt(index: Int): Float

Returns the position across of the point at index, in 0 until size.

Link copied to clipboard
abstract fun yAt(index: Int): Float

Returns the position down of the point at index, in 0 until size.