Jump to content

How to make ball spin while bouncing?


woratana
 Share

Recommended Posts

I'm not what the phaser syntax would be but here's the general formula:

  ball.rotation += ball.vx / ball.radius;

But you'll also need to add a bit of gravity and friction before you see the kind of natural spin I think you're looking for.

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...