# Physics - Guest Lecture

#1

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.

1. Name 2 methods for detecting collisions in a game.
2. Describe roughly how they work.
0 Likes

#2
1. Two methods for detecting collisions are AABB or Ray Casting
2. AABB is box method based on x/y axis. Good for simple collision detection.
Ray Casting is a method where you calculate the distance between each objects by extending a line from one object to another. Ray Casting can anticipate a collision where AABB only knows the frame it happens.
0 Likes

#3

**Name 2 methods for detecting collisions in a game.
AABB collision and Ray casting
** Describe roughly how they work.
AABB

• used for rectangle object
• when the position of two object is overlapped, program knows that collision happened and send the moving object to the new position
• good for simple collision

Ray casting

• sending a ray to calculate the distance between the main object to the surrounding
• anticipating collision
0 Likes

#4
1. Name 2 methods for detecting collisions in a game.
AABB Collisions and Ray Casting are the two methods.

2. 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.

0 Likes

#5

AABB - simple rectangular box collision detection and adjustment
Ray Casting - collisions with reference to sprite distances calculated in anticipation of a collision

0 Likes

#6
1. Name 2 methods for detecting collisions in a game.
Ray casting, and intersection/overlap
2. *Describe roughly how they work.
Ray casting is measuring distances to other objects, overlap (AABB mentioned though spherical can be useful as well) is determining when the bounding boxes of two objects overlap/intersect.
0 Likes

#7

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.

0 Likes

#8
1. Name 2 methods for detecting collisions in a game.
AABB (axis aligned bounding box) : for rectangular shapes without rotation
separating axis theorem (SAT): used for convex shapes

2. Describe roughly how they work.
they both work by checking if there is any overlap between the shapes

0 Likes

#9
1. Name 2 methods for detecting collisions in a game.
AABB and Ray Casting are the two methods used in 2D games for collision detection.

2. Describe roughly how they work.
AABB detects when the position of two rectangular objects are overlapped
Ray Casting anticipates collisions between objects by projecting a ray which measures how far away another object is in all directions.

0 Likes

#10
1. AABB & Ray Casting.

2. AABB is used for simple rectangular objects that overlap. Ray Casting is used for collisions between objects. It does this by using a ray to measure how far away an object is in all directions.

0 Likes