enum

Flock::Collision::Shape2D

Inherits Enum < Comparable < Value < Object

The 2D collider shapes. Collider2D interprets its fields per this tag.

Constants

Circle = 0
Box = 1
Capsule = 2

Instance methods

box?

Returns true if this enum value equals Box

Source
capsule?

Returns true if this enum value equals Capsule

Source
circle?

Returns true if this enum value equals Circle

Source