module

GSDL::Collidable

Class methods

vertices_buffer_a
Source
vertices_buffer_b
Source

Instance methods

collides?(other : Collidable) : Bool
Source
collides?(rect : Rect | FRect) : Bool
Source
collision_bounding_box

collision bounding box of the collidable object as an FRect

Source
collision_box
Source
collision_center
Source
collision_info(other : Collidable) : CollisionInfo
Source
collision_normal(other : Collidable) : Point
Source
collision_polygon_vertices(buffer : Array(Point))

Populates the provided buffer with vertices to avoid allocations

Source
collision_polygon_vertices

For polygons, return the absolute coordinates of the vertices

Source
collision_radius

For circles, this would be the radius

Source
collision_shape
Source
render_x

requires

Source
render_y
Source
solid=(solid : Bool)
Source
solid?
Source

Nested types