- Home /
Rigidbody in a cube
I want to shoot the cube and then explodes, the script I'm using need a rigidbody, but when it is attached to the cube, the cube disappears and I can not shoot or see the explosion.
Answer by aldonaletto · Nov 27, 2012 at 04:00 AM
Maybe the cube is intersecting some other object: when a rigidbody penetrates a collider, the rigibody is ejected and may go out of the camera view. Another possibility is the gravity pulling down the rigidbody - make sure it's over some stable surface.
But it is supposed that the box need a collider and a rigidbody, anyway with or without the rigid.. falls, it is stay only when I enable Is $$anonymous$$inematic but nothing happens.
Yes, a kinematic rigidbody ignores physics - it doesn't fall, but doesn't react to collisions either. What's happening? The cube falls through the floor?
Answer by DeveshPandey · Nov 27, 2012 at 06:32 AM
Add the rigidbody to the cube and uncheck the "Use Gravity" in inspector.
Add the rigidbody to the cube and uncheck the "Use Gravity" in inspector. as well as check that the cube's bottom surface is straight if it is angular then make the rotation to zero and enjoy
Your answer
Follow this Question
Related Questions
rigidbody, kinematic beginner woe 3 Answers
Space Shooter tutorial shot velocity issues 0 Answers
AddExplosionForce doing nothing? 1 Answer
Rotation problem with spawning bullet 2 Answers