C# Class 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.
Inheritance: ConvexShape
Mostrar archivo 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

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.

Private Methods

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

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

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 ( Vector3 &direction, Vector3 &extremePoint ) : void
direction Vector3 Direction to find the extreme point in.
extremePoint Vector3 Extreme point on the shape.
return void

MinkowskiSumShape() public method

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

MinkowskiSumShape() public method

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

MinkowskiSumShape() public method

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

MinkowskiSumShape() public method

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