Hi, are there some ways to make simple gravity physics in rhino, without having to use grasshopper.
Yes i know simple and physics don’t look right in the same sentence But by simple i just need some type of gravity. like on a 3D printer you can (drop to build plate). which somewhat mimics gravity.
Hi @Rasmus
Not right of the bat, no. But instead of asking for gravity, it might be better to explain what you are trying to achieve? Maybe Align or Distribute could suffice?
Also, physics will be coming to Bongo 3, so if you have a Bongo 2 license, you can try that out.
But Grashopper really isn’t that dangerous - you just need to stand on the soulder of giants in the beginning; in this case it’s the shoulders of Daniel Piker, the brain behind it all. On his Github there’s an example called rigid_mesh_collision.gh where you can quite easily plug in your own geomtry.
And there’s also Blender, but that takes a wee bit more of learning - but there are lots and lots of great tutorials out there on physics.
HTH, Jakob
Edit: Sorry - the example is called rigid_mesh_collision.gh, NOT rigid_body_collision.gh. Text edited!
As Jakob says, Grasshopper doesn’t need to be too tricky - this could also be somewhere to use the GHplayer, so a Grasshopper definition becomes a Rhino command and you never need to see the GH interface.
Your mention of drop to build plate though makes me think perhaps it’s something even simpler you are after which could be done without any Grasshopper or plugins.
If you just want to move an object down so its lowest point touches the ground plane, you can use BoundingBox to get the lowest point, then move the object from a lower corner of this to the XY plane.
Also, as mentioned, here’s a version using GHplayer - you don’t need to edit anything in Grasshopper - just type GrasshopperPlayer in the Rhino command line, then select the drop.gh file drop.gh (14.6 KB)
If you’re on Windows you can take a look at Bongo 3. The user interface may be a bit more what you’re used to than with Grasshopper. Here’s a small example inspired by what @DanielPiker showed with the Grasshopper player.
And with a bit more work you can also build more complex assemblies with springs and constraints.
@Normand Thanks for the link. I can’t get the rigid_mesh_collision.gh to work. the script won’t run for some reason.
Overall I didn’t know that it was that easy to run GH premade scripts (GrasshopperPlayer).
My knowledge of GH is pretty limited. I know what it can do! and that’s properly also why i never had the “courage” to start because it seems so complex.
@Daniel Piker. Thanks for the script that was actually what I was talking about. Is it possible to make it work so it can interact with other objects and not only the Z-plane. eg. if you have multiple of the “key” shape you wanna drop on to each other. I don’t need to drop them all at once, if that makes it harder. I’m fine doing one at a time. but it would be nice if they could interact with each other.
Here’s one where the objects collide with each other drop_collide.gh (11.0 KB)
Don’t expect too much from the collision detection here though. It isn’t very fast and will likely fail on some geometry. For a simple scatter of a few fairly simple non-penetrating objects onto the ground plane though it might be enough.
Hi Daniel, I can’t get the new script to work. after running it from GrasshopperPlayer it wont let me select anything.
If I try with the previous drop.gh I can select the opjetches without problem.
Ah, sorry I think maybe I disconnected something before saving it.
How about with this? drop_collide2.gh (16.7 KB)
It should be possible to end the command at any point by right clicking.
Sorry for the 3 year old bump, but is it possible for one of these scripts to allow objects to collide with a separate, non-movable object instead of the ground plane? Like dropping candy into an elevated bowl… or in my current case, having product sit on a gravity feeder that’s attached to a solid upright? I’ve tried all the above scripts but they aren’t quite what I’m looking for.