camera is now orienting to target on click on contents
This commit is contained in:
@@ -225,8 +225,11 @@ export default {
|
||||
// this.face = 'left'
|
||||
// this.position.x = this.projPos.x - this.projSize.x / 2 + 0.1
|
||||
// this.rotation.y = 90
|
||||
// First shift grid place (will transfer it from free places to occupied places)
|
||||
this.shiftGrid({ type: this.type, id: this.id })
|
||||
if (typeof this.gridContentPlaced[this.type] === 'undefined' ||
|
||||
typeof this.gridContentPlaced[this.type][this.id] === 'undefined') {
|
||||
// First shift grid place (will transfer it from free places to occupied places)
|
||||
this.shiftGrid({ type: this.type, id: this.id })
|
||||
}
|
||||
// Then get the right place for the current content
|
||||
let pos = this.gridContentPlaced[this.type][this.id]
|
||||
console.log('pos', pos)
|
||||
|
||||
Reference in New Issue
Block a user