Vincehood Posted February 9, 2021 Share Posted February 9, 2021 Hello, I am experimenting with some basic gravity simulation but I am struggling... I am attempting to use a friction variable to simulate the energy loss due to friction when bouncing. With a friction value inferior to 1, the ball should gradually bounce less and eventually stop. However I do not get the wanted effect; in such case, the ball stops immediately. I assume this is due to my lack of knowledge about how multiplication works in Intybasic. Additionally I think I don't use properly PRINT to display the velocity (#dy)... since I get some jam (but this is not the core issue). I include the code sample (friction is set to 1 there so the ball bounces indefinitely - I have commented away the 0.9 value) Am I approaching the problem in a totally wrong way? Thanks gravity.bas Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.