C# Class 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.
Inheritance: ConvexShape
Datei anzeigen Open project: Indiefreaks/igf

Public Methods

Method Description
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.

Private Methods

Method Description
Recenter ( System.Vector3 &center ) : void
ShapesChanged ( ObservableList list ) : void

Method Details

ComputeMaximumRadius() public method

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
return float

ComputeMinimumRadius() public method

public ComputeMinimumRadius ( ) : float
return float

GetBoundingBox() public method

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.
return void

GetCollidableInstance() public method

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

GetLocalExtremePointWithoutMargin() public method

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.
return void

WrappedShape() public method

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.
return System

WrappedShape() public method

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..
return System

WrappedShape() public method

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.
return System

WrappedShape() public method

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.
return System