Skip to main content

New answers tagged

0 votes

How to speed up collision detection if there are hundreds of objects?

First, don't use trig to calculate distances between objects / points. If you have two positions A and B, you can get the distance between them as: ...
DMGregory's user avatar
  • 140k
14 votes
Accepted

Why are collision manifold points created inside objects instead of on their surfaces?

When the physics solver has successfully caught the objects at the moment of contact, the point \$m\$ is on the surface, as desired. When the physics solver has not caught the objects at the moment of ...
DMGregory's user avatar
  • 140k
3 votes
Accepted

OnTriggerEnter called without a Rigidbody

As shown in the scripting API docs, CharacterController inherits from Collider, so the controller component itself can generate ...
DMGregory's user avatar
  • 140k
3 votes
Accepted

How do collision meshes work in games like Zelda on the N64?

In addition to James's answer, I wanted to cover multiple N64 games and give actual source code references. At the time I'm writing this, most big N64 titles have been decompiled with source code ...
tigrou's user avatar
  • 3,269

Top 50 recent answers are included