Scripting API

Scripting API

Colliders2DFitting

Class in Abyss.Physics2D, from Abyss.Physics2D.

A collider put on an entity in the editor fits what the entity draws — its sprite's rectangle, or its mesh's box across X and Y — as it is added: a box its size, a circle round it, a capsule along its longer side, a polygon at its corners. An entity that draws nothing keeps the collider's own defaults. And as the entity's sprite is resized in the editor, every collider on it is stretched with it.

public sealed class Colliders2DFitting : IPlugin

Methods

Build

public void Build(Schedule schedule)

Parameters

  • schedule