So here's my issue
I need to detect when 2 or possibly more rigidbodies are touching so when I click on them they destroy based on their IDs
My code works just fine if I click on them during the time of interaction before they come to a rest, but once they stop moving and enter a rest state the contact is no longer being recognized.
Here's the code and mind that I have tried changing it to a OnCollisionStay with no avail.
function OnCollisionEnter(col:Collision) {
myHit = new Array();
for (var i=0;i
↧