mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-11 10:27:54 +02:00
Fix highlight position for entity with non-center registration point
This commit is contained in:
parent
3e96df5436
commit
b042f8615b
1 changed files with 4 additions and 1 deletions
|
@ -77,8 +77,11 @@
|
|||
}
|
||||
|
||||
function editEntityOverlay(index, details) {
|
||||
var offset = Vec3.multiplyQbyV(details.rotation,
|
||||
Vec3.multiplyVbyV(Vec3.subtract(Vec3.HALF, details.registrationPoint), details.dimensions));
|
||||
|
||||
Overlays.editOverlay(entityOverlays[index], {
|
||||
position: details.position,
|
||||
position: Vec3.sum(details.position, offset),
|
||||
registrationPoint: details.registrationPoint,
|
||||
rotation: details.rotation,
|
||||
dimensions: details.dimensions,
|
||||
|
|
Loading…
Reference in a new issue