Ajedi32 Posted May 7, 2014 Share Posted May 7, 2014 Quick question: I want to update a sprite's P2 body force to equal a constant value in a given direction. With polar coordinates, that's easy: I just set the magnitude and direction to what I want. With phaser points though, the only function for setting a point's coordinates directly (Phaser.Point#set) only seems to support cartesian coordinates. Is there an easy way to set a Phaser point to a set of polar coordinates, without having to convert from polar to cartesian coordinates myself? (Cross-posted on StackOverflow) mjohnsonengr 1 Link to comment Share on other sites More sharing options...
Recommended Posts