add collisionTypes
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
<v-textarea :label="l.description" v-model="modelValue.description" class="mt-3"></v-textarea>
|
||||
<v-checkbox density="compact" v-model="modelValue.hud" hide-details :label="l.viewInHUD"></v-checkbox>
|
||||
<v-checkbox density="compact" v-model="modelValue.exclude" hide-details :label="l.disableInteractions"></v-checkbox>
|
||||
<v-checkbox density="compact" v-model="modelValue.noPhysics" hide-details :label="l.disableCollisions"></v-checkbox>
|
||||
<v-select :label="l.collisionType" v-model="modelValue.collisionType" density="compact" hide-details
|
||||
:items="collisionTypes"></v-select>
|
||||
<v-img :src="`/asset/thumb/${modelValue.go}.webp`" />
|
||||
<div class="text-caption text-center">{{ modelValue.title }}</div>
|
||||
</div>
|
||||
@@ -19,11 +20,13 @@
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
active: false
|
||||
active: false,
|
||||
collisionTypes: []
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.active = true;
|
||||
this.collisionTypes = Object.keys(this.l.collisionTypes).map(t=>({title: this.l.collisionTypes[t], value: t}))
|
||||
},
|
||||
props:{
|
||||
modelValue: Object
|
||||
|
||||
@@ -42,7 +42,6 @@ class MazeQuizGame extends EventManager {
|
||||
constructor(engine, data) {
|
||||
super();
|
||||
this.data = data;
|
||||
data.noPhysics = true;
|
||||
|
||||
this.params = { ...params, mazeFile: data.style || 'quiz-s2.gltf', io: this }
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js'
|
||||
|
||||
class Particles {
|
||||
constructor(engine, data) {
|
||||
data.noPhysics = true;
|
||||
const { x, y, count, w, h } = data;
|
||||
let positions = Particles.positions(count, w, h);
|
||||
return new Promise(async (resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user