coucou
This commit is contained in:
parent
9672bfb7b0
commit
43f5440306
2 changed files with 40 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
|||
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
|
||||
# File Created: 21.08.2014 17:37:51
|
||||
|
||||
mtllib FinalBaseMesh.mtl
|
||||
|
||||
#
|
||||
# object Group1
|
||||
#
|
||||
|
|
|
@ -151,19 +151,56 @@ function createObj(loader,scene){
|
|||
});
|
||||
};
|
||||
|
||||
var noye1 = loader.addMeshTask("noye1", "", "assets/", "FinalBaseMesh.obj");
|
||||
var noye1 = loader.addMeshTask("noye1", "", "assets/", "generic_male_02.obj");
|
||||
noye1.onSuccess = function(t){
|
||||
t.loadedMeshes.forEach(function(m) {//m = model
|
||||
m.position.x = 10;
|
||||
m.position.y = 0;
|
||||
m.position.y = -3;
|
||||
m.position.z = 70;
|
||||
m.position.x = -10;
|
||||
m.position.x = 1;
|
||||
m.rotation.y = Math.PI / 2;
|
||||
m.scaling = new BABYLON.Vector3(1, 1, 1);
|
||||
m.checkCollisions = true;
|
||||
});
|
||||
};
|
||||
|
||||
var noye2 = loader.addMeshTask("noye2", "", "assets/", "generic_male_02.obj");
|
||||
noye2.onSuccess = function(t){
|
||||
t.loadedMeshes.forEach(function(m) {//m = model
|
||||
m.position.x = 10;
|
||||
m.position.y = -3;
|
||||
m.position.z = 60;
|
||||
m.position.x = 5;
|
||||
m.scaling = new BABYLON.Vector3(1, 1, 1);
|
||||
m.checkCollisions = true;
|
||||
});
|
||||
};
|
||||
|
||||
var migrant1 = loader.addMeshTask("migrant1", "", "assets/", "generic_male_02.obj");
|
||||
migrant1.onSuccess = function(t){
|
||||
t.loadedMeshes.forEach(function(m) {//m = model
|
||||
m.position.x = 10;
|
||||
m.position.y = 0;
|
||||
m.position.z = 130;
|
||||
m.position.x = 1;
|
||||
m.rotation.y = Math.PI / 2;
|
||||
m.scaling = new BABYLON.Vector3(1, 1, 1);
|
||||
m.checkCollisions = true;
|
||||
});
|
||||
};
|
||||
|
||||
var migrant2 = loader.addMeshTask("migrant2", "", "assets/", "generic_male_02.obj");
|
||||
migrant2.onSuccess = function(t){
|
||||
t.loadedMeshes.forEach(function(m) {//m = model
|
||||
m.position.x = 10;
|
||||
m.position.y = 0;
|
||||
m.position.z = 135;
|
||||
m.position.x = 5;
|
||||
m.scaling = new BABYLON.Vector3(1, 1, 1);
|
||||
m.checkCollisions = true;
|
||||
});
|
||||
};
|
||||
|
||||
var boat1 = loader.addMeshTask("boat1", "", "assets/", "Cannoe.obj");
|
||||
boat1.onSuccess = function(t){
|
||||
t.loadedMeshes.forEach(function(m) {//m = model
|
||||
|
|
Reference in a new issue