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
파일 보기 프로젝트 열기: 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
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