C# Класс BEPUphysics.CollisionShapes.ConvexShapes.WrappedShape

Shape that wraps other convex shapes in a convex hull. One way to think of it is to collect a bunch of items and wrap shrinkwrap around them. That surface is the shape of the WrappedShape.
Наследование: 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
GetBoundingBox ( RigidTransform &shapeTransform, BEPUutilities.BoundingBox &boundingBox ) : void

Gets the bounding box of the shape given a transform.

GetCollidableInstance ( ) : EntityCollidable

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

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

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

WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape ) : System

Constructs a wrapped shape. A constructor is also available which takes a list of objects rather than just a pair. The shape will be recentered. If the center is needed, use the other constructor.

WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape, System.Vector3 &center ) : System

Constructs a wrapped shape. A constructor is also available which takes a list of objects rather than just a pair. The shape will be recentered.

WrappedShape ( IList shapeEntries ) : System

Constructs a wrapped shape. The shape will be recentered; if the center is needed, use the other constructor.

WrappedShape ( IList shapeEntries, System.Vector3 &center ) : System

Constructs a wrapped shape. The shape will be recentered.

Приватные методы

Метод Описание
Recenter ( System.Vector3 &center ) : void
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() публичный Метод

public ComputeMinimumRadius ( ) : float
Результат float

GetBoundingBox() публичный Метод

Gets the bounding box of the shape given a transform.
public GetBoundingBox ( RigidTransform &shapeTransform, BEPUutilities.BoundingBox &boundingBox ) : void
shapeTransform BEPUutilities.RigidTransform Transform to use.
boundingBox BEPUutilities.BoundingBox Bounding box of the transformed shape.
Результат void

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 ( System.Vector3 &direction, System.Vector3 &extremePoint ) : void
direction System.Vector3 Direction to find the extreme point in.
extremePoint System.Vector3 Extreme point on the shape.
Результат void

WrappedShape() публичный Метод

Constructs a wrapped shape. A constructor is also available which takes a list of objects rather than just a pair. The shape will be recentered. If the center is needed, use the other constructor.
public WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape ) : System
firstShape ConvexShapeEntry First shape in the wrapped shape.
secondShape ConvexShapeEntry Second shape in the wrapped shape.
Результат System

WrappedShape() публичный Метод

Constructs a wrapped shape. A constructor is also available which takes a list of objects rather than just a pair. The shape will be recentered.
public WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape, System.Vector3 &center ) : System
firstShape ConvexShapeEntry First shape in the wrapped shape.
secondShape ConvexShapeEntry Second shape in the wrapped shape.
center System.Vector3 Center of the shape before recentering..
Результат System

WrappedShape() публичный Метод

Constructs a wrapped shape. The shape will be recentered; if the center is needed, use the other constructor.
Thrown when the shape list is empty.
public WrappedShape ( IList shapeEntries ) : System
shapeEntries IList Shape entries used to construct the shape.
Результат System

WrappedShape() публичный Метод

Constructs a wrapped shape. The shape will be recentered.
Thrown when the shape list is empty.
public WrappedShape ( IList shapeEntries, System.Vector3 &center ) : System
shapeEntries IList Shape entries used to construct the shape.
center System.Vector3 Center of the shape before recentering.
Результат System