by xeonmc · 2y ago · 0 comments
If you can brute-force raycasts without paying the computational burden then collision is an embarrassingly parallel problem.
On the other hand, calculating collision on a computer is akin to a blind man feeling his way through a scene carefully checking against every object.
The blind man has to simulate his own raytracing with his hands, unless he can perform echolocation which once again is basically lower-resolution raytracing.
It does make me wonder though whether newer generation GPU focused on raytracing could finally bring hardware acceleration to collision?
Of course you lose some properties of the object and it's on a one frame delay. There's the added complexity of collision response, working in 3-dimensions, etc. But, to the point of just "eyeballing" collision, we can actually parallelize it!
Reading a texture from the GPU can take more than one frame.
Physx has collision detection.