Class: CircleCollidable
- Inherits:
-
CollidableShape
- Object
- CollidableShape
- CircleCollidable
- Defined in:
- lib/gamebox/behaviors/collidable/circle_collidable.rb
Instance Attribute Summary
Attributes inherited from CollidableShape
#actor, #cw_local_points, #cw_world_edge_normals, #cw_world_lines, #cw_world_points, #opts, #radius
Instance Method Summary collapse
Methods inherited from CollidableShape
#actor_x, #actor_y, #initialize, #recalculate_collidable_cache, #width
Constructor Details
This class inherits a constructor from CollidableShape
Instance Method Details
#center_x ⇒ Object
9 10 11 |
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 9 def center_x actor_x end |
#center_y ⇒ Object
13 14 15 |
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 13 def center_y actor_y end |
#setup ⇒ Object
5 6 7 |
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 5 def setup @radius ||= opts[:radius] end |