C# 클래스 BEPUphysics.CollisionShapes.CompoundShape

Shape composed of multiple other shapes.
상속: EntityShape
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

CompoundShape() 공개 메소드

Constructs a compound shape.
public CompoundShape ( IList shapes ) : System
shapes IList Shape entries used to create the compound.
리턴 System

CompoundShape() 공개 메소드

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.
리턴 System

ComputeCenter() 공개 메소드

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
리턴 System.Vector3

ComputeCenter() 공개 정적인 메소드

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.
리턴 System.Vector3

ComputeCenter() 공개 정적인 메소드

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.
리턴 System.Vector3

ComputeCenter() 공개 메소드

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

ComputeChildContributions() 공개 메소드

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

ComputeDistributionInformation() 공개 메소드

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

ComputeVolume() 공개 메소드

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

ComputeVolumeDistribution() 공개 메소드

Computes the volume distribution of the shape.
public ComputeVolumeDistribution ( ) : Matrix3x3
리턴 BEPUutilities.Matrix3x3

ComputeVolumeDistribution() 공개 정적인 메소드

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.
리턴 BEPUutilities.Matrix3x3

ComputeVolumeDistribution() 공개 메소드

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.
리턴 BEPUutilities.Matrix3x3

GetBoundingBox() 공개 메소드

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.
리턴 void

GetCollidableInstance() 공개 메소드

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

GetContribution() 공개 정적인 메소드

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.
리턴 void

TransformContribution() 공개 정적인 메소드

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.
리턴 void