C# Class BEPUphysics.CollisionShapes.EntityShape

Superclass of all collision shapes that are used by Entities.
Inheritance: BEPUphysics.CollisionShapes.CollisionShape
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
ComputeCenter ( ) : Vector3

Computes the center of the shape. This can be considered its center of mass.

ComputeCenter ( float &volume ) : Vector3

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.

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. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.

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.

Method Details

ComputeCenter() public method

Computes the center of the shape. This can be considered its center of mass.
public ComputeCenter ( ) : Vector3
return Vector3

ComputeCenter() public method

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.
public ComputeCenter ( float &volume ) : Vector3
volume float Volume of the shape.
return Vector3

ComputeDistributionInformation() public abstract method

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

ComputeVolume() public method

Computes the volume of the shape.
public ComputeVolume ( ) : float
return float

ComputeVolumeDistribution() public method

Computes the volume distribution of the shape. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.
public ComputeVolumeDistribution ( ) : Matrix3x3
return BEPUutilities.Matrix3x3

ComputeVolumeDistribution() public method

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.
return BEPUutilities.Matrix3x3

GetBoundingBox() public abstract method

Computes a bounding box for the shape given the specified transform.
public abstract 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.
return void

GetCollidableInstance() public abstract method

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