Page 1 of 1

Finding the angle the of collision

Posted: Sat Apr 18, 2015 2:39 pm
by jhon123
I am making a Carom game in cocos2dx using chipmunk physics engine. I used raycasting feature to draw a line from striker to piece(Disk) for indication of shot direction, which is working good. Now I want to draw a line which will start from the piece and indicate the direction where the piece(disk) will go after the collision.
Any help will be appreciated i am baldy stucked into it.
Thanks in advance