Welcome to this assignment. Please answer the following questions from the lecture. Feel free to ask questions here as well if you need the help.
- Name 2 methods for detecting collisions in a game.
- Describe roughly how they work.
Welcome to this assignment. Please answer the following questions from the lecture. Feel free to ask questions here as well if you need the help.
**Name 2 methods for detecting collisions in a game.
AABB collision and Ray casting
** Describe roughly how they work.
AABB
Ray casting
Name 2 methods for detecting collisions in a game.
AABB Collisions and Ray Casting are the two methods.
Describe roughly how they work.
AABB uses rectangular bounding boxes to determine if an overlap of sprites exist as it happens.
Ray casting determines the distance between sprites as measured straight from one sprite outward. This allows for anticipating collisions as opposed to AABB as it happens noticing.
AABB - simple rectangular box collision detection and adjustment
Ray Casting - collisions with reference to sprite distances calculated in anticipation of a collision
Name 2 methods for detecting collisions in a game & describe roughly how they work.
Ray casting - where a beam is sent from the character in a direction to see if it collides with or is close to an object.
AABB collision - where the boxes overlap and this is when a collision is detected.