In the pool example, the ball gets a force this way:
t:applyForce( (t.x - event.x), (t.y - event.y), t.x, t.y )
This is because it goes in the direction opposite from the touch coordinates, and this i understand.
I’m playing with it and I’m trying to have it shoot the ball exactly in the direction of the touch
t:applyForce( event.x, event.y, t.x, t.y )
It kinda works, but after the first applied force it behaves in a strange way, it may be that I don’t really understand exactly the way this force is applied, so I’m asking: how should I do it?
Is it possible to set an angle and a velocity like 90* force of 100 joules?
Thanks [import]uid: 118481 topic_id: 20602 reply_id: 320602[/import]
