I've a strange problem.
I need to buid a pile of box that must be exploded by a ball.
But the pile is instable and finish by drop.
I've try a lot of thing but seems not to be efficient.
A simple algo !
Code: Select all
for (int i = 0; i < 5; i++)
{
Box box;
box = new Box(new Vector3(pos.X, i * 3f, pos.Z), 6, 3, 3, 1);
box.Material = new BEPUphysics.Materials.Material(1f, 1f, 0.0f);
Global.BepuSpace.Add(box);
}
thank's