Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
coma::cols Namespace Reference

Basic colisions. More...

Functions

Face detectFaceCollision (const BoxCmp &me, const BoxCmp &other)
 If two objects are colliding return the face of the box with which it collides. More...
 
bool collidesWith (const BoxCmp &me, const BoxCmp &other)
 Detect if the BoxCmp are colliding. More...
 

Detailed Description

Basic colisions.

Function Documentation

◆ collidesWith()

bool coma::cols::collidesWith ( const BoxCmp me,
const BoxCmp other 
)

Detect if the BoxCmp are colliding.

Parameters
meMy BoxCmp.
otherThe CoxCmp with which I want to know if I collided.
Returns
if the BoxCmp are colliding return trues else false.

◆ detectFaceCollision()

Face coma::cols::detectFaceCollision ( const BoxCmp me,
const BoxCmp other 
)

If two objects are colliding return the face of the box with which it collides.

Parameters
meMy BoxCmp.
otherThe CoxCmp with which I want to know if I collided.
Returns
The face of the box with which it collides