When Rigidbody falls...
Hi, everyone! I believe that this topic have been discussed and explained for a million times, but still. Let's say I have a cube in a scene that I want to put on a simple plane.
As you can see from picture, this cube have all the basic Transform set (the Y axis is inly set to a half of the object's Y scale so it won't fall through the groung). This cube will also have a Rigidbody component. Now, when I press Play button, the Rigidbody, I assume, starts falling a bit and here's what happens:
I know that probably such small deviation will not affect the game, when it's only one cube on a plane and nothing to worry about. But what if I want to put 15 or more cubes on one another? And also want physics having effect on all of them (so I can't switch "Is kinematic" on). In this case such deviations will cause my "tower" to fall down. Please, can enyone explain me what to do?
Answer by Wolfshadow · Aug 27, 2015 at 12:38 AM
Take your y, set it to the plane y, and then add 1/2 of a unit to cube y.
Answer by Wolfshadow · Aug 27, 2015 at 12:39 AM
Can you see the cube fall, or see the y diminish on the value tab? If not, it is not moving.
Answer by petr_pes · Aug 27, 2015 at 08:52 AM
No, you can't actually see cube moving in any way. It is stays on the same position where it were. Visually. But transform vectors and quaternion (rotation) change a bit (about 1 degree) due to cube's physical interaction with the plane or whatever. When I tried to instantiate objects via script and set Y axis in Position = half of the Y scale, the same thing happened, concerning that rotation value are initially set at (0,0,0,1).
Your answer
Follow this Question
Related Questions
Having problems with touch not working very well. 0 Answers
What to do to prevent the camera from going through colliders with this script 1 Answer
Player passing through walls when in corners 0 Answers
Could I make a cloth physics interact with a cube collider in Unity5? 2 Answers
Sphere movement with attached cube 0 Answers