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

Manages the detection of entities within an arbitrary closed triangle mesh.
Наследование: BroadPhaseEntry, ISpaceObject, IDeferredEventCreator
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BeganContaining void
BeganTouching void
IDeferredEventCreator void
ISpaceObject void
IsPointContained bool
StoppedContaining void
StoppedTouching void

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

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

Creates a detector volume.

IsPointContained ( System.Vector3 point ) : bool

Determines if a point is contained by the detector volume.

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

Updates the detector volume's interpretation of the mesh. This should be called when the the TriangleMesh is changed significantly. This is called automatically if the TriangleMesh property is set.

UpdateBoundingBox ( ) : void

Sets the bounding box of the detector volume to the current hierarchy root bounding box. This is called automatically if the TriangleMesh property is set.

Защищенные методы

Метод Описание
CollisionRulesUpdated ( ) : void

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

Метод Описание
BeganContaining ( DetectorVolumePairHandler pair ) : void
BeganTouching ( DetectorVolumePairHandler pair ) : void
IDeferredEventCreator ( ) : void
ISpaceObject ( ISpace newSpace ) : void
IsPointContained ( System.Vector3 &point, RawList triangles ) : bool
StoppedContaining ( DetectorVolumePairHandler pair ) : void
StoppedTouching ( DetectorVolumePairHandler pair ) : void

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

CollisionRulesUpdated() защищенный метод

protected CollisionRulesUpdated ( ) : void
Результат void

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

public ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool
castShape BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape
startingTransform BEPUutilities.RigidTransform
sweep System.Vector3
hit BEPUutilities.RayHit
Результат bool

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

Creates a detector volume.
public DetectorVolume ( TriangleMesh triangleMesh ) : System
triangleMesh BEPUphysics.DataStructures.TriangleMesh Closed and consistently wound mesh defining the volume.
Результат System

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

Determines if a point is contained by the detector volume.
public IsPointContained ( System.Vector3 point ) : bool
point System.Vector3 Point to check for containment.
Результат bool

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

public RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool
ray BEPUutilities.Ray
maximumLength float
rayHit BEPUutilities.RayHit
Результат bool

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

Updates the detector volume's interpretation of the mesh. This should be called when the the TriangleMesh is changed significantly. This is called automatically if the TriangleMesh property is set.
public Reinitialize ( ) : void
Результат void

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

Sets the bounding box of the detector volume to the current hierarchy root bounding box. This is called automatically if the TriangleMesh property is set.
public UpdateBoundingBox ( ) : void
Результат void