I'm trying to make a shape that follow the mouse
but i can't get the right position of mouse in the box2d world
i guess i should be using box2d forces?
please help, thanks
but i can't get the right position of mouse in the box2d world
Code:
public function follow(e:Event):void
{
TweenLite.to(this, 0.5 ,{x :mouseX, y: mouseY , ease:Cubic.easeOut });
}
{
TweenLite.to(this, 0.5 ,{x :mouseX, y: mouseY , ease:Cubic.easeOut });
}
i guess i should be using box2d forces?
please help, thanks