Share Posted March 24, 2020 Just watched your new video on the coordinates and relative spaces. Very cool, this is often something I have to deal with. Will it work with pixi? Can it be applied to sprites nested in containers? Cheers Matt Link to comment Share on other sites More sharing options...
Share Posted March 24, 2020 Hey macguffin. Most regulars here don't use PIXI too often. Can you throw together a minimal use case demo of how you're hoping it would work using PIXI? My guess is it'd take you less time to make a demo than us and then it'd also potentially be more relevant to you Link to comment Share on other sites More sharing options...
Author Share Posted March 24, 2020 NP I'll put something together Link to comment Share on other sites More sharing options...
Share Posted March 24, 2020 Nah, sorry, but the algorithm leverages DOM-specific things like getBoundingClientRect() and element context (nesting) to figure things out. If Pixi offers a similar method, it may be possible to recreate something for that framework but it's definitely not compatible with GSAP's current methods. 2 Link to comment Share on other sites More sharing options...
Share Posted March 24, 2020 You should be able to do something similar to that using a combination of toLocal and toGlobal methods. It's been a while since I've done it, but I know it is possible. 4 Link to comment Share on other sites More sharing options...
Author Share Posted March 24, 2020 Thanks Jack, I suspected as much. Yeah @OSUblake I do similar stuff with those methods and other various tricks. Just love to drive everything with gsap where possible - it always keeps it so neat. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now