enum Eagle::Physics2D::BodyType

Overview

How a body moves: Static never moves, Kinematic is moved by code, and Dynamic is moved by the simulation.

Defined in:

eagle/physics/body2d.cr

Enum Members

Static = 0

Never moves: floors and walls.

Kinematic = 1

Moved by your code, pushes dynamic bodies, ignores forces.

Dynamic = 2

Moved by the simulation: gravity, collisions and forces.

Instance Method Summary

Instance Method Detail

def dynamic? #

Returns true if this enum value equals Dynamic


def kinematic? #

Returns true if this enum value equals Kinematic


def static? #

Returns true if this enum value equals Static