|
Friday, 27 January 2006 |
|
Welcome to the old personal site of Johan van Mol. Over the last couple of years my career has taken a turn. I stopped flash and web development and moved to a management position. I leave a number of popular articles online. My new blog can be found at www.buckminster.be |
|
|
Tuesday, 11 April 2006 |
I was tired of finding myself utf8_encode()'ing and utf8-decode()'ing all over the place when dealing with multi-lingual Flash and HTML sites. My solution is the Unicode Workflow, a big word for a couple of simple rules which will save you a lot of headaches. |
|
Read more...
|
|
|
Sunday, 10 September 2006 |
This is the third article on collision detection and bouncing in Flash. This article will explain how collision works between a light object and a much heavier object, such as a ball and a wall. In this case the collision response is quite simple because the heavy object is not affected by the collision. This article builds on the algortihms explained in the first and second article. |
|
Read more...
|
|
|
Tuesday, 06 June 2006 |
At a jiu-jitsu seminar I asked a Japanese grandmaster which was the preferred way to do a certain wrist lock. He answered: "Life has many ways, choose one". The same wisdom applies to collision detection. There are many ways to implement the intersection-of-line-segments-formula I explained in the first article. In this article we'll explore some algorithms in Flash to detect collisions of a moving circle or polygon enclosed by another polygon. |
|
Read more...
|
|
|
Sunday, 23 April 2006 |
|
This is the first article in a series about collision detection and bouncing in Flash. Before we get to the real stuff, we need some preliminary knowledge: we need to know how to intersect line segments. In this article I'll show two ways to calculate the intersection of line segments. First we'll use the Slope-Intercept form of the lines to find their intersection. The second method uses a parametric equation, which will prove to be more elegant and require less time to compute. Sample code is provided in Flash. |
|
Read more...
|
|
|