ComputeVolumeDistribution() public static method

Computes the volume and volume distribution of a shape based on a given center.
public static ComputeVolumeDistribution ( ConvexShape shape, Microsoft.Xna.Framework.Vector3 &center, float &volume ) : Matrix3x3
shape ConvexShape Shape to compute the volume information of.
center Microsoft.Xna.Framework.Vector3 Location to use as the center of the shape when computing the volume distribution.
volume float Volume of the shape.
return BEPUutilities.Matrix3x3
Beispiel #1
0
 /// <summary>
 /// Computes the volume distribution of the shape as well as its volume.
 /// The volume distribution can be used to compute inertia tensors when
 /// paired with mass and other tuning factors.
 /// </summary>
 /// <param name="volume">Volume of the shape.</param>
 /// <returns>Volume distribution of the shape.</returns>
 public override Matrix3X3 ComputeVolumeDistribution(out float volume)
 {
     return(InertiaHelper.ComputeVolumeDistribution(this, out volume));
 }