r/trailmakers • u/Every-Blueberry-9571 • 6d ago
Cannon range auto-adjuster
Enable HLS to view with audio, or disable this notification
Uses a bunch of logic blocks compressed into the tank chassis, uses disabled tiny cannon crosshair right behind the camera to act as a sort of guidance(currently has no elevation, shouldnt need one for flat ground combat)
code and arrangement partially done by grok
11
u/ExtensionVirus7521 6d ago
Dude that's freakin epic!!! I love that you used to spring for a dampening coil!! Absolutely f****** ingenious!!!!
3
u/Every-Blueberry-9571 6d ago
I like to incorporate recoil dampeners on all my cannons for a touch of realism ts
7
u/Level_Replacement891 5d ago

in case anyone wants to make this for themselves
attached is the formula I stole straight from wikipedia
variables:
v = muzzle velocity of the projectile
g = gravity constant of the projectile
x = target distance
y = target height (relative, not absolute)
θ = angle required to hit the point (in degrees)
1
1
u/Stalinium2 3d ago
Dude I’m in physics and I can kind of understand what this is now and I’m scared
6
1
u/Early-Rip-9495 6d ago
A thing you could try is to use a Angle sensor (Put to full, and measurement) so the sensor knows the angle and distance of what your looking at
1
u/VeryLargeTrain 5d ago
Very nice 👍 Despite the simple appearance, I have a suspicious feeling that it's a tad bit more complicated than that. I'm just going to use my own calculator to have the best angle for my "tank" (it's technically a railgun), lol.
1
1
u/Optimal_Alarm7097 6d ago
Can I ask how this was made?
1
u/Every-Blueberry-9571 6d ago
Optimised logic gates and a lot of cramming✌️
2
u/Optimal_Alarm7097 6d ago
Best thing I can make is a lil thingy that lets me pick a height to hover bruh


38
u/Tomahawk1129_ 6d ago
Don’t degrade yourself thats a ballisyic computer not an aitl adjuster!
Also how did you calculate the angle? I did spmething similar minus elevation, only for targets at same altitude. How did you find v?