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.

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

#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

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


#5

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


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

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