1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 22:34:04 +02:00
This commit is contained in:
syuilo
2026-04-15 08:51:47 +09:00
parent cf9349f29c
commit 3db0b8a1fd
16 changed files with 126 additions and 116 deletions

View File

@@ -5,6 +5,7 @@
import * as BABYLON from '@babylonjs/core';
import { defineObject } from '../engine.js';
import { cm } from '../utility.js';
export const books = defineObject({
id: 'books',
@@ -52,8 +53,8 @@ export const books = defineObject({
];
for (const meshes of bookMeshes) {
const z = Math.random() * 0.005/*cm*/;
const y = Math.random() * 0.0025/*cm*/;
const z = Math.random() * cm(0.005);
const y = Math.random() * cm(0.0025);
for (const mesh of meshes) {
mesh.position.z -= z;
mesh.position.y += y;