Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum EBoundingType
- {
- DEFAULT,
- BOX,
- CIRCLE
- }
- class CBounding
- {
- EBoundingType m_Type = EBoundingType::DEFAULT;
- bool Collide(CBounding* other)
- {
- if (other->m_Type == BOX)
- {
- Collide(static_cast<CBoundingBox*>(other));
- }
- else if (other->m_Type == CIRCLE)
- {
- Collide(static_cast<CBoundingCircle*>(other));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement