Finding the angle the of collision

Official forum for the Chipmunk2D Physics Library.
Post Reply
jhon123
Posts: 2
Joined: Sat Apr 18, 2015 1:47 pm
Contact:

Finding the angle the of collision

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests