- Home /
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.
Answer by Berenger · Feb 22, 2012 at 10:36 PM
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.
i solved it by reduce the speed of the bullet .. thanks man !
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Bullet Not Moving 1 Answer
Bullet does not move forward 1 Answer
Prevent Bullets from going through objects/ No raycast 3 Answers
I can't shoot up or down. HELP! 1 Answer