class Collider::Circle
- Collider::Circle
- Collider
- Entity
- SF::Transformable
- Reference
- Object
Defined in:
entities/collider.crConstructors
Instance Method Summary
- #bounds
- #collide(collider : Circle) : Bool
- #collide(collider : Rectangle) : Bool
- #collide(collider : Capsule) : Bool
- #load
-
#origin : SF::Vector2(Float32)
get the local origin of the object
- #origin=(origin : SF::Vector2(Float32))
- #radius : Float32
- #radius=(radius : Float32)
- #render(target, states)
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
Instance methods inherited from class Entity
add(entity : Entity)
add,
children : Array(Entity)
children,
children=(children : Array(Entity))
children=,
draw(target : SF::RenderTarget, states : SF::RenderStates)
draw,
finalize
finalize,
load
load,
offset : Proc(Vector)
offset,
offset=(offset : Proc(Vector))
offset=,
owner : Entity | Nil
owner,
owner=(owner : Entity | Nil)
owner=,
position
position,
remove(entity : Entity)
remove,
render(target, states)
render,
unload
unload,
update : Bool
update
Constructor methods inherited from class Entity
new
new
Constructor Detail
Instance Method Detail
def origin : SF::Vector2(Float32)
#
Description copied from class SF::Transformable
get the local origin of the object
Returns: Current origin
See also: #origin=