ROBLOX is built on a comprehensive physics engine, and our developers are constantly optimizing it so it can handle interactions between more physics objects and players, in an increasingly accurate and consistent way. We recently put our engine to the test with a new projectile-motion simulator – and most satisfying armament – the ROBLOX Potato Cannon. According to the results, which we describe in this article, we’re on the right trajectory.
The ROBLOX Potato Cannon mimics its real-world counterpart, a contraption traditionally constructed using a pipe and some means of generating air pressure. The difference is our potato cannon automatically performs the calculations you need to hit your target. We constructed the potato cannon so it computes the launch angle and, with the velocity at a constant 300 studs/second, the correct trajectory for your now-deadly potato. If your target is outside its range, it defaults to the maximum distance it can shoot.
Let’s look at how we calculate a potato’s trajectory for maximum distance and how the ROBLOX Potato Cannon stacks up against real-world physics.
Potato Cannons: ROBLOX Vs. Real World
In ROBLOX, one real-world meter is 20 studs. We can use that conversion to determine ROBLOX’s acceleration due to gravity. In the real world, acceleration due to gravity is 9.81 meters / second^2. When we multiply that number by 20 studs, we arrive at the acceleration due to gravity in ROBLOX: 196.2 studs / second^2.
With the muzzle velocity of our Potato Cannon at 300 studs/second, we can determine the Maximum Distance, Maximum Height and Time Traveled (twice the time it takes to reach the maximum height, assuming there is no air resistance) for the projectile.
θ (Theta) is the launch angle of the projectile. The projectile will reach peak distance when θ = 45° – see the Wikipedia article on projectile motion for more information.
When we plug in our values for velocity (300 studs/second), launch angle (45°) and acceleration due to gravity (196.2 studs / second^2), we can compute the Maximum Distance, Maximum Height and Time Traveled as:
We can compare these calculations to the in-game performance of the ROBLOX Potato Cannon. Our results show that its trajectory is almost exactly what we calculated in the above formulas.
You can see that the distance, height and time traveled, as simulated by ROBLOX’s physics engine, are very close to the real-world values. We suspect the marginal error in Maximum Distance is probably due to the “touch” events not polling fast enough and the discrepancy in Maximum Height is due to the Lua-side polling performed by the script.
Sure, the ROBLOX Potato Cannon is an intimidating piece of virtual gear you can tote around with your character. But it’s also a physics lesson in disguise — one that verifies the accuracy of ROBLOX’s engine.







I thought this was funny because potato cannons were the most obvious for physics.
I dont get this at all :|
Strange that 300 studs is 1 meter because I thought 1 stud was half of the leg of the roblxians…
No, one real world meter is 20 studs. The potato’s initial launch speed is 300sps (Studs Per Second) which would equal roughly 15mps (Meters Per second) in the real world. Pay attention and learn to read. XD JK
I actually been needing some conversion between Real World Speed/Distance and ROBLOX Speed/Distance. TY ROBLOX. But I still need how the speed of cars is measured. When you config the speed of a car are you configuring it’s max speed in SPS or Roblox Meters Per Second?
This is one of a group of gear items on ROBLOX that completely break the game, as it does far more damage that it’s supposed to. If you consider the potato cannon overpowered please read and support this suggestion:
http://roblox.uservoice.com/forums/158291-roblox-features/suggestions/2928015-fix-the-most-severely-broken-gear-items-
huh?
wow impressive….only if i knew what it was saying…
It doesn’t seem right for it to be 20 studs equaling a meter. That means with how many studs tall the player is (5), the characters are less than a foot tall!
We old are lego sized, it seems normal
l pm’d Sorcus saying ‘Your A Troll’ He replied; “Yeah l guess, have a couple hundered k for ya trouble
Sorcus”
That’s how l got rich! -True-
Wait, if 20 studs is like a real life meter…and that characters usualy walk at 16 studs per seconds…it means they’re super slow!
OVERPOWERED for just an potato, it shoots very long distance and is like a sniper, also its one hit KO
Ah, but what about the air-resistance when the potato is shot?
I’ll show you physics, in this place I built (a while ago), there are physics gone mad: http://www.roblox.com/Toy-Box-Brawl-place?id=65052722
onyl if those where in the christmas presents because i earn alot
sorry typo *only
lol,what if you changed 20 studs=1 meter to 30 studs=1 meter,I’m pretty shure that would make it so you would have to change everything like…gravity:9.83/seccond^3 then im pretty shure you would change all that and it would look totaly different!
Guys, you do realize that if 20 studs is a meter than each robloxian is 9 1/4 inches tall.
impressive math…….i wish i could understand it XD
i cant wait till next years rgt im going
See the quantrum of the math is 20 right?20=300 so that means the average raidus diameter simplephone would be 9.134 Right? Correct me if im wrong but then the potato cannon would fly at a speed that would kill an eleplant since the trajectory rate to kill a man is 5.465 rounded to 5 then making an average joe guesstimate the trajectory would be 9.14 easy! And thats how to kill the eleplant! But anyways to complete the math youd have to understand Calculus,most importantly Aernestz theory. Therefore its 20=9.14!=To ig3 Understand? Nah Im just messing with you this is to hard :|
roblox should make the water more realistic by having it splash, instead of making a hole when it is exploded
They also should make it spread to areas.
I aint got a clue what there talkin bout!
This means the studs are meters, or at the ratio of a meter.
If it’s just a meter, we take LARGE steps.
Whoops, didn’t see the 1 stud == 1/20 of a meter.
Hmmm… so is this proof that studs = meters?
No… studs are nothing like metres and gravity on Earth is nowhere near 192 metres/second.
Woah, what does this mean exactly?
That is impressive! Good work!
Oh cool roblox
Plz come to my UPDATED PLACE!!!!!!!!!!!
Yeah I am buying
Interesting
Put it in idiot?
This weapon is OVERPOWERED in catalog heaven
My mind is blown with what we can do with technology
Wow. Thats very hard math. Looks coool, ima test it in gear test.
They need to be combustible lemon cannons.
AND I’M A POTATO!
Ill help With the veolicty if it dosent work
I think that is amazing how you can make a potato cannon in the virtual world, and a potato cannon in the physical world; and sync them almost exactly! Good job :D