entity array
parent
d9c336286d
commit
b7a244e282
File diff suppressed because one or more lines are too long
|
@ -2947,7 +2947,8 @@ GameLib.D3.RigidWheel = function(
|
|||
* @param scale
|
||||
* @param parentSceneId
|
||||
* @param lights
|
||||
* @param physics GameLib.D3.Physics
|
||||
* @param worlds
|
||||
* @param entities
|
||||
* @constructor
|
||||
*/
|
||||
GameLib.D3.Scene = function(
|
||||
|
@ -2961,7 +2962,8 @@ GameLib.D3.Scene = function(
|
|||
scale,
|
||||
parentSceneId,
|
||||
lights,
|
||||
physics
|
||||
worlds,
|
||||
entities
|
||||
) {
|
||||
this.id = id;
|
||||
this.sceneId = GameLib.D3.Tools.RandomId();
|
||||
|
@ -3006,10 +3008,15 @@ GameLib.D3.Scene = function(
|
|||
}
|
||||
this.lights = lights;
|
||||
|
||||
if (typeof physics == 'undefined') {
|
||||
physics = [];
|
||||
if (typeof worlds == 'undefined') {
|
||||
worlds = [];
|
||||
}
|
||||
this.physics = physics;
|
||||
this.worlds = worlds;
|
||||
|
||||
if (typeof entities == 'undefined') {
|
||||
entities = [];
|
||||
}
|
||||
this.entities = entities;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
* @param scale
|
||||
* @param parentSceneId
|
||||
* @param lights
|
||||
* @param physics GameLib.D3.Physics
|
||||
* @param worlds
|
||||
* @param entities
|
||||
* @constructor
|
||||
*/
|
||||
GameLib.D3.Scene = function(
|
||||
|
@ -24,7 +25,8 @@ GameLib.D3.Scene = function(
|
|||
scale,
|
||||
parentSceneId,
|
||||
lights,
|
||||
physics
|
||||
worlds,
|
||||
entities
|
||||
) {
|
||||
this.id = id;
|
||||
this.sceneId = GameLib.D3.Tools.RandomId();
|
||||
|
@ -69,10 +71,15 @@ GameLib.D3.Scene = function(
|
|||
}
|
||||
this.lights = lights;
|
||||
|
||||
if (typeof physics == 'undefined') {
|
||||
physics = [];
|
||||
if (typeof worlds == 'undefined') {
|
||||
worlds = [];
|
||||
}
|
||||
this.physics = physics;
|
||||
this.worlds = worlds;
|
||||
|
||||
if (typeof entities == 'undefined') {
|
||||
entities = [];
|
||||
}
|
||||
this.entities = entities;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue