mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-05 18:44:09 +02:00
Update engine.ts
This commit is contained in:
@@ -1241,6 +1241,9 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
const selectedObject = this.selected.objectEntity.rootMesh;
|
const selectedObject = this.selected.objectEntity.rootMesh;
|
||||||
this.clearHighlight();
|
this.clearHighlight();
|
||||||
|
|
||||||
|
const initialPosition = selectedObject.position.clone();
|
||||||
|
const initialRotation = selectedObject.rotation.clone();
|
||||||
|
|
||||||
// 子から先に適用していく
|
// 子から先に適用していく
|
||||||
const setStickyParentRecursively = (mesh: BABYLON.AbstractMesh) => {
|
const setStickyParentRecursively = (mesh: BABYLON.AbstractMesh) => {
|
||||||
const stickyObjectIds = Array.from(this.roomState.installedObjects.filter(o => o.sticky === mesh.metadata.objectId)).map(o => o.id);
|
const stickyObjectIds = Array.from(this.roomState.installedObjects.filter(o => o.sticky === mesh.metadata.objectId)).map(o => o.id);
|
||||||
@@ -1278,9 +1281,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
|
|
||||||
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
|
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
|
||||||
|
|
||||||
const initialPosition = selectedObject.position.clone();
|
|
||||||
const initialRotation = selectedObject.rotation.clone();
|
|
||||||
|
|
||||||
let sticky: string | null;
|
let sticky: string | null;
|
||||||
|
|
||||||
this.grabbingCtx = {
|
this.grabbingCtx = {
|
||||||
|
|||||||
Reference in New Issue
Block a user