Added babylonjs, ammojs, dice models and simple dice interaction

This commit is contained in:
Mitchell McCaffrey
2020-05-08 12:56:36 +10:00
parent e73f64a3b5
commit 0a71609105
34 changed files with 632 additions and 8 deletions

View File

@@ -7,6 +7,8 @@ import MapToken from "./MapToken";
import MapDrawing from "./MapDrawing";
import MapFog from "./MapFog";
import MapControls from "./MapControls";
import MapDice from "./MapDice";
import LoadingOverlay from "../LoadingOverlay";
import { omit } from "../../helpers/shared";
import useDataSource from "../../helpers/useDataSource";
@@ -296,8 +298,13 @@ function Map({
map={map}
aspectRatio={aspectRatio}
isEnabled={selectedToolId === "pan"}
controls={mapControls}
loading={loading}
sideContent={
<>
<MapDice />
{mapControls}
{loading && <LoadingOverlay />}
</>
}
>
{map && mapImage}
{map && mapDrawing}