|
| 12 Nov 2017 04:29 PM |
I'm making a game and need acceleration and g's in the GUI, but have absolutely no idea how to calculate it. I have a basic idea of how to calculate acceleration that doesn't work, but G's is beyond me.
|
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 05:17 PM |
Continuously take the difference in velocities of a part over a period of time that you can you pick.
In Roblox one G is 196.2 studs/s^2, so you'd just divide acceleration by that to get G's. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 12 Nov 2017 05:28 PM |
20 studs is 1 meter
print((object.Velocity.Y/20).." meters per second") |
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 05:37 PM |
G's are a measure of acceleration. -_-
Reflect on this. "How do I calculate speed AND miles per hour? I can do speed I think, but not miles per hour."
|
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 06:36 PM |
local acc = (velocity1-velocity0).magnitude / interval
local Gs = acc / workspace.Gravity |
|
|
| Report Abuse |
|
|