Hey guys,
Sure this has been answered but I am having trouble finding an answer.
Working with Three.js and want to condense my tweening.
I remember reading about a new way to tween values of properties in one tween.
This...
TweenMax.from(sprite.position, 5, {z:40})
versus...
TweenMax.from(sprite, 5, {position:{z:40}})
Hm, that's a little tricky in Three.js, but I think this'll do it:
var _gsScope = (typeof module !== "undefined" && module.exports && typeof global !== "undefined") ? global : this || window;
(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () {
"use strict";
var _xyzContexts = "position,scale,rotation".split(","),
_contexts = {x:"position", y:"position", z:"position"},
_DEG2RAD = Math.PI / 180,
_visibleSetter = function(target, s