sasha240100 f355e68f74 Fix remove() error message
Former-commit-id: 3cb7016bda98fb059aaf8c5baeb34f698ee4a6d9
2016-07-19 14:30:02 +03:00

69 lines
1.1 KiB
JavaScript

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
window.GAME = new WHS.World({
stats: 'fps', // fps, ms, mb
autoresize: true,
gravity: {
x: 0,
y: -100,
z: 0
},
camera: {
far: 10000,
y: 10,
z: 30
}
});
window.sphere = new WHS.Sphere({
geometry: {
radius: 3
},
mass: 10,
material: {
color: 0xffffff,
kind: 'basic'
},
pos: {
x: 0,
y: 100,
z: 0
}
});
window.sphere.addTo(GAME);
new WHS.Plane({
geometry: {
width: 250,
height: 250
},
mass: 0,
material: {
color: 0xff0000,
kind: 'basic'
},
pos: {
x: 0,
y: 0,
z: 0
},
rot: {
x: -Math.PI / 2
}
}).addTo(GAME);
GAME.start();
},{}]},{},[1]);