I just want the bit of code to check all the contact points, and set a variable to true if at least one of those points meets a requirement, and if none of the points are meeting that requirement, to set a variable to false.
Here’s the empty set up I currently have since I don’t even know how to try to do this, since I’m still new to arrays.
function OnCollisionStay(collision : Collision) {
for (var contact : ContactPoint in collision.contacts)
{
//Things go here
}
}
Any help would be greatly appreciated.