dev
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<v-btn icon="mdi-plus" variant="text" v-bind="props"></v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item to="/game-objects/add">Нов игрови обект</v-list-item>
|
||||
<v-list-item to="/scenarios/add">Нов сценарий</v-list-item>
|
||||
<v-list-item to="/games/add">Нова игра</v-list-item>
|
||||
<v-list-item to="/game-objects/add">{{ l.createGameObject }}</v-list-item>
|
||||
<v-list-item to="/scenarios/add">{{ l.createScenario }}</v-list-item>
|
||||
<v-list-item to="/games/add">{{ l.createGame }}</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-app-bar>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div v-show="forRendering">
|
||||
<div ref="target"></div>
|
||||
<div class="position-relative">
|
||||
<div ref="target"></div>
|
||||
<div class="renderer-gizmo"></div>
|
||||
</div>
|
||||
<v-slide-group show-arrows>
|
||||
<v-slide-group-item v-for="(a, i) in animations" :key="i" v-slot="{ isSelected }">
|
||||
<v-btn :color="isSelected ? 'primary' : undefined" class="ma-2"
|
||||
@@ -79,8 +82,8 @@ export default{
|
||||
});
|
||||
//console.log(bb)
|
||||
gameEngine.camera.position.set(bb.max.x, bb.max.y, bb.max.z);
|
||||
gameEngine.controls.target.set((bb.max.x + bb.min.x) / 2, (bb.max.y + bb.min.y) / 2, (bb.max.z + bb.min.z) / 2)
|
||||
gameEngine.controls.update();
|
||||
gameEngine.orbitControls.target.set((bb.max.x + bb.min.x) / 2, (bb.max.y + bb.min.y) / 2, (bb.max.z + bb.min.z) / 2)
|
||||
gameEngine.orbitControls.update();
|
||||
gameEngine.scene.add(gltf.scene);
|
||||
//gameEngine.scene.add(gameEngine.light);
|
||||
}
|
||||
|
||||
@@ -104,6 +104,8 @@ export default {
|
||||
currentObject(n){
|
||||
gameEngine.transformControls.attach(n.__o);
|
||||
gameEngine.gizmo.target = n.__o.position;
|
||||
//gameEngine.camera.lookAt(n.__o.position)
|
||||
gameEngine.camera.updateProjectionMatrix()
|
||||
},
|
||||
renderType(v){
|
||||
gameEngine.renderType = v;
|
||||
|
||||
Reference in New Issue
Block a user