Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lucario1111

Pages: [1]
1
SFML projects / Help! Pool game project.
« on: January 20, 2015, 11:23:08 pm »
Hi all,
Thanks for stopping by and reading this. (This is my first post so sorry if I should have formatted this differently)
I've been trying to work on a pool game for a project written in c++. So far I've gotten down part of the collision function. For most of the collisions, the balls bounce of each other at the right velocity, but sometimes, when they overlap, the balls circle each other and go into a weird twirling motion. A similar situation occurs when a ball is stuck in the side of the window, it vibrates back and forth but remains stuck in the border.
Code is in the attachment, any feedback would be greatly appreciated.

Pages: [1]