C# Class BEPUphysics.BroadPhaseEntries.DetectorVolume

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

Private Properties

Property Type Description
BeganContaining void
BeganTouching void
IDeferredEventCreator void
ISpaceObject void
IsPointContained bool
StoppedContaining void
StoppedTouching void

Public Methods

Method 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.

Protected Methods

Method Description
CollisionRulesUpdated ( ) : void

Private Methods

Method 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 method

protected CollisionRulesUpdated ( ) : void
return void

ConvexCast() public method

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
return bool

DetectorVolume() public method

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

IsPointContained() public method

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

RayCast() public method

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

Reinitialize() public method

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
return void

UpdateBoundingBox() public method

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
return void