Jump to content

center point (global) of sprite


ofzach
 Share

Recommended Posts

Greetings,

I am working on a project where I have a bunch of sprites that I'm manipulating the scale, rotation, anchor point and position of.  

I need to get their original center point (not their current pivot point) in global coordinates after these transformations and am a little lost with the best way to do that.

I see worldTransform -- is that useful?   If there's an example or short snippet it would be really helpful, even just an avenue to look down. 

thanks much! 

zach

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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