OnTriggerEnter() doesnt work because of fast moving GameObjects

Hallo!
I am looking for an answer to a verry specific problem
I am moving an Game Object(Cube) very fast. While it is moving, I want to change its direction at a trigger point. If I set the Trigger on the box collider, i flies through. If I dont set the trigger, it just stops.

Does anybody have an answer to this problem?

Attach a rigidbody with detection mode set to continuous (this should prevent from clipping due to high velocity).

Also, note that if you need collision, setting collider to IsTrigger would prevent physics collision detection.
If you want to actually receive callbacks and have collisions - use OnCollisionX.

Or, just use physics queries to detect collision, e.g. raycasts.

P.s. this is not a support subforum. Questions regarding Physics or Scripting should go to specific subforums.

1 Like

Thanks for the quick answer, Ill post this in the physics forum