This a simple ball bouncing simulator. It was made with only one purpose and that was to learn SFML. It is a very fun beginner coding project. It has edge detection and deflection. Use arrow keys to move the ball around. There are "cout"s to find the actual velocity of the ball in a free fall and the time taken for it to fall (In meters and seconds).You can mess around with the values such as ballSpeed, gravity and bounce fac etc (Try changing the max velocity or bounce factor to make the ball bounce indefinitely). If you haven't studied Object Oriented Programming (classes and objects), you can use the version previous to the OOP conversion and it will still work fine.
-
Notifications
You must be signed in to change notification settings - Fork 0
Mubicool/Ball-Simulator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple simulation of a ball in Gravity and rebound from a surface using SFML .
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published