all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

Collision


Collision nickcrispini
6/8/2005 9:50:17 PM
flash actionscript:
I have a baseball bat shaped object and I want to detect a reasonably accurate
collision between the moving bat and an another irregular shaped moving object
(a fish). I've done a lot of reading and tried various techniques of collision
but I'm quite confused and perplexed over what's an accurate but efficient
method to use.

Any advise or suggestions will be much appreciated.

Thanks.
Re: Collision JamesJordan
6/8/2005 11:09:09 PM
One way you can do it is to declare some points on the object (the fish)
relivant to the registration point then run a series of hitTests to set if the
points overlap the bat object. You can set as many points as you would like
for accuracy.
AddThis Social Bookmark Button