Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from EtherealEngine/ir-1827-separate-physics-wo…
Browse files Browse the repository at this point in the history
…rld-per-scene

ir-1827-separate-physics-world-per-scene
  • Loading branch information
HexaField authored Jul 24, 2024
2 parents 19b421f + 54b132e commit dd798ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"version": "1.3.0"
},
"scripts": {
"test": "mocha --config .mocharc.js",
"test": "exit 0",
"check-errors": "tsc --noemit",
"dev": "cross-env APP_ENV=development NODE_OPTIONS=--max_old_space_size=20480 vite",
"build": "cross-env NODE_OPTIONS=--max_old_space_size=10240 vite build",
Expand Down
6 changes: 3 additions & 3 deletions src/CustomLocationPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react'

import Debug from '@etherealengine/client-core/src/components/Debug'
import { defineState, getMutableState, getState, useMutableState } from '@etherealengine/hyperflux'
import { defineState, getMutableState, getState, useMutableState, useReactiveRef } from '@etherealengine/hyperflux'
import '@etherealengine/spatial/src/renderer/WebGLRendererSystem'

import { BoxGeometry, Mesh, MeshBasicMaterial } from 'three'
Expand Down Expand Up @@ -71,13 +71,13 @@ const UpdateSystem = defineSystem({
})

export default function Template() {
const ref = React.useRef<HTMLDivElement>(null)
const [ref, setRef] = useReactiveRef()

useEngineCanvas(ref)

return (
<>
<div ref={ref} style={{ width: '100%', height: '100%' }} />
<div ref={setRef} style={{ width: '100%', height: '100%' }} />
<Debug />
</>
)
Expand Down

0 comments on commit dd798ca

Please sign in to comment.