C# 클래스 BEPUphysics.CollisionShapes.ConvexShapes.MinkowskiSumShape

A shape composed of the pointwise summation of all points in child shapes. For example, the minkowski sum of two spheres would be a sphere with the radius of both spheres combined. The minkowski sum of a box and a sphere would be a rounded box.
상속: ConvexShape
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
ComputeMaximumRadius ( ) : float

Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.

ComputeMinimumRadius ( ) : float

Computes the minimum radius of the shape. This is often smaller than the actual minimum radius; it is simply an approximation that avoids overestimating.

GetCollidableInstance ( ) : EntityCollidable

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

GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void

Gets the extreme point of the shape in local space in a given direction.

MinkowskiSumShape ( IList shapeEntries ) : System

Constructs a minkowski sum shape. The sum will be recentered on its local origin. The computed center is outputted by the other constructor.

MinkowskiSumShape ( IList shapeEntries, Vector3 &center ) : System

Constructs a minkowski sum shape. The sum will be recentered on its local origin.

MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape ) : System

Constructs a minkowski sum shape. A minkowski sum can be created from more than two objects; use the other constructors. The sum will be recentered on its local origin. The computed center is outputted by the other constructor.

MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape, Vector3 &center ) : System

Constructs a minkowski sum shape. A minkowski sum can be created from more than two objects; use the other constructors. The sum will be recentered on its local origin.

비공개 메소드들

메소드 설명
ShapesChanged ( ObservableList list ) : void

메소드 상세

ComputeMaximumRadius() 공개 메소드

Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.
public ComputeMaximumRadius ( ) : float
리턴 float

ComputeMinimumRadius() 공개 메소드

Computes the minimum radius of the shape. This is often smaller than the actual minimum radius; it is simply an approximation that avoids overestimating.
public ComputeMinimumRadius ( ) : float
리턴 float

GetCollidableInstance() 공개 메소드

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

GetLocalExtremePointWithoutMargin() 공개 메소드

Gets the extreme point of the shape in local space in a given direction.
public GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void
direction Vector3 Direction to find the extreme point in.
extremePoint Vector3 Extreme point on the shape.
리턴 void

MinkowskiSumShape() 공개 메소드

Constructs a minkowski sum shape. The sum will be recentered on its local origin. The computed center is outputted by the other constructor.
public MinkowskiSumShape ( IList shapeEntries ) : System
shapeEntries IList Entries composing the minkowski sum.
리턴 System

MinkowskiSumShape() 공개 메소드

Constructs a minkowski sum shape. The sum will be recentered on its local origin.
public MinkowskiSumShape ( IList shapeEntries, Vector3 &center ) : System
shapeEntries IList Entries composing the minkowski sum.
center Vector3 Center of the minkowski sum computed pre-recentering.
리턴 System

MinkowskiSumShape() 공개 메소드

Constructs a minkowski sum shape. A minkowski sum can be created from more than two objects; use the other constructors. The sum will be recentered on its local origin. The computed center is outputted by the other constructor.
public MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape ) : System
firstShape OrientedConvexShapeEntry First entry in the sum.
secondShape OrientedConvexShapeEntry Second entry in the sum.
리턴 System

MinkowskiSumShape() 공개 메소드

Constructs a minkowski sum shape. A minkowski sum can be created from more than two objects; use the other constructors. The sum will be recentered on its local origin.
public MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape, Vector3 &center ) : System
firstShape OrientedConvexShapeEntry First entry in the sum.
secondShape OrientedConvexShapeEntry Second entry in the sum.
center Vector3 Center of the minkowski sum computed pre-recentering.
리턴 System