Posts tagged 2D
Steering Behaviors: Seeking
Jun 11th
Steering behaviors are used to create intelligent movements on a computer. These posts will be an AS3 version of the principles illustrated in Craig Reynolds’ article located at http://www.red3d.com/cwr/steer/gdc99/.
Before we can start using steering behaviors, we need a few classes. First we will be using, yet again, the Vector2D.as class. Steering behaviors rely on vector math, so you should be familiar with it.
If you need more information on vector mathematics, you can look here:
https://users.cs.jmu.edu/bernstdh/web/common/lectures/slides_vector-math-2d.php
http://en.wikipedia.org/wiki/Vector_%28mathematics%29
Next we will need a vehicle class to hold all the vehicle’s properties. The properties each vehicle will More >
SAT in Action
May 22nd
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.
Separation of Axis Theorem (SAT) for Collision Detection
May 19th
The separating line and axis form a 90 degree angle.
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 projections is called the separating axis.
A separating line is the line that can be drawn between the two shapes, without touching either shape. Because flash is 2D, I will only be showing this method for 2D, but it can be done in 3D(in 3D, More >





