Posts tagged Separation Axis Theorem

Untitled

Detecting Collisions with SAT

0
Today we will finally be detecting a collision with SAT. We know how SAT works, we’ve built classes to work with SAT, now we can use all of this to detect a real, live collision! Using the classes we created last time, this is quite simple. First create a shape: var shape1:Polygon = [...]
Untitled

Using the Separation of Axis Theorem

1
A few months ago, I posted on the separation of axis theorem. You can learn all about SAT and how it works here. What that post failed to do was use the SAT. We will explore using SAT for collision detection in this post. In the post on SAT, we created the code to detect collisions, however use of [...]

SAT in Action

2
In a previous post, I explained the Separation of Axis Theorem. Now it’s time to see SAT in action. Click on a shape to move it. It both will turn red when they are touching. The shapes will turn black again when they are not colliding. Use the drop down lists to change the shapes. Click here to [...]
Separating Line and Axis

Separation of Axis Theorem (SAT) for Collision Detection

22
The Separation of Axis Theorem(SAT) is a technique to test whether two convex polygons are colliding. The SAT theorem: “given two convex shapes, there exists a line onto which their projections will be separate if and only if they are not intersecting.” The line where the shapes have disjoint [...]
Go to Top