Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現時点では、正方形のスプライトの角のいずれかが交差するかどうかを見て、2 つのオブジェクト間の衝突を確認します。
ピクセルが交差しているかどうか、およびそれらがターゲット上の透明なピクセルではないかどうかを確認するつもりでした。ただし、これは木の後ろを歩かせるには機能しません。
代わりに、チェックに使用できる .png 内に保存されている可能性があるマスクを使用する簡単な方法があるかどうか疑問に思います。何か案は?