C# 클래스 BEPUphysics.CollisionShapes.ConvexShapes.TransformableShape

Shape which can take any convex shape and use a linear transform to shear, scale, and rotate it.
상속: ConvexShape
파일 보기 프로젝트 열기: Indiefreaks/igf

보호된 프로퍼티들

프로퍼티 타입 설명
shape ConvexShape
transform BEPUutilities.Matrix3x3

공개 메소드들

메소드 설명
ComputeCenter ( ) : System.Vector3

Computes the center of the shape. This can be considered its center of mass.

ComputeCenter ( float &volume ) : System.Vector3

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.

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 ( System.Vector3 &direction, System.Vector3 &extremePoint ) : void

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

TransformableShape ( ConvexShape shape, Matrix3x3 transform ) : System

Constructs a new transformable shape.

메소드 상세

ComputeCenter() 공개 메소드

Computes the center of the shape. This can be considered its center of mass.
public ComputeCenter ( ) : System.Vector3
리턴 System.Vector3

ComputeCenter() 공개 메소드

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.
public ComputeCenter ( float &volume ) : System.Vector3
volume float Volume of the shape.
리턴 System.Vector3

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 ( 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

TransformableShape() 공개 메소드

Constructs a new transformable shape.
public TransformableShape ( ConvexShape shape, Matrix3x3 transform ) : System
shape ConvexShape Base shape to transform.
transform BEPUutilities.Matrix3x3 Transform to use.
리턴 System

프로퍼티 상세

shape 보호되어 있는 프로퍼티

protected ConvexShape,BEPUphysics.CollisionShapes.ConvexShapes shape
리턴 ConvexShape

transform 보호되어 있는 프로퍼티

protected Matrix3x3,BEPUutilities transform
리턴 BEPUutilities.Matrix3x3