csimpson.web Posted August 4, 2014 Share Posted August 4, 2014 Hi , Im trying to get a cannon shooting a bullet from the tip of the barrel . the barrel rotates so i cant set static points, currently it shoots from the centre of the image .. how do i change the x/y so i can get it to appear its coming from the tip ?? Link to comment Share on other sites More sharing options...
lewster32 Posted August 4, 2014 Share Posted August 4, 2014 Bit of trigonometry needed here: http://jsfiddle.net/lewster32/5P2zG/ Link to comment Share on other sites More sharing options...
Recommended Posts