Jump to content

TweenLite with TypeScript?


Recommended Posts


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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...