|
| 10 Sep 2016 05:46 PM |
How much velocity is reduced from an object when it hits a wall on roblox?
Does anyone have an equation or formula |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:47 PM |
| just constantly get the velocity and then when hit, get the velocity before it hit |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:48 PM |
| although i suck at math ^ adding on to thedaily's im guessing u subtract the old velocity and the new velocity to see how much energy/velocity was lost |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:50 PM |
local speed = 0 game:getService("RunService").Stepped:connect(function() speed = script.Parent.Velocity.Magnitude end)
script.Parent.Touched:connect(function() local p = speed game:getService("RunService").Stepped:wait() print(speed-p) end) |
|
|
| Report Abuse |
|
|