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

GetContribution() public static method

Gets the volume distribution contributed by a single shape.
public static GetContribution ( EntityShape shape, RigidTransform &transform, System.Vector3 &center, float weight, Matrix3x3 &contribution ) : void
shape EntityShape Shape to use to compute a contribution.
transform BEPUutilities.RigidTransform Transform of the shape.
center System.Vector3 Center to use when computing the distribution.
weight float Weighting to apply to the contribution.
contribution BEPUutilities.Matrix3x3 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);
        }