YOUR JOYFUL MEMBERSHIP CREDENTIALS HAVE NOT BEEN IDENTIFIED. PLEASE ENTER YOUR CREDENTIALS OR JOIN OUR JOYFUL COMMUNITY.
ENTER YOUR JOYFUL MEMBER CREDENTIALS REQUEST ACCESS TO OUR JOYFUL COMMUNITY


Pool
02-12-2018, 09:57 PM
Post: #11
 (Print Post)
COR is coefficient of restitution. This determines how much energy is conserved during a collision. The more toward zero, the softer the objects and therefore more dissipation of impact energy. For the pool balls, I's set them between (80-90) percent to account for rails, felt and such. otherwise the collisions will not result in slowing balls unless you want to make things more complex by dealing with coefficients of friction. I would advise against that as it involves a LOT of very time-consuming higher-order math and such.
Find all posts by this user
Like Post
02-12-2018, 10:03 PM
Post: #12
 (Print Post)
You may want to add a COR for the rails too and recalculate the ball velocities accordingly. Otherwise, you will end up with balls indefinitely maintaining speed. There is a lot of complexity to absolutely physically correct results. A close-enough approach is recommended. Many games do exactly the same thing and we do not notice.
Find all posts by this user
Like Post



Forum Jump:


User(s) browsing this thread: 1 Guest(s)




QB64 Member Project - Kings Valley verion one
QB64 Member Project - Kings Court
QB64 Member Project - Kobolts Monopoly
QB64 Member Project - Spinning Color Wheel
QB64 Member Project - Kings Vallery version two
QB64 Member Project - Isolation
QB64 Member Project - Martin Fractals version three
QB64 Member Project - Pivet version one
QB64 Member Project - Input
QB64 Member Project - Exit
QB64 Member Project - Blokus
QB64 Member Project - Rotating Background
QB64 Member Project - Touche
QB64 Member Project - Dreamy Clock
QB64 Member Project - MAPTRIANGLE
QB64 Member Project - Splatter
QB64 Member Project - Domain
QB64 Member Project - Color Rotating Text
QB64 Member Project - Sabotage
QB64 Member Project - Quarto
QB64 Member Project - Martin Fractals version two
QB64 Member Project - Foursight
QB64 Member Project - STxAxTIC 3D World
QB64 Member Project - Line Thickness
QB64 Member Project - Color Triangles
QB64 Member Project - Pivot version two
QB64 Member Project - Full Color LED Sign
QB64 Member Project - Othello
QB64 Member Project - Score 4
QB64 Member Project - Spiro Roses
QB64 Member Project - Swirl
QB64 Member Project - Rubix's Magic
QB64 Member Project - Point Blank
QB64 Member Project - Red Scrolling LED Sign
QB64 Member Project - RGB Color Wheel
QB64 Member Project - 9 Board
QB64 Member Project - Amazon
QB64 Member Project - ARB Checkers
QB64 Member Project - Inside Moves
QB64 Member Project - Basic Dithering
QB64 Member Project - Algeria Weather
QB64 Member Project - Martin Fractals version one
QB64 Member Project - Qubic
QB64 Member Project - Martin Fractals version four
QB64 Member Project - Connect Four
QB64 Member Project - Bowditch curve
QB64 Member Project - Dakapo
QB64 Member Project - OpenGL Triangles
QB64 Member Project - Overboard