mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
72df3d29ce
commit
f8a981a1fc
2 changed files with 2 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ export class PlayerContainer {
|
|||
|
||||
public applyState(state: PlayerState, forInit = false) {
|
||||
this.root.position.set(...state.position);
|
||||
if (this.modelRoot) this.modelRoot.rotation.set(...state.rotation);
|
||||
this.subRoot.rotation.set(...state.rotation);
|
||||
if (!forInit) {
|
||||
const meshes = this.root.getChildMeshes();
|
||||
if (meshes.length > 0) this.sr.updateMesh(meshes);
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ export class RoomEngine extends EngineBase<{
|
|||
|
||||
// TODO: GPUPickerを使いたいが、なぜか一部のメッシュが反応しない
|
||||
const pickingInfo = this.scene.pick(ev.x, ev.y,
|
||||
(m) => m.name.includes('__PICK__') || (m.isVisible && m.isEnabled() && m.metadata?.objectId != null && this.objectContainers.has(m.metadata.objectId)));
|
||||
(m) => m.name.includes('__PICK__') || m.metadata?.isPlayer || (m.isVisible && m.isEnabled() && m.metadata?.objectId != null && this.objectContainers.has(m.metadata.objectId)));
|
||||
|
||||
if (pickingInfo.pickedMesh != null) {
|
||||
const oid = pickingInfo.pickedMesh.metadata.objectId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue