Class: CircleCollidable

Inherits:
CollidableShape show all
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_xObject



9
10
11
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 9

def center_x
  actor_x
end

#center_yObject



13
14
15
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 13

def center_y
  actor_y
end

#setupObject



5
6
7
# File 'lib/gamebox/behaviors/collidable/circle_collidable.rb', line 5

def setup
  @radius ||= opts[:radius]
end