Skip to content

Commit

Permalink
add offset
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 31, 2023
1 parent 797c103 commit 3f0375e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ export default function Selector({confirmDialog, templateInfo, animationManager,

const scale = templateInfo.exportScale || 1;
vrm.scene.scale.set(scale,scale,scale);

const offset = templateInfo.offset;
if (offset != null){
vrm.scene.position.set(offset[0],offset[1],offset[2]);
}

//animation setup section
//play animations on this vrm TODO, letscreate a single animation manager per traitInfo, as model may change since it is now a trait option
Expand Down

0 comments on commit 3f0375e

Please sign in to comment.