velocityDamping to control ball rolling speed

About advanced scenes, and the Thyme scripting language used in Algodoo.

velocityDamping to control ball rolling speed

Postby eeieeio » Mon Jan 08, 2018 4:03 am

Hi,

Lately I have discovered that velocityDamping is a better tool for controlling (slowing) the forward speed of a rolling ball. Is there anyone out there that can explain exactly what velocityDamping is. Keep in mind that I am not a physicist nor did I do well in Physics class in school.

Thanks, Dave (eeieeio)
eeieeio
 
Posts: 23
Joined: Thu Nov 30, 2017 7:02 pm

Re: velocityDamping to control ball rolling speed

Postby Kilinich » Wed Jan 10, 2018 12:10 am

It's [D_x, D_y, D_rot] list where:

D_x - X velocity damping, 0.9 means object will loose 90% of it's speed every second. 0.5 - 50% and so on.
D_y - same for Y velocity
D_rot - same for angular velocity.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: velocityDamping to control ball rolling speed

Postby eeieeio » Wed Jan 10, 2018 7:02 pm

You are, sir, a wealth of knowlege. Thanks
eeieeio
 
Posts: 23
Joined: Thu Nov 30, 2017 7:02 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron