- Home /
Bullet Sometimes Go Throw Object
Hello i got problem that sometimes bullet go throw object and do the hit explosion on the other wall
Here is Short Script :
Rigidbody clone;
clone = Instantiate(CurrentWeapon.Bullet, fireFrom + new Vector3(Random.Range(-0.10f,0.10f),0,0), direction) as Rigidbody;
clone.velocity = transform.TransformDirection( Vector3.forward * CurrentWeapon.BulletSpeed);
here is some Bullet Prefab Component
1- Dont Go Throw Things from WikiUnity :
Layer Mask : Everything
Skin Width : 1
///////////////////////////////
2- RigiedBody :
Mass : 1
Us Gravity : False
Interpolate : Interpolate
Collision Detection : Continuous Dynamic
/////////////////////////////////
3- Box Collider
Is Trigger = True
Size X,Y,Z = 2.5
And 4 - Light ,5- Trail Renderer
and From Edit > Project > Physics
Min Penetration For Penetration = 0.001
Solver Iteration Count : 50
is There Something Wrong With My Settings?
How i can stop make the bullet go throw Things
btw my bullet speed not more that 25
Could you please format your question better? It's kidna chaotic, because you use code formatting for text, that isn't code.
Yea, not going to bother reading a bad formatted question
I agree, @D3m0nE you won't get an answer to this unless you properly format your question. We aren't given anything for helping people on here, and if you don't even give us the luxury of a nice question, why should we even bother answering?
Your answer
Follow this Question
Related Questions
Bullet goes through object 2 Answers
My bullet wont move forward 1 Answer
rotation problem 1 Answer
Creating a teleportation gun 1 Answer
How to disable flying ? 1 Answer