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
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Свойство Type Description
events ContactEventManager

Méthodes publiques

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

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

InstancedMesh() public méthode

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

InstancedMesh() public méthode

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.
Résultat System

RayCast() public méthode

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

RayCast() public méthode

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

UpdateBoundingBox() public méthode

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

Property Details

events protected_oe property

protected ContactEventManager events
Résultat ContactEventManager