Method | Description | |
---|---|---|
CompoundShape ( IList |
Constructs a compound shape.
|
|
CompoundShape ( IList |
Constructs a compound shape.
|
|
ComputeCenter ( ) : System.Vector3 |
Computes the center of the shape. This can be considered its center of mass, based on the weightings of entries in the shape. For properly calibrated compound shapes, this will return a zero vector, since the shape recenters itself on construction.
|
|
ComputeCenter ( IList |
Computes the center of a compound using its child data. Children are weighted using their volumes for contribution to the center of 'mass.'
|
|
ComputeCenter ( IList |
Computes the center of a compound using its child data. Children are weighted using their volumes for contribution to the center of 'mass.'
|
|
ComputeCenter ( float &volume ) : System.Vector3 |
Computes the center of the shape and its volume.
|
|
ComputeChildContributions ( ) : BEPUphysics.CollisionShapes.ShapeDistributionInformation[] |
Computes and returns the volume, volume distribution, and center contributions from each child shape in the compound shape.
|
|
ComputeDistributionInformation ( |
Computes a variety of shape information all at once.
|
|
ComputeVolume ( ) : float |
Computes the volume of the shape.
|
|
ComputeVolumeDistribution ( ) : |
Computes the volume distribution of the shape.
|
|
ComputeVolumeDistribution ( IList |
Computes the volume distribution and center of the shape.
|
|
ComputeVolumeDistribution ( float &volume ) : |
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.
|
|
GetBoundingBox ( |
Computes a bounding box for the shape given the specified transform.
|
|
GetCollidableInstance ( ) : |
Retrieves an instance of an EntityCollidable that uses this EntityShape. Mainly used by compound bodies.
|
|
GetContribution ( |
Gets the volume distribution contributed by a single shape.
|
|
TransformContribution ( |
Modifies a contribution using a transform, position, and weight.
|
public CompoundShape ( IList |
||
shapes | IList |
Shape entries used to create the compound. |
return | System |
public CompoundShape ( IList |
||
shapes | IList |
Shape entries used to create the compound. |
center | System.Vector3 | Computed center of the compound shape, using the entry weights. |
return | System |
public static ComputeCenter ( IList |
||
childData | IList |
Child data to use to compute the center. |
return | System.Vector3 |
public static ComputeCenter ( IList |
||
childData | IList |
Child data to use to compute the center. |
return | System.Vector3 |
public ComputeCenter ( float &volume ) : System.Vector3 | ||
volume | float | Volume of the compound. |
return | System.Vector3 |
public ComputeChildContributions ( ) : BEPUphysics.CollisionShapes.ShapeDistributionInformation[] | ||
return | BEPUphysics.CollisionShapes.ShapeDistributionInformation[] |
public ComputeDistributionInformation ( |
||
shapeInfo | Properties of the shape. | |
return | void |
public ComputeVolumeDistribution ( ) : |
||
return |
public static ComputeVolumeDistribution ( IList |
||
entries | IList |
Mass-weighted entries of the compound. |
center | System.Vector3 | Center of the compound. |
return |
public ComputeVolumeDistribution ( float &volume ) : |
||
volume | float | Volume of the shape. |
return |
public GetBoundingBox ( |
||
transform | Transform to apply to the shape to compute the bounding box. | |
boundingBox | BEPUutilities.BoundingBox | Bounding box for the shape given the transform. |
return | void |
public GetCollidableInstance ( ) : |
||
return |
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 TransformContribution ( |
||
transform | Transform to use to modify the contribution. | |
center | System.Vector3 | Center to use to modify the contribution. |
baseContribution | Original unmodified contribution. | |
weight | float | Weight of the contribution. |
contribution | Transformed contribution. | |
return | void |