jackjack Posted September 27, 2018 Share Posted September 27, 2018 Hi, I need to rotate the player's spaceship in zero-gravity space. I tried applying a delta to the ship's angular velocity in update(). However, I could not find an API to get the current angular velocity. I also tried applying a force to the ship (a vector perpendicular to the ships orientation at the front and back of the ship) but it seems a bit complicated for the job, and the results were erratic (which may be my bug). Any suggestions? Thanks! Link to comment Share on other sites More sharing options...
cornstipated Posted September 28, 2018 Share Posted September 28, 2018 physicsenabledgameobject.body.angularVelocity = 100; positive for clockwise, body also has angularDrag for damping, both are in degrees per second Link to comment Share on other sites More sharing options...
jackjack Posted September 28, 2018 Author Share Posted September 28, 2018 Thank you very much! That's exactly what I needed. Link to comment Share on other sites More sharing options...
samme Posted September 28, 2018 Share Posted September 28, 2018 Phaser.Physics.Arcade.Body#angularVelocity Link to comment Share on other sites More sharing options...
Recommended Posts