C# Class 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.
Inheritance: StaticCollidable
Mostra file Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
events ContactEventManager

Public Methods

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

Method Details

ConvexCast() public method

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

InstancedMesh() public method

Constructs a new InstancedMesh.
public InstancedMesh ( InstancedMeshShape meshShape ) : System
meshShape BEPUphysics.CollisionShapes.InstancedMeshShape Shape to use for the instance.
return System

InstancedMesh() public method

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.
return System

RayCast() public method

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

RayCast() public method

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

UpdateBoundingBox() public method

Updates the bounding box to the current state of the entry.
public UpdateBoundingBox ( ) : void
return void

Property Details

events protected_oe property

protected ContactEventManager events
return ContactEventManager