module PF::CircleCollision

Overview

This module contains methods to handle circle entity collision

Defined in:

entity/circle_collision.cr

Instance Method Summary

Instance Method Detail

def collides_with?(other : Entity) #

Check if two circles are colliding


[View source]
def offset_collision(other : Entity) #

Move objects so that they don't overlap


[View source]
def radius : Float64 #

[View source]
def radius=(radius : Float64) #

[View source]
def resolve_collision(other : Entity) #

Resolve a collision by offsetting the two positions and transfering the momentum


[View source]