Scripting API

Scripting API

CircleCollider2D

Struct in Abyss.Physics2D, from Abyss.Physics2D.

A circle an entity meets things with, scaled by the larger of the entity's X and Y.

public struct CircleCollider2D

Fields

Radius

public float Radius

How far its edge is from its middle.

Offset

public Vector2 Offset

Where its middle is, from the entity's.

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.

Density

public float Density

How heavy it is for its size, in kilograms a square meter: what its body's mass is worked out from where its Rigidbody 2D says Use Auto Mass.