Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

2 Rigidbodies at rest collision detection issue

$
0
0
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

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>