0
\$\begingroup\$

I m learning unity, I placed objects on a scene, camera is looking at them and displays them fine.

but in 3d, I can see they are one behind another, so when i hit play button, they just fall!

Pic: rrr

is there any specific button like "align on one level" in unity?

\$\endgroup\$
2
\$\begingroup\$

Probably you have attached Rigidbody or Rigidbody2D to them. Just mark as Kinematic in Rigidbody's configuration in Inspector. By attaching Rigidbody or Rigidbody2D your body will behave like real world object following all the physics rules. In this case it is falling down probably due to gravity. By marking as Kinematic it you defined your behaviour as not to receive any force or gravity but still a physical body.

\$\endgroup\$
  • \$\begingroup\$ yes, I did attach some rigidbody \$\endgroup\$ – ERJAN Dec 25 '15 at 8:22
  • \$\begingroup\$ but I also put box collider to ground - the thing is, they stand behind another in 3d, i m making 2d game \$\endgroup\$ – ERJAN Dec 25 '15 at 8:23
  • \$\begingroup\$ mark check on Is Kinematic \$\endgroup\$ – Hamza Hasan Dec 25 '15 at 8:23
  • \$\begingroup\$ So you want to say objects should fall but on ground and the objects are falling on the ground but out of screen? right? \$\endgroup\$ – Hamza Hasan Dec 25 '15 at 8:24
  • \$\begingroup\$ no, they fall absolutely down , even though now, they are on one z-axis(aka not behind another) \$\endgroup\$ – ERJAN Dec 25 '15 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.