Collision not detecting, out of ideas

Hey hey … my collision is not working and i cant figure out where the mistake is. Its not working with my prefab, but that’s prone to a multitude of errors, so i made one Testcube and some other Testcubes as objects to collide with.
The animation-track is as simple as it gets, no fiddling around, just fly straight through the other cubes and see if it prints to the console.

Testcubes and Collidercubes have BoxColliders, Testcube has Ricks Code Copy-Pasted into the CollisionHandler. Script attached, no “isTrigger” on the Colliding cubes … am i out of luck? ):

Picture of the workspace

1 Like

Hi Mishu,

At least one of the colliders needs a Rigidbody. Otherwise, it might be that collisions will not get detected. A Rigidbody tells the physics simulation that this collider is able to move.

2 Likes

Oh heck … i feel stupid now. It works flawlessly with the RB attached :laughing:
Thank you!!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms