-
Simulation of a rigid body floating on water. I want to create a situation where the rigid body is allowed to float above the water at a certain velocity until a certain time, and after that time, the rigid body is allowed to drift above the water. Any suggestions would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't get the point. What exactly do you want to do? A dynamics rigid body always swims on top as long as its density is not too high. So rigid body with density of 500 would swim on water with density of 1000. And as a dynamic body you could also give it an initial velocity. |
Beta Was this translation helpful? Give feedback.
-
Ah, okay. Start the simulation where the body is dropped on the fluid surface. Export particle data (bgeo) and rigid bodies (obj). When everything comes to rest, stop the simulation. Take the last exported bgeo and obj file and set up a new scene. The fluid part should look like this:
Add a rigid body using the last obj file and give it an inital velocity or animate it (see example AnimatedBody_2D.json). Hope that helps. |
Beta Was this translation helpful? Give feedback.
Ah, okay. Start the simulation where the body is dropped on the fluid surface. Export particle data (bgeo) and rigid bodies (obj). When everything comes to rest, stop the simulation. Take the last exported bgeo and obj file and set up a new scene.
The fluid part should look like this:
Add a rigid body using the last obj file and give it an inital velocity or animate it (see example AnimatedBody_2D.json).
Hope that helps.