Finding the angle the of collision

Official forum for the Chipmunk2D Physics Library.

Finding the angle the of collision

Postby jhon123 » Sat Apr 18, 2015 2:39 pm

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
Posts: 2
Joined: Sat Apr 18, 2015 1:47 pm

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest