Bounding box and collision detection code snippets for Adobe flash professional Cs5.5 -
i creating basic game in flash professional cs5.5 , wanted know if had code snippets bounding box character, , collision detection code snippet.
the game consists of player moving out way avoid cars , other obstacles while getting scored how long run.
ours 3d, c# ape physics entire engine here
take @ convex hull , environment
we used bounding volume hierarchy
a simple method of optimisation put sphere around every object. when testing 2 objects collision, check if centers of objects within radius range. if bounding spheres don't collide no more work needs done.
Comments
Post a Comment