topical media & game development
mobile-query-three-plugins-wobble-tquery.geometry.wobble.js / js
tquery.js plugin to handle keyboard
tQuery.Geometry.registerInstance('wobble', function(){
this.each(function(geometry){
THREEx.GeometryWobble.init(geometry);
THREEx.GeometryWobble.cpuAxis(geometry, 'x', 4);
tQuery.world.loop().hook(function(delta, present){
var piSecond = present * Math.PI;
var phase = 200 * piSecond / 180;
var magnitude = 0.25;
THREEx.GeometryWobble.Animate(geometry, phase, magnitude);
});
});
// for chained API
return this;
});
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.