#Getting collisions as list at a specific time
1 messages · Page 1 of 1 (latest)
are they both colliders?
like does the object that is colliding the other object have a Box Collider... and are you using 2D or 3D?
yes both has colliders, it's 3d
ok
i haven't tested it, but I think if you do the following:
int collisions = 0;
void OnCollisionEnter(Collision collision) {
collisions += 1;
}
void OnCollisionExit(Collision other) {
collisions -= 1;
}
then you just check collisions and that would be the answer
hmm
yeah actually I haven't thinked about OnCollisionExit, this solution looks fine
let me try that
did it work? if so, delete the thread...