天天寫程式
html5,javascript,css3,php,objectiveC,actionscript,node
2007/6/21
碰撞測試
A.hitTest(B);
測試A是否碰撞到B。
其中B與A的關系要弄清楚,如_root.B的注澺
ex:
area.onEnterFrame=function()
{
if(this.hitTest(this._parent.cube))
trace("hit");
}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言