UNPKG

@awayfl/awayfl-player

Version:

Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript

25 lines 1.17 kB
import { b2Fixture } from './b2Fixture'; /** * Implement this class to provide collision filtering. In other words, you can implement * this class if you want finer control over contact creation. */ export declare class b2ContactFilter { __fast__: boolean; /** * Return true if contact calculations should be performed between these two fixtures. * @warning for performance reasons this is only called when the AABBs begin to overlap. */ ShouldCollide(fixtureA: b2Fixture, fixtureB: b2Fixture): Boolean; /** * Return true if the given fixture should be considered for ray intersection. * By default, userData is cast as a b2Fixture and collision is resolved according to ShouldCollide * @see ShouldCollide() * @see b2World#Raycast * @param userData arbitrary data passed from Raycast or RaycastOne * @param fixture the fixture that we are testing for filtering * @return a Boolean, with a value of false indicating that this fixture should be ignored. */ RayCollide(userData: any, fixture: b2Fixture): Boolean; static b2_defaultFilter: b2ContactFilter; } //# sourceMappingURL=b2ContactFilter.d.ts.map