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 CapsuleCollider2DFields
Size
public Vector2 SizeHow wide and high it is, round ends and all.
Direction
public CapsuleDirection2D DirectionWhich way it stands.
Offset
public Vector2 OffsetWhere its middle is, from the entity's.
IsTrigger
public bool IsTriggerWhether it meets nothing and is told of what enters it.
Material
public AssetRef<PhysicsMaterial2D> MaterialWhat it is made of; none for Physics 2D's settings' default.
Density
public float DensityHow 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.
