Using Physics to place items.

Using Physics to place items.

Hi I am wondering if theres a way to achieve the following. I have a scene (pictured) Where the undulating mesh will have a bottles texture on it. Between the bottle stacks and this mesh is a space, and I am hoping theres a way I can have individual bottles fall in to this space. Like using physics.

Is that at all possible? How would I go about doing this?

Thanks
Aaron
 

Attachments

  • Screen shot 2014-06-25 at 12.24.02 PM.jpg
    Screen shot 2014-06-25 at 12.24.02 PM.jpg
    140.7 KB · Views: 272
This is pretty much the jelly bean example in my book.

1) You put static rigidbody tags on the ground and on (or around) the stack of bottles. You'll want the terrain to be concave.
2) Create a particle mesh with the bottles you want to drop, then "collapse" it and put a rigidbody tag on the mesh (not the particle).
3) Press play.
 

Attachments

  • capsules on terrain.zip
    40.9 KB · Views: 231
  • capsules on a plane.jpg
    capsules on a plane.jpg
    256 KB · Views: 262
  • Screen Shot 2014-06-24 at 7.41.01 PM.png
    Screen Shot 2014-06-24 at 7.41.01 PM.png
    21.2 KB · Views: 259
Awesome, thanks for that. ZooHead I'm just after a static scene with bottles piled up. Its the convenience of mass placement I suppose I'm looking at here.

Pod, My mesh is convex and ultimately for the purposes of this scene would need to be.. However with the convex mesh the bottles roll in this position, above the mesh. Is that *because* it is convex do you know?

I'll nut it out but id be interested to hear what you suggest for rolling down a slope like this. I guess I'm not clear on the need for concavity? In the early Unity days things were a bit hit and miss with physics and concave/vex meshes but I never really understood why.

Cheers
 

Attachments

  • Screen shot 2014-06-25 at 2.06.47 PM.jpg
    Screen shot 2014-06-25 at 2.06.47 PM.jpg
    44.8 KB · Views: 255
I'm not sure where your reply went Frank but thanks that was spot on and I attained the effect I was looking for.

Cheers!
 

Attachments

  • Screen shot 2014-06-26 at 12.52.33 PM.jpg
    Screen shot 2014-06-26 at 12.52.33 PM.jpg
    142.7 KB · Views: 224
Hi Aaron.
Not sure either. Wanted to add another pic and deleted for a clean reply and got lost. Find everything answered in the meantime except for the Margin: set-up. Glad it worked out.

Cheers
Frank
 

Attachments

  • FlaschenLandschaft.jpg
    FlaschenLandschaft.jpg
    84.1 KB · Views: 217
Back
Top