谈谈碰撞检测(上)
碰撞检测有多种
DisplayObject.hitTestPoint
DisplayObject.hitTestObject
BitmapData.hitTest
BitmapHitTest.complexHitTestObject
BitmapHitTestPlus.complexHitTestObject
等等,对于刚刚学习AS3,或者刚从AS2转到AS3的同学来说,很容易混淆,写个总结,希望能对新同学有用!
PS:
BitmapHitTest.complexHitTestObject
是老外tink写的一个像素及碰撞检测类,请参考:http://bbs.9ria.com/viewthread.php?tid=1270
BitmapHitTestPlus.complexHitTestObject
是Aone在tink的碰撞检测类基础上进行效率优化后的产品,请参考:http://bbs.9ria.com/viewthread.p ... p%3Bfilter%3Ddigest
谈谈碰撞检测.pdf (428.27 KB)
DisplayObject.hitTestPoint
DisplayObject.hitTestObject
BitmapData.hitTest
BitmapHitTest.complexHitTestObject
BitmapHitTestPlus.complexHitTestObject
等等,对于刚刚学习AS3,或者刚从AS2转到AS3的同学来说,很容易混淆,写个总结,希望能对新同学有用!
PS:
BitmapHitTest.complexHitTestObject
是老外tink写的一个像素及碰撞检测类,请参考:http://bbs.9ria.com/viewthread.php?tid=1270
BitmapHitTestPlus.complexHitTestObject
是Aone在tink的碰撞检测类基础上进行效率优化后的产品,请参考:http://bbs.9ria.com/viewthread.p ... p%3Bfilter%3Ddigest
![](http://bbs.9ria.com/images/attachicons/pdf.gif)