public static GetContribution ( |
||
shape | Shape to use to compute a contribution. | |
transform | Transform of the shape. | |
center | System.Vector3 | Center to use when computing the distribution. |
weight | float | Weighting to apply to the contribution. |
contribution | Volume distribution of the contribution. | |
return | void |
public static void GetContribution(EntityShape shape, ref RigidTransform transform, ref Vector3 center, float weight, out Matrix3x3 contribution)
{
contribution = shape.ComputeVolumeDistribution();
TransformContribution(ref transform, ref center, ref contribution, weight, out contribution);
//return TransformContribution(ref transform, ref center, ref contribution, weight);
}