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

Convex shape with width, length, and height.
상속: ConvexShape
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
BoxShape ( float width, float height, float length ) : System

Constructs a new box shape.

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.

ComputeVolume ( ) : float

Computes the volume of the shape.

ComputeVolumeDistribution ( float &volume ) : Matrix3x3

Computes the volume distribution of the shape as well as its volume. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.

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.

RayTest ( BEPUutilities.Ray &ray, RigidTransform &transform, float maximumLength, RayHit &hit ) : bool

Gets the intersection between the box and the ray.

메소드 상세

BoxShape() 공개 메소드

Constructs a new box shape.
public BoxShape ( float width, float height, float length ) : System
width float Width of the box.
height float Height of the box.
length float Length of the box.
리턴 System

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

ComputeVolume() 공개 메소드

Computes the volume of the shape.
public ComputeVolume ( ) : float
리턴 float

ComputeVolumeDistribution() 공개 메소드

Computes the volume distribution of the shape as well as its volume. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.
public ComputeVolumeDistribution ( float &volume ) : Matrix3x3
volume float Volume of the shape.
리턴 BEPUutilities.Matrix3x3

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

RayTest() 공개 메소드

Gets the intersection between the box and the ray.
public RayTest ( BEPUutilities.Ray &ray, RigidTransform &transform, float maximumLength, RayHit &hit ) : bool
ray BEPUutilities.Ray Ray to test against the box.
transform BEPUutilities.RigidTransform Transform of the shape.
maximumLength float Maximum distance to travel in units of the direction vector's length.
hit BEPUutilities.RayHit Hit data for the raycast, if any.
리턴 bool