module PF::CircleCollision
Overview
This module contains methods to handle circle entity collision
Defined in:
entity/circle_collision.crInstance Method Summary
-
#collides_with?(other : Entity)
Check if two circles are colliding
-
#offset_collision(other : Entity)
Move objects so that they don't overlap
- #radius : Float64
- #radius=(radius : Float64)
-
#resolve_collision(other : Entity)
Resolve a collision by offsetting the two positions and transfering the momentum
Instance Method Detail
Resolve a collision by offsetting the two positions and transfering the momentum