This commit is contained in:
@@ -18,7 +18,7 @@ class GenericObject extends EventManager{
|
||||
engine.dashboard.detach(this.object);
|
||||
}else{
|
||||
let bb = getBoundingBox(this.object);
|
||||
let scale = 0.5/getBoundingBoxMaxLength(bb);
|
||||
let scale = 0.5 * engine.dashboard.height/getBoundingBoxMaxLength(bb);
|
||||
let position = getBoundingBoxCenterPoint(bb, this.object.position).multiplyScalar(scale).negate()
|
||||
|
||||
let placement = {
|
||||
|
||||
Reference in New Issue
Block a user