C# Class BEPUphysics.BroadPhaseEntries.DetectorVolume

Manages the detection of entities within an arbitrary closed triangle mesh.
Inheritance: BroadPhaseEntry, ISpaceObject, IDeferredEventCreator
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Private Properties

Свойство Type Description
BeganContaining void
BeganTouching void
IDeferredEventCreator void
ISpaceObject void
IsPointContained bool
StoppedContaining void
StoppedTouching void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
CollisionRulesUpdated ( ) : void

Private Methods

Méthode Description
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

Method Details

CollisionRulesUpdated() protected méthode

protected CollisionRulesUpdated ( ) : void
Résultat void

ConvexCast() public méthode

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
Résultat bool

DetectorVolume() public méthode

Creates a detector volume.
public DetectorVolume ( TriangleMesh triangleMesh ) : System
triangleMesh BEPUphysics.DataStructures.TriangleMesh Closed and consistently wound mesh defining the volume.
Résultat System

IsPointContained() public méthode

Determines if a point is contained by the detector volume.
public IsPointContained ( System.Vector3 point ) : bool
point System.Vector3 Point to check for containment.
Résultat bool

RayCast() public méthode

public RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool
ray BEPUutilities.Ray
maximumLength float
rayHit BEPUutilities.RayHit
Résultat bool

Reinitialize() public méthode

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
Résultat void

UpdateBoundingBox() public méthode

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
Résultat void