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
Показать файл Открыть проект

Открытые методы

Метод Описание
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