zbzzn Posted November 7, 2013 Share Posted November 7, 2013 Hi, I have a sprite of a tank, it has an anchor and it rotates around that anchor. I want to create a shot from the tank barrel. I know the offset of the tank barrel hotspot relative to the original sprite. How do I calculate the point where the shot should be generated in the world (i.e. at the barrel hotspot)?Should I use Point.rotate or is there a better built in method?(A code snippet would be much appreciated). Thanks,Boris. Link to comment Share on other sites More sharing options...
zbzzn Posted November 7, 2013 Author Share Posted November 7, 2013 OK, I found why I failed to do it. There is a small bug in Point.rotate. Opened an issue on GitHub. It all works now. Link to comment Share on other sites More sharing options...
Recommended Posts