Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bodyAnimate() {
- if( !this.bodyScaling ) return;
- this.scaleHeadOffset += 0.04;
- const scaleRate = Math.abs( Math.sin( this.scaleHeadOffset ) ) / 16 + 1;
- this.scale.set( scaleRate, scaleRate, scaleRate );
- }
- toggleAnimate() {
- this.headSwinging = !this.headSwinging;
- this.bodyScaling = !this.bodyScaling;
- this.walking = !this.walking;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement