C# Class BEPUphysics.CollisionShapes.CompoundShape

Shape composed of multiple other shapes.
Inheritance: EntityShape
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
CompoundShape ( IList shapes ) : System

Constructs a compound shape.

CompoundShape ( IList shapes, System.Vector3 &center ) : System

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 childData ) : System.Vector3

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 childData ) : System.Vector3

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 ( ShapeDistributionInformation &shapeInfo ) : void

Computes a variety of shape information all at once.

ComputeVolume ( ) : float

Computes the volume of the shape.

ComputeVolumeDistribution ( ) : Matrix3x3

Computes the volume distribution of the shape.

ComputeVolumeDistribution ( IList entries, System.Vector3 &center ) : Matrix3x3

Computes the volume distribution and center of the shape.

ComputeVolumeDistribution ( float &volume ) : Matrix3x3

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 ( RigidTransform &transform, BEPUutilities.BoundingBox &boundingBox ) : void

Computes a bounding box for the shape given the specified transform.

GetCollidableInstance ( ) : EntityCollidable

Retrieves an instance of an EntityCollidable that uses this EntityShape. Mainly used by compound bodies.

GetContribution ( EntityShape shape, RigidTransform &transform, System.Vector3 &center, float weight, Matrix3x3 &contribution ) : void

Gets the volume distribution contributed by a single shape.

TransformContribution ( RigidTransform &transform, System.Vector3 &center, Matrix3x3 &baseContribution, float weight, Matrix3x3 &contribution ) : void

Modifies a contribution using a transform, position, and weight.

Method Details

CompoundShape() public méthode

Constructs a compound shape.
public CompoundShape ( IList shapes ) : System
shapes IList Shape entries used to create the compound.
Résultat System

CompoundShape() public méthode

Constructs a compound shape.
public CompoundShape ( IList shapes, System.Vector3 &center ) : System
shapes IList Shape entries used to create the compound.
center System.Vector3 Computed center of the compound shape, using the entry weights.
Résultat System

ComputeCenter() public méthode

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.
public ComputeCenter ( ) : System.Vector3
Résultat System.Vector3

ComputeCenter() public static méthode

Computes the center of a compound using its child data. Children are weighted using their volumes for contribution to the center of 'mass.'
public static ComputeCenter ( IList childData ) : System.Vector3
childData IList Child data to use to compute the center.
Résultat System.Vector3

ComputeCenter() public static méthode

Computes the center of a compound using its child data. Children are weighted using their volumes for contribution to the center of 'mass.'
public static ComputeCenter ( IList childData ) : System.Vector3
childData IList Child data to use to compute the center.
Résultat System.Vector3

ComputeCenter() public méthode

Computes the center of the shape and its volume.
public ComputeCenter ( float &volume ) : System.Vector3
volume float Volume of the compound.
Résultat System.Vector3

ComputeChildContributions() public méthode

Computes and returns the volume, volume distribution, and center contributions from each child shape in the compound shape.
public ComputeChildContributions ( ) : BEPUphysics.CollisionShapes.ShapeDistributionInformation[]
Résultat BEPUphysics.CollisionShapes.ShapeDistributionInformation[]

ComputeDistributionInformation() public méthode

Computes a variety of shape information all at once.
public ComputeDistributionInformation ( ShapeDistributionInformation &shapeInfo ) : void
shapeInfo ShapeDistributionInformation Properties of the shape.
Résultat void

ComputeVolume() public méthode

Computes the volume of the shape.
public ComputeVolume ( ) : float
Résultat float

ComputeVolumeDistribution() public méthode

Computes the volume distribution of the shape.
public ComputeVolumeDistribution ( ) : Matrix3x3
Résultat BEPUutilities.Matrix3x3

ComputeVolumeDistribution() public static méthode

Computes the volume distribution and center of the shape.
public static ComputeVolumeDistribution ( IList entries, System.Vector3 &center ) : Matrix3x3
entries IList Mass-weighted entries of the compound.
center System.Vector3 Center of the compound.
Résultat BEPUutilities.Matrix3x3

ComputeVolumeDistribution() public méthode

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.
public ComputeVolumeDistribution ( float &volume ) : Matrix3x3
volume float Volume of the shape.
Résultat BEPUutilities.Matrix3x3

GetBoundingBox() public méthode

Computes a bounding box for the shape given the specified transform.
public GetBoundingBox ( RigidTransform &transform, BEPUutilities.BoundingBox &boundingBox ) : void
transform BEPUutilities.RigidTransform Transform to apply to the shape to compute the bounding box.
boundingBox BEPUutilities.BoundingBox Bounding box for the shape given the transform.
Résultat void

GetCollidableInstance() public méthode

Retrieves an instance of an EntityCollidable that uses this EntityShape. Mainly used by compound bodies.
public GetCollidableInstance ( ) : EntityCollidable
Résultat BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable

GetContribution() public static méthode

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.
Résultat void

TransformContribution() public static méthode

Modifies a contribution using a transform, position, and weight.
public static TransformContribution ( RigidTransform &transform, System.Vector3 &center, Matrix3x3 &baseContribution, float weight, Matrix3x3 &contribution ) : void
transform BEPUutilities.RigidTransform Transform to use to modify the contribution.
center System.Vector3 Center to use to modify the contribution.
baseContribution BEPUutilities.Matrix3x3 Original unmodified contribution.
weight float Weight of the contribution.
contribution BEPUutilities.Matrix3x3 Transformed contribution.
Résultat void