Using Physics to Place Gameobjects

Q: I would like to place a number of prefab objects in a scene, play the scene, and have the physics engine resolve their final resting position on a plane. Is there a script that will retain each objects transform after I press stop. I like to use physics to randomly position objects, ie like ice cubes in a glass or matchsticks in pile.

Any help would be appreciated.

There are some ways to do this. You can either remove the rigidbodies of the objects or make them kinematic, or simply stop them by decreasing their velocities to zero.

Hello ,
You can do this by make gameobjects static or make them kinematic.
Looking forward to your reply.
Thanks