C# Класс BEPUphysics.BroadPhaseEntries.InstancedMesh

Collidable mesh which can be created from a reusable InstancedMeshShape. Very little data is needed for each individual InstancedMesh object, allowing a complicated mesh to be repeated many times. Since the hierarchy used to accelerate collisions is purely local, it may be marginally slower than an individual StaticMesh.
Наследование: StaticCollidable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
events ContactEventManager

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

Метод Описание
ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool

Casts a convex shape against the collidable.

InstancedMesh ( InstancedMeshShape meshShape ) : System

Constructs a new InstancedMesh.

InstancedMesh ( InstancedMeshShape meshShape, AffineTransform worldTransform ) : System

Constructs a new InstancedMesh.

RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool

Tests a ray against the entry.

RayCast ( BEPUutilities.Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool

Tests a ray against the instance.

UpdateBoundingBox ( ) : void

Updates the bounding box to the current state of the entry.

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

ConvexCast() публичный метод

Casts a convex shape against the collidable.
public ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool
castShape CollisionShapes Shape to cast.
startingTransform BEPUutilities.RigidTransform Initial transform of the shape.
sweep System.Vector3 Sweep to apply to the shape.
hit BEPUutilities.RayHit Hit data, if any.
Результат bool

InstancedMesh() публичный метод

Constructs a new InstancedMesh.
public InstancedMesh ( InstancedMeshShape meshShape ) : System
meshShape BEPUphysics.CollisionShapes.InstancedMeshShape Shape to use for the instance.
Результат System

InstancedMesh() публичный метод

Constructs a new InstancedMesh.
public InstancedMesh ( InstancedMeshShape meshShape, AffineTransform worldTransform ) : System
meshShape BEPUphysics.CollisionShapes.InstancedMeshShape Shape to use for the instance.
worldTransform BEPUutilities.AffineTransform Transform to use for the instance.
Результат System

RayCast() публичный метод

Tests a ray against the entry.
public RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool
ray BEPUutilities.Ray Ray to test.
maximumLength float Maximum length, in units of the ray's direction's length, to test.
rayHit BEPUutilities.RayHit Hit location of the ray on the entry, if any.
Результат bool

RayCast() публичный метод

Tests a ray against the instance.
public RayCast ( BEPUutilities.Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool
ray BEPUutilities.Ray Ray to test.
maximumLength float Maximum length of the ray to test; in units of the ray's direction's length.
sidedness TriangleSidedness Sidedness to use during the ray cast. This does not have to be the same as the mesh's sidedness.
rayHit BEPUutilities.RayHit The hit location of the ray on the mesh, if any.
Результат bool

UpdateBoundingBox() публичный метод

Updates the bounding box to the current state of the entry.
public UpdateBoundingBox ( ) : void
Результат void

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

events защищенное свойство

protected ContactEventManager events
Результат ContactEventManager