Shoot the bottle

i want to shoot an object “cylinder” and when the bullet hit the bottle i want it to move from its place like a real bottle …

what i made is that the bullet go through it.

1 Answer

1

The problem with bullet is that they are really super fast. They travel a lot of time their size every frame, so the physic engine never register the collision. You try changing collision detection of your bullet’s rigidbody to continuous.

But I’d rather cast a ray before instantiating the bullet and apply force to whatever is touched by the ray with Rigidbody.AddForceAtPosition. The limitation of that technique is, let’s say you shoot just before a train pass in front of you. The ray won’t hit the train in that case.