How would I use compute shader with physics?


I’ve been trying to make a simulation game using particles but my main problem is how to make them collide with each other. About everywhere I’ve looked had something talking about compute shaders and using them to do this. I have no knowledge of compute shaders at all and never even used a shader. If someone could please link me to a tutorial going over how to use compute shaders and not just what they can do like I saw with other ones.

Thank you!

Here is a helpful compute shader rigid body simulation with the code and everything (even more - rendering with compute shaders) - GitHub - jknightdoeswork/gpu-physics-unity: Through this configuration, no per voxel data is transferred between the GPU and the CPU at runtime.