C# Класс BEPUphysics.BroadPhaseEntries.StaticGroup

Collection of unmoving collidable objects.
Batching multiple static objects together into a StaticGroup as opposed to adding them separately to the Space avoids BroadPhase pollution, improving performance.
Наследование: StaticCollidable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
events ContactEventManager

Открытые методы

Метод Описание
ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, System.Vector3 &sweep, bool>.Func filter, RayHit &hit ) : bool

Casts a convex shape against the collidable.

ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool

Casts a convex shape against the collidable.

RayCast ( BEPUutilities.Ray ray, float maximumLength, bool>.Func filter, RayHit &rayHit ) : bool

Tests a ray against the entry.

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

Tests a ray against the entry.

StaticGroup ( IList collidables ) : System

Constructs a new static mesh.

UpdateBoundingBox ( ) : void

Updates the bounding box to the current state of the entry.

Описание методов

ConvexCast() публичный метод

Casts a convex shape against the collidable.
public ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, System.Vector3 &sweep, bool>.Func filter, RayHit &hit ) : bool
castShape BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Shape to cast.
startingTransform BEPUutilities.RigidTransform Initial transform of the shape.
sweep System.Vector3 Sweep to apply to the shape.
filter bool>.Func Test to apply to the entry. If it returns true, the entry is processed, otherwise the entry is ignored. If a collidable hierarchy is present /// in the entry, this filter will be passed into inner ray casts.
hit BEPUutilities.RayHit Hit data, if any.
Результат bool

ConvexCast() публичный метод

Casts a convex shape against the collidable.
public ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool
castShape BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape 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.
Результат bool

RayCast() публичный метод

Tests a ray against the entry.
public RayCast ( BEPUutilities.Ray ray, float maximumLength, bool>.Func filter, RayHit &rayHit ) : bool
ray BEPUutilities.Ray Ray to test.
maximumLength float Maximum length, in units of the ray's direction's length, to test.
filter bool>.Func Test to apply to the entry. If it returns true, the entry is processed, otherwise the entry is ignored. If a collidable hierarchy is present /// in the entry, this filter will be passed into inner ray casts.
rayHit BEPUutilities.RayHit Hit location of the ray on the entry, if any.
Результат bool

RayCast() публичный метод

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.
Результат bool

StaticGroup() публичный метод

Constructs a new static mesh.
public StaticGroup ( IList collidables ) : System
collidables IList List of collidables in the static group.
Результат System

UpdateBoundingBox() публичный метод

Updates the bounding box to the current state of the entry.
public UpdateBoundingBox ( ) : void
Результат void

Описание свойств

events защищенное свойство

protected ContactEventManager events
Результат ContactEventManager