Discuss Scratch

mr-dash332
Scratcher
21 posts

Rolling ball Gravity code

So basically I have a ball character that I want realistic gravity on him. For example he'll bounce off a wall if going a certain speed and will go down a slop. How would I code this gravity.
Kqax
Scratcher
37 posts

Rolling ball Gravity code

mr-dash332 wrote:

So basically I have a ball character that I want realistic gravity on him. For example he'll bounce off a wall if going a certain speed and will go down a slop. How would I code this gravity.
Ball physics are complex; it is really difficult to do. If you don't have much math and coding knowledge, you can't really do it.
Kqax
Scratcher
37 posts

Rolling ball Gravity code

mr-dash332 wrote:

So basically I have a ball character that I want realistic gravity on him. For example he'll bounce off a wall if going a certain speed and will go down a slop. How would I code this gravity.
Example of ball physics being used: Ball Physics Scroll v0.4

Last edited by Kqax (March 2, 2024 03:23:31)

mr-dash332
Scratcher
21 posts

Rolling ball Gravity code

Thanks for the help

Powered by DjangoBB