mischka Posted December 17, 2016 Share Posted December 17, 2016 Hey, so with spaceship.rotation = game.physics.arcade.moveToPointer(spaceship, 60, game.input.activePointer, 500); my object (a spaceship) will move towards my mouse position and rotate towards it. But i don't want to rotate to the mouseposition. I want to rotate the spaceshop to a specific point for example the middle of the screen. So how can i achieve that without writing my own function. I did not found anything in the documentary that could help me. Everything is rotating to the x,y coordinates. Would be glad for some help. Greetings Link to comment Share on other sites More sharing options...
squilibob Posted December 21, 2016 Share Posted December 21, 2016 have you tried just using the moveToPointer function by itself and then setting rotation to where you actually want it? Link to comment Share on other sites More sharing options...
Recommended Posts