I don't know why OnCollisionEnter only happens in certain situations

Hello, I’m using ml agent to study multi agent cooperative combat in marine combat simulator.
During the research, I had a question about OnCollisionEnter

It’s about shooting down an enemy ship by making a missile object from the ship.
At this time, the missile works properly using Unity Recorder or during ml agent learning, but frequently passes through the enemy ship when played directly by pressing the Start button on the Unity screen.

I’m not sure why this is happening. I’d appreciate your help

Fast moving projectiles? Try continuous collision detection.

2 Likes

I solved it! thank you