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

32 lines
507 B
JavaScript
Raw Permalink Normal View History

2016-10-14 12:32:53 +02:00
/**
* Physics SuperSet Namespace Object
* @param id
* @param name
2018-04-09 10:05:13 +02:00
* @param engine R3.D3.Engine
2016-10-14 12:32:53 +02:00
* @param worlds
* @returns {{World: World}}
* @constructor
*/
2018-04-09 10:05:13 +02:00
R3.D3.Physics = function(
2016-10-14 12:32:53 +02:00
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}
*/
2018-04-09 10:05:13 +02:00
R3.D3.Physics.SPLIT_SOLVER = 0x1;
R3.D3.Physics.GS_SOLVER = 0x2;