C# Класс BEPUphysics.CollisionShapes.MobileMeshShape

Local space data associated with a mobile mesh. This contains a hierarchy and all the other heavy data needed by an MobileMesh.
Наследование: EntityShape
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MeshHitUniquenessThreshold float

Открытые методы

Метод Описание
ComputeDistributionInformation ( ShapeDistributionInformation &shapeInfo ) : void

Computes the volume, center of mass, and volume distribution of the shape.

GetBoundingBox ( RigidTransform &shapeTransform, BoundingBox &boundingBox ) : void

Computes the bounding box of the transformed mesh shape.

GetCollidableInstance ( ) : BroadPhaseEntries.MobileCollidables.EntityCollidable
GetLocalBoundingBox ( RigidTransform &shapeTransform, AffineTransform &spaceTransform, BoundingBox &boundingBox ) : void

Gets the bounding box of the mesh transformed first into world space, and then into the local space of another affine transform.

GetSweptLocalBoundingBox ( RigidTransform &shapeTransform, AffineTransform &spaceTransform, Vector3 &sweep, BoundingBox &boundingBox ) : void

Gets the bounding box of the mesh transformed first into world space, and then into the local space of another affine transform.

IsLocalRayOriginInMesh ( Ray &ray, RayHit &hit ) : bool

Tests to see if a ray's origin is contained within the mesh. If it is, the hit location is found. If it isn't, the hit location is still valid if a hit occurred. If the origin isn't inside and there was no hit, the hit has a T value of float.MaxValue.

MobileMeshShape ( Vector3 vertices, int indices, AffineTransform localTransform, MobileMeshSolidity solidity ) : BEPUphysics.DataStructures

Constructs a new mobile mesh shape.

MobileMeshShape ( Vector3 vertices, int indices, AffineTransform localTransform, MobileMeshSolidity solidity, ShapeDistributionInformation &distributionInfo ) : BEPUphysics.DataStructures

Constructs a new mobile mesh shape.

Приватные методы

Метод Описание
ComputeShapeInformation ( TransformableMeshData data, ShapeDistributionInformation &shapeInformation ) : void
ComputeSolidSidedness ( ) : void
ComputeSolidSidednessHelper ( Ray ray ) : TriangleSidedness
GetBoundingBox ( Matrix3x3 &o, BoundingBox &boundingBox ) : void
IsHitUnique ( RawList hits, RayHit &hit ) : bool

Описание методов

ComputeDistributionInformation() публичный Метод

Computes the volume, center of mass, and volume distribution of the shape.
public ComputeDistributionInformation ( ShapeDistributionInformation &shapeInfo ) : void
shapeInfo ShapeDistributionInformation Data about the shape.
Результат void

GetBoundingBox() публичный Метод

Computes the bounding box of the transformed mesh shape.
public GetBoundingBox ( RigidTransform &shapeTransform, BoundingBox &boundingBox ) : void
shapeTransform BEPUutilities.RigidTransform Transform to apply to the shape during the bounding box calculation.
boundingBox BoundingBox Bounding box containing the transformed mesh shape.
Результат void

GetCollidableInstance() публичный Метод

public GetCollidableInstance ( ) : BroadPhaseEntries.MobileCollidables.EntityCollidable
Результат BroadPhaseEntries.MobileCollidables.EntityCollidable

GetLocalBoundingBox() публичный Метод

Gets the bounding box of the mesh transformed first into world space, and then into the local space of another affine transform.
public GetLocalBoundingBox ( RigidTransform &shapeTransform, AffineTransform &spaceTransform, BoundingBox &boundingBox ) : void
shapeTransform BEPUutilities.RigidTransform Transform to use to put the shape into world space.
spaceTransform BEPUutilities.AffineTransform Used as the frame of reference to compute the bounding box. /// In effect, the shape is transformed by the inverse of the space transform to compute its bounding box in local space.
boundingBox BoundingBox Bounding box in the local space.
Результат void

GetSweptLocalBoundingBox() публичный Метод

Gets the bounding box of the mesh transformed first into world space, and then into the local space of another affine transform.
public GetSweptLocalBoundingBox ( RigidTransform &shapeTransform, AffineTransform &spaceTransform, Vector3 &sweep, BoundingBox &boundingBox ) : void
shapeTransform BEPUutilities.RigidTransform Transform to use to put the shape into world space.
spaceTransform BEPUutilities.AffineTransform Used as the frame of reference to compute the bounding box. /// In effect, the shape is transformed by the inverse of the space transform to compute its bounding box in local space.
sweep Vector3 World space sweep direction to transform and add to the bounding box.
boundingBox BoundingBox Bounding box in the local space.
Результат void

IsLocalRayOriginInMesh() публичный Метод

Tests to see if a ray's origin is contained within the mesh. If it is, the hit location is found. If it isn't, the hit location is still valid if a hit occurred. If the origin isn't inside and there was no hit, the hit has a T value of float.MaxValue.
public IsLocalRayOriginInMesh ( Ray &ray, RayHit &hit ) : bool
ray Ray Ray in the local space of the shape to test.
hit BEPUutilities.RayHit The first hit against the mesh, if any.
Результат bool

MobileMeshShape() публичный Метод

Constructs a new mobile mesh shape.
public MobileMeshShape ( Vector3 vertices, int indices, AffineTransform localTransform, MobileMeshSolidity solidity ) : BEPUphysics.DataStructures
vertices Vector3 Vertices of the mesh.
indices int Indices of the mesh.
localTransform BEPUutilities.AffineTransform Local transform to apply to the shape.
solidity MobileMeshSolidity Solidity state of the shape.
Результат BEPUphysics.DataStructures

MobileMeshShape() публичный Метод

Constructs a new mobile mesh shape.
public MobileMeshShape ( Vector3 vertices, int indices, AffineTransform localTransform, MobileMeshSolidity solidity, ShapeDistributionInformation &distributionInfo ) : BEPUphysics.DataStructures
vertices Vector3 Vertices of the mesh.
indices int Indices of the mesh.
localTransform BEPUutilities.AffineTransform Local transform to apply to the shape.
solidity MobileMeshSolidity Solidity state of the shape.
distributionInfo ShapeDistributionInformation Information computed about the shape during construction.
Результат BEPUphysics.DataStructures

Описание свойств

MeshHitUniquenessThreshold публичное статическое свойство

The difference in t parameters in a ray cast under which two hits are considered to be redundant.
public static float MeshHitUniquenessThreshold
Результат float