I’ve set up a small mostly AS 2.0 particle engine, its pretty neat. My one problem is this: I want to make them hitTest walls/floors. I can do the actual hitTests just fine, the problem is that at a low velocity they just get stuck within the walls/floor, and just fall through slowly. Is there any good way avoid this?
Note: I am essentially remaking the engine in my signature in AS 2.0.
Yes, that may happen when the intersecting regions of the object and wall/floor is greater than the object’s current velocity.
To get around that problem I normally use if else statements rather than hitTest, or you should check if the ibject will collide the wall before assigning it’s new position. Do you see where I’m getting at?