Scripting API

Scripting API

EdgeCollider2D

Struct in Abyss.Physics2D, from Abyss.Physics2D.

A line of edges an entity meets things with, one way or the other: ground's outline, a slope, a ledge.

public struct EdgeCollider2D

Fields

Points

public FixedList32<Vector2> Points

The points the line goes through, in order, in the entity's own units.

Offset

public Vector2 Offset

Where its points are from, from the entity's middle.

IsTrigger

public bool IsTrigger

Whether it meets nothing and is told of what enters it.

Material

public AssetRef<PhysicsMaterial2D> Material

What it is made of; none for Physics 2D's settings' default.