I'm trying several physics engine for a proof of concept, I am trying to simulate coin stacking.
I tried several scales, weights, gravity settings, but I can't get as close to reality as I would like. I have a few problems :
- The coins seem to sink into each other when other coins are piled onto them (even with the line physicsObject.PositionUpdateMode = PositionUpdateMode.Continuous;)
- The whole structure seems a bit "wobbly" if that makes sense
Here is a gif to show what I am talking about :
https://gfycat.com/RecklessPalatableAyeaye
Here is how I am creating the coins :
Code: Select all
// Physics
physicsObject = new Cylinder(
new BEPUutilities.Vector3(position.X, position.Y, position.Z),
size.Y, size.X / 2, 10);
physicsObject.Material.Bounciness = 0;
physicsObject.PositionUpdateMode = PositionUpdateMode.Continuous;
simulation.Add(physicsObject);
Thanks a lot!