Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
thomas_b

TransformManager & TweenProxy3D problem

Recommended Posts

I use TransformManager on a complex structure. Somewhere inside I use TweenProxy3D. TransformItem fails with an access to an empty transformation matrix. I understand the reason.

 

This brings me to my question. How should I deal with the transform.matrix or transform.matrix3D equals null situation considering I am using lots (and I am a fan) of the greensock classes?

 

It seems that using transform.matrix3D will cause a lot of problems looking at the code - cleaning it by setting it to null opens another can of worms - any insight beyond?

 

thanks - thomas

Link to post
Share on other sites

First of all, glad to hear you're enjoying [many] GreenSock tools :)

 

TransformManager is only for 2D transformations. The only time you'd run into that situation you described (transform.matrix null because transform.matrix3D is defined) is when you've applied 3D transformations to the object (which of course means it's not something TransformManager should be transforming). See what I mean? So I would either not apply any 3D transformations or just set the transform.matrix3D to null to remove those transformations. Does that make sense?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×