C# Класс Box2DX.Dynamics.ContactFilter

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
RayCollide ( object userData, Shape shape ) : bool

Return true if the given shape should be considered for ray intersection.

ShouldCollide ( Shape shape1, Shape shape2 ) : bool

Return true if contact calculations should be performed between these two shapes. If you implement your own collision filter you may want to build from this implementation. @warning for performance reasons this is only called when the AABBs begin to overlap.

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

RayCollide() публичный Метод

Return true if the given shape should be considered for ray intersection.
public RayCollide ( object userData, Shape shape ) : bool
userData object
shape Box2DX.Collision.Shape
Результат bool

ShouldCollide() публичный Метод

Return true if contact calculations should be performed between these two shapes. If you implement your own collision filter you may want to build from this implementation. @warning for performance reasons this is only called when the AABBs begin to overlap.
public ShouldCollide ( Shape shape1, Shape shape2 ) : bool
shape1 Box2DX.Collision.Shape
shape2 Box2DX.Collision.Shape
Результат bool