atl/sm/debris
import "atl/sm/debris"[client] Visual-only physics debris (sm.debris).
Functions
Section titled "Functions"func Create(uuid sm.Uuid, position sm.Vec3, rotation sm.Quat, o Options)A falling copy of shape uuid that collides with the world but that nothing collides with.
func CreateBlackHole(position sm.Vec3, b BlackHole)Pulls nearby debris toward position.
Options
Section titled "Options"type Options struct { Velocity, AngularVelocity *sm.Vec3 Color *sm.Color TimeToLive, Gravity, Friction, LinearDamping, AngularDamping, Time *float64}Optional debris settings.
BlackHole
Section titled "BlackHole"type BlackHole struct { Radius, Force *float64 // Makes it a line segment from the position to here. Position2 *sm.Vec3 WanderForce, DissolveRadius, TimeToLive *float64 Channel *int}Black hole settings.