frokenstein Posted December 7, 2014 Share Posted December 7, 2014 I make a heat seeking nuke in my game. I utilize this function to help it track its target:this.game.physics.arcade.angleBetween(nuke, this.alien)When the nuke is launched and the target is to the right of it, it tracks fine. But if the target is to the left, the nuke just oscillates slightly and doesn't turn all the way around to move toward its target. Does angleBetween not take this into account? Link to comment Share on other sites More sharing options...
markusT Posted December 8, 2014 Share Posted December 8, 2014 Check out Game Mechanic Explorer, there are many samples on Bullets and Missiles. http://gamemechanicexplorer.com/#homingmissiles-1 Link to comment Share on other sites More sharing options...
frokenstein Posted December 8, 2014 Author Share Posted December 8, 2014 Thanks, this looks perfect. Link to comment Share on other sites More sharing options...
ChrisPetrescu Posted August 2, 2017 Share Posted August 2, 2017 The missile mode should be added to the arcade section in the examples, very useful indeed! Link to comment Share on other sites More sharing options...
samme Posted August 3, 2017 Share Posted August 3, 2017 Link to comment Share on other sites More sharing options...
Recommended Posts