How do i create a script that replaces the barrel with an explosion, when i hit the barrel with a bullet that has a rigidbody and a Capsule Collider atttached?
Sorry for long sentence and bad english…
How do i create a script that replaces the barrel with an explosion, when i hit the barrel with a bullet that has a rigidbody and a Capsule Collider atttached?
Sorry for long sentence and bad english…
The Collider.OnCollisionEnter has a grenade example, and is pretty much what you are looking for.