BEPUphysics.CollisionShapes.EntityShape.ComputeVolume C# (CSharp) 메소드

ComputeVolume() 공개 메소드

Computes the volume of the shape.
public ComputeVolume ( ) : float
리턴 float
        public virtual float ComputeVolume()
        {
            ShapeDistributionInformation shapeInfo;
            ComputeDistributionInformation(out shapeInfo);
            return shapeInfo.Volume;
        }
        /// <summary>

Usage Example

예제 #1
0
 ///<summary>
 /// Constructs a new compound shape entry using the volume of the shape as a weight.
 ///</summary>
 ///<param name="shape">Shape to use.</param>
 ///<param name="orientation">Local orientation of the shape.</param>
 public CompoundShapeEntry(EntityShape shape, Quaternion orientation)
 {
     orientation.Validate();
     LocalTransform = new RigidTransform(orientation);
     Shape          = shape;
     Weight         = shape.ComputeVolume();
 }
All Usage Examples Of BEPUphysics.CollisionShapes.EntityShape::ComputeVolume