r3-legacy/bak/r3-d3-physics.js

32 lines
507 B
JavaScript

/**
* Physics SuperSet Namespace Object
* @param id
* @param name
* @param engine R3.D3.Engine
* @param worlds
* @returns {{World: World}}
* @constructor
*/
R3.D3.Physics = function(
id,
name,
engine,
worlds
) {
this.id = id;
this.name = name;
this.engine = engine;
if (typeof worlds == 'undefined') {
worlds = [];
}
this.worlds = worlds;
};
/**
* Solver Types
* @type {number}
*/
R3.D3.Physics.SPLIT_SOLVER = 0x1;
R3.D3.Physics.GS_SOLVER = 0x2;