1.0.1 • Published 4 years ago

sparkar-wow-lib v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Spark AR - WoW lib

Description

Adds the WoW factor to any Spark AR SceneObject.

Usage

const WOWLib = require('sparkar-wow-lib');

...

const Scene = require('Scene');
const FaceTracking = require('FaceTracking');

...

const hatObject = Scene.root.find('hat');
const mouth = FaceTracking.face(0).mouth;

// Needs to be configured using mouth from FaceTracking
WOWLib.configure(mouth);

// WOWLib.addWowFactor(sceneObject, minScale, maxScale)
// sceneObject : any object from the Scene
// minScale: minimum scale the object should have when scaling down
// maxScale: maximum scale the object should have when scaling up

WOWLib.addWowFactor(hatObject,0.05,0.1);

Demo

Spark AR WOW Lib