Physics - Guest Lecture

Hi.

  1. Name 2 methods for detecting collisions in a game.
    -AABB or Ray Casting
  2. Describe roughly how they work.
  • AABB (Axis aligning blending box), based on x/y axis.
    -Ray Casting, here you calculated the distance between the objects. We project a line in a distance and check if it goes through anything.
1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB (Axis Aligned Bounding Box) - Detects the collision in the very frame it happens.
    Ray Casting - Anticipates the collision.

  2. Describe roughly how they work.

    1. AABB: Checks collision by looking for the superposition of game objects bounding box.
    2. Ray casting: This tool is all about calculating the distance between objects. We project a line of a given length from an object and see if it goes through anything.
1 Like
  1. AABB and Ray casting.
  2. AABB is using XY space alignemnt and detects the exact frame when an object hits another. Ray casting is about calculating the distance from our object to given obstacles. That would be also the difference between these two methods, the first one detects the collision when it already happened, while the second anticipates an upcoming collision.
1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB (Axis Aligned Bounding Box) and ray casting…

  2. Describe roughly how they work.
    AABB uses an invisible box drawn around every object, and when these boxes overlap it triggers a collision event. Ray casting draws many lines in all directions to detect collisions and thus determine distance between objects.

1 Like
  Name 2 methods for detecting collisions in a game.
  - Axis Aligned Bounding Box and Ray Casting
  
  Describe roughly how they work.
  - AABB directly checks the overlapping of any object's bounding box to another object's bounding box.
  - Ray Casting is done by projecting a line with a given length from an object to know if two objects collide
1 Like
  1. Two methods of detecting collisions are AABB and Raycasting.
  2. AABB surrounds the object in a rectangular bounding box and detects collisions in real time. Raycasting creates lines separating different objects in order to calculate distances between them and tracks collisions before they happen.
1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB
    Ray Casting
  2. Describe roughly how they work.
    AABB basically uses a rectangle border to detect a collision anytime the border overlaps an object

Ray casting uses lines drawn from the object to detect and anticipate how close the object is to another object

1 Like

Reading Assignment: Physics(Answers)

  1. AABB and Ray Casting

  2. AABB - Access aligned bounding box, rectangular collisions. Only detected when 2 AABB box collide.

Ray Casting - Allows you to calculate precise distance between objects or areas, etc.

1 Like

1.) aabb - access aligned bounding box
raycasting
2.) aabb = check position of bounding box → collision detected the moment it happens
raycasting (more advanced often 3d games) project a line and check if it goes through anything → can anticipate collision. Used for line of sight and measurement of distances

4 Likes
  1. AABB; ray casting
  2. AABB detects when objects overlap in a frame with bounding boxes. Ray casting determines distance between objects by projecting a line with a given length.
3 Likes
  1. AABB(axis aligned bounding box) and Ray casting.

  2. aabb is when rectangle boxes are being collided, ray casting is more accurate and is measured by its distance.

4 Likes
  1. Name 2 methods for detecting collisions in a game.
    AABB and ray casting. Another method is called separating axis theorem.
  2. Describe roughly how they work.
    AABB works by detecting when two objects overlap. The game engine will then move the colliding objects apart.
    Ray casting works by calculating the distance between two objects. It allows the anticipation of collisions unlike AABB
2 Likes
  1. AABB method and ray casting.

  2. AABB consider a square around the object and considers the collision of those squares that move on the x and y axis.

Raycasting calculating distances between objects in different directions. Precise.

1 Like
  1. Detecting collisions in a game can be achieved by using the Axis Aligned Bounding Box algorithm (AABB) or by the Ray Casting method.

  2. AABB works by checking for the superposition of the bounding boxes of game objects within a x/y coordinate system. Ray casting works by projecting a line from a given object and calculating the distances between itself and other objects. Ray casting allows for anticipation of a collision, whereas AABB does not.

1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB Collisions and Ray Casting
  2. Describe roughly how they work.
    AABB Collisions ( axis-aligned bounding boxes ) is a method that basically have a box around the object and it trigger the collision when two objects collides. Usually you have hidden boxes to delimit movements, or trigger event like a “thing” fall from the sky when you collide with a hidden box.
    Ray Casting: you have a ray casting from the object and detect when it collides with another object. Ray Casting is more precise but not every library has it
2 Likes
  1. Name 2 methods for detecting collisions in a game. aabb and ray tracing
  2. Describe roughly how they work.
1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB Collisions and ray casting

  2. Describe roughly how they work.
    AABB Collisions works with ‘rectangular colliders’ and detects if two rectangular shaped objects overlap/collide in frame.
    Ray casting draws (or ‘casts’) a line from one object to another to see if it touches/collides with anything. With this method we can detect distance from an object to the ground or for example simulate lines of sight.

1 Like

Name 2 methods for detecting collisions in a game.
AABB and Ray Casting

Describe roughly how they work.
AABB uses rectangular boxes and determine if they overlap in order to detect collisions.
Ray casting determines the distance between objects in order to anticipate collisions.

1 Like
  1. Name 2 methods for detecting collisions in a game.
  • AABB = Axis Aligned Bounding Box
  • Ray Casting
  1. Describe roughly how they work.
  • AABB : is simple by only checking if one side of a rectangular box around the sprite and (a part of) an object overlaps and responds with ex. a bounch
  • Ray casting : checks the distance to another object to detetect a collision to take action
1 Like
  1. Name 2 methods for detecting collisions in a game.
    AABB and Ray Casting

  2. Describe roughly how they work
    AABB detetcs if an object overlaps the position of an other object
    Ray Casting anticipates the collision between 2 objects by projecting a line between one object and an other object

1 Like