the-world-engine
Version:
three.js based, unity like game engine for browser
51 lines (50 loc) • 1.13 kB
TypeScript
/**
* A controller edge is used to connect bodies and controllers
* together in a bipartite graph.
*/
export class b2ControllerEdge {
constructor(controller: any, body: any);
prevBody: any;
nextBody: any;
prevController: any;
nextController: any;
controller: any;
body: any;
}
/**
* Base class for controllers. Controllers are a convience for
* encapsulating common per-step functionality.
*/
export class b2Controller {
m_bodyList: any;
m_bodyCount: number;
m_prev: any;
m_next: any;
/**
* Get the next controller in the world's body list.
*/
GetNext(): any;
/**
* Get the previous controller in the world's body list.
*/
GetPrev(): any;
/**
* Get the parent world of this body.
*/
/**
* Get the attached body list
*/
GetBodyList(): any;
/**
* Adds a body to the controller list.
*/
AddBody(body: any): void;
/**
* Removes a body from the controller list.
*/
RemoveBody(body: any): void;
/**
* Removes all bodies from the controller list.
*/
Clear(): void;
}