MCPcopy Create free account
hub / github.com/microsoft/SandDance / Object3D

Function Object3D

docs/tests/v2/es6/js/sanddance.js:24415–24429  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

24413/*#__PURE__*/
24414function () {
24415 function Object3D(_ref) {
24416 var id = _ref.id,
24417 _ref$display = _ref.display,
24418 display = _ref$display === void 0 ? true : _ref$display;
24419 (0, _classCallCheck2.default)(this, Object3D); // whether to display the object at all
24420
24421 this.id = id || (0, _utils.uid)(this.constructor.name);
24422 this.display = true; // model position, rotation, scale and all in all matrix
24423
24424 this.position = new _math.Vector3();
24425 this.rotation = new _math.Vector3();
24426 this.scale = new _math.Vector3(1, 1, 1);
24427 this.matrix = new _math.Matrix4();
24428 this.userData = {};
24429 }
24430
24431 (0, _createClass2.default)(Object3D, [{
24432 key: "toString",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected