class Actor
- Actor
- Collider::Rectangle
- Collider
- Entity
- SF::Transformable
- Reference
- Object
Defined in:
entities/boxes.crConstant Summary
-
LEEWAY =
2_f32
Constructors
Instance Method Summary
- #collision_direction : Actor::Direction
- #collision_direction=(collision_direction : Actor::Direction)
- #tangent : Bool
- #update
Instance methods inherited from class Collider::Rectangle
bounds
bounds,
collide(collider : Rectangle) : Boolcollide(collider : Circle) : Bool
collide(collider : Capsule) : Bool collide, load load, render(target, states) render, size : SF::Vector2(Float32) size, size=(size : SF::Vector2(Float32)) size=
Constructor methods inherited from class Collider::Rectangle
new(position, size : SF::Vector2(Float32))
new
Instance methods inherited from class Collider
bounds
bounds,
collidable : Bool
collidable,
collidable=(collidable : Bool)
collidable=,
collide(collider : Collider) : Boolcollide(collider : Rectangle) : Bool
collide(collider : Circle) : Bool
collide(collider : Capsule) : Bool
collide(collider : Group) : Bool collide, handlers : Array(Collider -> Nil) handlers, handlers=(handlers : Array(Collider -> _)) handlers=, load load, on(&block : Collider -> Nil) on, trigger(collider) trigger, unload unload