public static ComputeVolumeDistribution ( |
||
shape | 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 |
/// <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)); }