the-world-engine
Version:
three.js based, unity like game engine for browser
72 lines (71 loc) • 2.23 kB
TypeScript
export function b2MixFriction(friction1: any, friction2: any): number;
export function b2MixRestitution(restitution1: any, restitution2: any): any;
export function b2MixRestitutionThreshold(threshold1: any, threshold2: any): any;
export class b2ContactEdge {
constructor(contact: any);
_other: any;
prev: any;
next: any;
contact: any;
set other(arg: any);
get other(): any;
Reset(): void;
}
export class b2Contact {
m_islandFlag: boolean;
m_touchingFlag: boolean;
m_enabledFlag: boolean;
m_filterFlag: boolean;
m_bulletHitFlag: boolean;
m_toiFlag: boolean;
m_prev: any;
m_next: any;
m_nodeA: b2ContactEdge;
m_nodeB: b2ContactEdge;
m_indexA: number;
m_indexB: number;
m_manifold: b2Manifold;
m_toiCount: number;
m_toi: number;
m_friction: number;
m_restitution: number;
m_restitutionThreshold: number;
m_tangentSpeed: number;
m_oldManifold: b2Manifold;
GetManifold(): b2Manifold;
GetWorldManifold(worldManifold: any): void;
IsTouching(): boolean;
SetEnabled(flag: any): void;
IsEnabled(): boolean;
GetNext(): any;
GetFixtureA(): any;
GetChildIndexA(): number;
GetShapeA(): any;
GetFixtureB(): any;
GetChildIndexB(): number;
GetShapeB(): any;
FlagForFiltering(): void;
SetFriction(friction: any): void;
GetFriction(): number;
ResetFriction(): void;
SetRestitution(restitution: any): void;
GetRestitution(): number;
ResetRestitution(): void;
SetRestitutionThreshold(threshold: any): void;
GetRestitutionThreshold(): number;
ResetRestitutionThreshold(): void;
SetTangentSpeed(speed: any): void;
GetTangentSpeed(): number;
Reset(fixtureA: any, indexA: any, fixtureB: any, indexB: any): void;
m_fixtureA: any;
m_fixtureB: any;
Update(listener: any): void;
ComputeTOI(sweepA: any, sweepB: any): number;
}
export namespace b2Contact {
const ComputeTOI_s_input: b2TOIInput;
const ComputeTOI_s_output: b2TOIOutput;
}
import { b2Manifold } from "../collision/b2_collision.js";
import { b2TOIInput } from "../collision/b2_time_of_impact.js";
import { b2TOIOutput } from "../collision/b2_time_of_impact.js";