I’m trying to work out some basic things about a component, and while I know I should understand the maths here, I’m missing something. Hopefully someone can point out my school boy errors.
I have a component with physics turned on, a mass of 1.0kg, linear dampening at 0.001 and angular dampening at 0 and gravity turned off.
If I add a force to the component with a vector of x=707.107, y=707.107, z=0, this gives a length of 1000.
because acceleration = force / mass I know the acceleration is 1000/1 = 1000
If the component has an initial speed of 191.477991 (the length of the get component velocity vector) and the delta seconds is 0.00833 I can predict that the next tick i will get a new speed around 8.33000cm/s higher.
And it is, roughly. Actual difference as below is 8.3167 but close enough…great.
current velocity: X=135.395 Y=135.395 Z=0.000 length: 191.477991 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008333
current velocity: X=141.276 Y=141.276 Z=0.000 length: 199.794739 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008333
current velocity: X=147.157 Y=147.157 Z=0.000 length: 208.110796 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008333
If I now turn on gravity on the component my results are way different.
current velocity: X=45.066 Y=27.942 Z=-0.003 length: 53.025614 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008333
current velocity: X=47.461 Y=29.331 Z=-0.003 length: 55.79295 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008334
current velocity: X=49.855 Y=30.719 Z=-0.003 length: 58.559017 new force vector: X=707.107 Y=707.107 Z=0.000 length: 1000.000309 delta seconds: 0.008333
The change in speed has gone from 8.33 down to 2.76 roughly.
Ok, so this is gravity at work, but what is Chaos doing to reduce my velocity down so much?
What do I need to do to my calculations to account for gravity.