jellix Posted August 4, 2016 Share Posted August 4, 2016 Hi, I've downloaded http://greensock.com/tweenlite and implemented the TweenLite.js within my index.html. Then I've downloaded https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/greensock/greensock.d.ts and referenced the file within my .ts file. So I'm able to call a TweenLite.to(myMesh, 2, {y:20}); But it doesn't do anything and I also don't get an error. Another question is: the property "y" is not defined for ma mesh because it's a property of "maMesh.position". So should I write TweenLite.to(myMesh.position, 2, {y:20}); ? How do you tween Objects with TypeScript? Btw.: I think that the Animation-Class of babylon is too hard to use for my needs. Quote Link to comment Share on other sites More sharing options...
adam Posted August 4, 2016 Share Posted August 4, 2016 24 minutes ago, jellix said: How do you tween Objects with TypeScript? The same way you tween objects with javascript. 25 minutes ago, jellix said: So should I write TweenLite.to(myMesh.position, 2, {y:20}); This makes sense to me. Did you not try it? If you don't have any luck here you might want to go here: http://greensock.com/forums/forum/11-gsap/ Quote Link to comment Share on other sites More sharing options...
adam Posted August 4, 2016 Share Posted August 4, 2016 http://www.babylonjs-playground.com/#5UZNC#1 JohnK, Nabroski and jellix 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.