angeltrickz 0 Posted May 2, 2018 Report Share Posted May 2, 2018 How to rotate body with Arcade physics? when trying to just rotate the sprite not the body Quote Link to post Share on other sites
NhatNM 0 Posted May 2, 2018 Report Share Posted May 2, 2018 maybe somethings like this. function create() { game.physics.startSystem(Phaser.Physics.ARCADE); pipes = game.add.group(); var ledge = pipes.create(100,100, 'ground'); pipes.angle = 90; // <-- this game.physics.arcade.enable(pipes); pipes.enableBody = true; pipes.setAll('body.immovable', true); } function update() { pipes.angle ++; // <-- or this } I'm starter, sorry if I'm wrong understand Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.