BEPUphysics.CollisionShapes.CompoundShape.ComputeVolume C# (CSharp) Method

ComputeVolume() public method

Computes the volume of the shape.
public ComputeVolume ( ) : float
return float
        public override float ComputeVolume()
        {
            float volume = 0;
            for (int i = 0; i < shapes.Count; i++)
            {
                volume += shapes.Elements[i].Shape.ComputeVolume();
            }
            return volume;
        }