Skip to content

Commit

Permalink
build update
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah Bollar <[email protected]>
  • Loading branch information
hanbollar committed Feb 9, 2024
1 parent aa4a456 commit 3546aa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
<mr-a href="https://volumetrics.io" target="_blank" class="company">
volumetrics
</mr-a>
<mr-div class="logo">
<mr-model
class="logo"
id="logo-model"
src="/assets/models/logo.stl"
data-comp-instancing="type: animate;"
data-comp-spin="maxspeed: -0.002; acceleration: -0.000008;"
data-rotation="-22.91 17.1887 45.8366">
</mr-model>
</mr-div>
<mr-button onclick="spin()" class="spin-button">
spin
</mr-button>
Expand Down Expand Up @@ -104,10 +103,11 @@

// increases the maxspeed and acceleration of the animation component on the logo
function spin() {
let animationComp = model.components.get('animation')
if (animationComp !== undefined && animationComp !== null) {
model.components.set('animation', {maxspeed: animationComp.maxspeed * 10000, acceleration: animationComp.acceleration * 10000})
}
console.log('spin');
// let animationComp = model.components.get('animation')
// if (animationComp !== undefined && animationComp !== null) {
// model.components.set('animation', {maxspeed: animationComp.maxspeed * 10000, acceleration: animationComp.acceleration * 10000})
// }
}


Expand Down
6 changes: 3 additions & 3 deletions dist/mr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3546aa3

Please sign in to comment.