Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / 2dshape collision not attaching to sprite after being use with FixSpriteToSkeleton2D()? Bug?

Author
Message
Chmava
10
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 4th Dec 2023 03:43
as the title suggested, the 2d collision is no longer attached to the sprite after using FixSpriteToSkeleton2D().

I have the code use with the spine demo project to prove it below.

The circle is suppose to be where the white square is, but it is doing thing on it's own?



Any help appreciated!
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 5th Dec 2023 22:41
Quick guess is collision is looking at the spine's coordinates and not considering the sprite's offset from the spine.

Can try testing GetSpriteX() vs GetWorldXFromSprite() -> https://forum.thegamecreators.com/thread/227680
Automation on Steam now!
Score Table Jr. on Google Play!

Login to post a reply

Server time is: 2024-02-26 10:29:28
Your offset time is: 2024-02-26 10:29:28