mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 02:55:39 +02:00
27 lines
525 B
TypeScript
27 lines
525 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import * as BABYLON from '@babylonjs/core';
|
|
import { defineObject } from '../engine.js';
|
|
import { yuge } from '../utility.js';
|
|
|
|
export const mug = defineObject({
|
|
id: 'mug',
|
|
name: 'Mug',
|
|
options: {
|
|
schema: {},
|
|
default: {},
|
|
},
|
|
placement: 'top',
|
|
createInstance: ({ room, root }) => {
|
|
return {
|
|
onInited: () => {
|
|
yuge(room, root, new BABYLON.Vector3(0, 5/*cm*/, 0));
|
|
},
|
|
interactions: {},
|
|
};
|
|
},
|
|
});
|