Particle

value class Particle : JointEnd(source)

Identifies one particle of a PhysicsWorld, as returned by Particles.add. Pass it to the world's stores, such as Particles.xOf and Constraints.distance.

A particle's slot is reused once it is removed, so a handle kept after Particles.remove may later refer to a new particle; Particles.isAlive tells whether it still refers to one.

toString gives the slot, for example Particle(12).

Functions

Link copied to clipboard
open override fun toString(): String