Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // colliding between two entities
- if (lhs.colliding(rhs))
- {
- ...
- if (lhs->parent.hasComponent<Bullet>() && rhs->parent.hasComponent<Health>())
- {
- lhs->parent.onCollide();
- rhs->parent.onCollide<Bullet>(int dhp);
- }
- ..
- }
Advertisement
Add Comment
Please, Sign In to add comment