C# Class BEPUphysics.BroadPhaseEntries.MobileCollidables.MobileMeshCollidable

Collidable used by compound shapes.
Inheritance: EntityCollidable
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, Vector3 &sweep, RayHit &hit ) : bool

Casts a convex shape against the collidable.

MobileMeshCollidable ( MobileMeshShape shape ) : BEPUphysics.BroadPhaseEntries.Events

Constructs a new mobile mesh collidable.

RayCast ( Ray ray, float maximumLength, RayHit &rayHit ) : bool

Tests a ray against the entry.

RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool

Tests a ray against the surface of the mesh. This does not take into account solidity.

Protected Methods

Method Description
UpdateBoundingBoxInternal ( float dt ) : void

Method Details

ConvexCast() public method

Casts a convex shape against the collidable.
public ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, Vector3 &sweep, RayHit &hit ) : bool
castShape BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Shape to cast.
startingTransform BEPUutilities.RigidTransform Initial transform of the shape.
sweep Vector3 Sweep to apply to the shape.
hit BEPUutilities.RayHit Hit data, if any.
return bool

MobileMeshCollidable() public method

Constructs a new mobile mesh collidable.
public MobileMeshCollidable ( MobileMeshShape shape ) : BEPUphysics.BroadPhaseEntries.Events
shape BEPUphysics.CollisionShapes.MobileMeshShape Shape to use in the collidable.
return BEPUphysics.BroadPhaseEntries.Events

RayCast() public method

Tests a ray against the entry.
public RayCast ( Ray ray, float maximumLength, RayHit &rayHit ) : bool
ray 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 surface of the mesh. This does not take into account solidity.
public RayCast ( Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool
ray 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

UpdateBoundingBoxInternal() protected method

protected UpdateBoundingBoxInternal ( float dt ) : void
dt float
return void