Scripting API

Scripting API

Colliders3DEditing

Class in Abyss.Physics3D, from Abyss.Physics3D.

The 3D colliders with a size edited in the Scene view with Edit Collider: a box's dot in the middle of each face, which moves that face, the far one staying; a sphere's at each end of its three axes, which set its radius; and a capsule's four round its middle, which set its radius, and one at each end, which set its height. A mesh collider is its mesh, and has none.

public sealed class Colliders3DEditing : IPlugin

Remarks

Each dot slides along its own line alone — out of its face, the way its radius goes — and is snapped to the Move tool's step along it, with Ctrl or the magnet. By the Rect tool's rule a dot is dragged with Alt about the middle, the far side moving with it; and with Shift to keep the shape, the other sizes growing with it about their middles.

Each in the entity's own units, where its Transform puts it, so a scaled or turned entity's dots are on its collider as it is drawn.

Methods

Build

public void Build(Schedule schedule)

Parameters

  • schedule

Constants

Button

public const string Button = "Edit Collider"

What the Inspector's button reads.