Skip to content

Commit

Permalink
fix conversion from collision radius to vol scale
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercl committed Sep 27, 2024
1 parent 52e1bbe commit 1540cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visGeometry/VolumeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default class VolumeModel {
if (this.image) {
this.image.setTranslation(new Vector3(data.x, data.y, data.z));
this.image.setRotation(new Euler(data.xrot, data.yrot, data.zrot));
this.image.setScale(new Vector3(data.cr, data.cr, data.cr));
const r = data.cr * 2;
this.image.setScale(new Vector3(r, r, r));
}
}

Expand Down

0 comments on commit 1540cd0

Please sign in to comment.