Scripting API

Scripting API

CapsuleCollider2D

Struct in Abyss.Physics2D, from Abyss.Physics2D.

A capsule an entity meets things with: a box with round ends, a character's.

public struct CapsuleCollider2D

Fields

Size

public Vector2 Size

How wide and high it is, round ends and all.

Direction

public CapsuleDirection2D Direction

Which way it stands.

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.