cool effect

hey this is working whenever you press mouse but how to make it work by clicking only on ball not juzt everywhere...
do i need to check collisions each time with ball..
satarupa wrote:
hey this is working whenever you press mouse but how to make it work by clicking only on ball not juzt everywhere...
do i need to check collisions each time with ball..


I made it the same way as the liquid example if you want it to only work when clicking on the ball you will need to check if the mouse point is in the shape
[url]http://personal.boristhebrave.com/permanent/09/Box2DFlashAS3Docs/index.html
[/url]

Original thread: https://box2d.org/forum/viewtopic.php?t=2055