- Home /
Rigidbody collision
I have added a wall of cubes, I have added a rigidbody component to them so that I can shoot them and they will fall. But the bullet, wich is another cube, sometimes passes the wall without doing any damage. I look like it only makes the cubes move if the bullet hits the center of the cube. How can I fix this?
You can try the game for yourself and see the problem http://www.kongregate.com/games/xKripz/cube-murder
Thank you.
Have you tried to adjust your collision detection settings on your Rigidbody component to continuous dynamic? Performance heavy, but it may help. You could also try to slow down the speed (lower the force) or enlarge the collider of your projectile.
$$anonymous$$y computer can't run continuous dynamic. I slowed the bullet down and it keeps happening.
Why not? Have you tried adjusting it to only continuous? Did you try enlarging the collider?
I've enlarged my bullet and have adujusted it to continuous and it happens less times, but it keeps happening. I need other sullution, I don't want the bullet to be that big.
Answer by Sandr0G · Jul 24, 2012 at 02:58 PM
I fixed the problem. The box collider was 0,1,1.
Answer by C$E Luffy · Jul 24, 2012 at 12:57 PM
try scaling the colliders in cubes of wall and bullet.
Answer by MihaPro · Jul 24, 2012 at 03:30 PM
You have to set the Collision Detection for RigiBody of bullet to Continuous Dynamic.
Your answer
Follow this Question
Related Questions
Character falls through floor any suggestions? 1 Answer
OnCollisionEnter and rigidbody problem 1 Answer
Why my rigidbody object doesn't go straight? 1 Answer
Object goes through wall. 0 Answers