Challenge: Check for Prop Collision

The video course is still in pause waiting for our solution.

here my solution:

 for (auto prop : props)
 {
    if(CheckCollisionRecs(prop.getCollisionRec(Knight.getWorldPos()),
       Knight.getCollisonRec())) 
    { Knight.undoMovement(); }
 }

I’m happy, it works on the first try :metal:

Privacy & Terms