Hello, I have a problem, I am working on a game with battles and swords, but, when the sword hits the enemy’s head, the collision between the sword collider and the head collider take place earlier. And I have some FX, but, when I am trying to hit the enemy in the head with the sword, the FX are playing from a distance, 50 cm. So it is not realistic, I made some tests and I find out that the collision detection are not realistic, I modified it from the settings, physics, I put the Default Contact Offset to 0.0001 value, the minimum, but it is still not realistic, the collision take place earlier. Please help me, I don’t now what to do. Thank you.
To open the Physics Debug window in the Unity Editor, go to Window > Analysis > Physics Debugger.
This will let you see what is happening with your colliders properly. Pause the game during the attack or use Debug.Break() and step through each frame to discover the cause.
This doesn’t do anything even remotely like solving your problem. You did not read the manual for it either. If you did, you would definitely know why it would not.