SoftBody

value class SoftBody(source)

Identifies one soft body of a PhysicsWorld, as returned by PhysicsWorld.softBody. Pass it to SoftBodies, such as SoftBodies.centerXOf and SoftBodies.addVelocity.

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

toString gives the slot, for example SoftBody(0).

Functions

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