Scripting API
Scripting API
Colliders2DEditing
Class in Abyss.Physics2D, from Abyss.Physics2D.
Every 2D collider edited in the Scene view with Edit Collider: a box's and a capsule's dot in the middle of each side, which moves that side, the far one staying, a circle's four on its edge, which set its radius, and a polygon's and an edge's at each point, dragged, added on a line between two and deleted with Ctrl — a polygon three to 64, an edge two to 32.
public sealed class Colliders2DEditing : IPluginRemarks
By the Rect tool's rule a side is dragged with Shift to keep the shape, the other side growing with it about its middle, and with Alt about the middle, the far side moving with it. Each in the entity's own units, where its Transform puts it, so a scaled or turned entity's handles 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.
