mazegame
This commit is contained in:
+8
-1
@@ -53,5 +53,12 @@ export default {
|
||||
|
||||
rad2deg(rad){
|
||||
return rad * 180 / Math.PI;
|
||||
}
|
||||
},
|
||||
|
||||
assignMeshParams(mesh, params){
|
||||
['scale', 'rotation', 'position'].forEach(p=>params[p] && mesh[p].fromArray(params[p]));
|
||||
['visible', 'name'].forEach(p=>{
|
||||
if (params[p]!==undefined) mesh[p] = params[p];
|
||||
});
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user