image.png
As in you manually contol it from afar? Redstone links
For computerised aiming? There’s examples in showcase like https://discord.com/channels/244934352092397568/1191746995614912582
The easy way is by abandoning the built-in rotational aiming system and using the ship reader and a PID for elevation and azimuth of the cannon.
The hard way is by learning about how to work around Create’s sneaky Flicker Tally mechanic and using the CBC controls.
In either case the trajectory is calculated with this equation:
Easier to brute force (which I assume means recursive approach)
Than take a readily given analytical formula?..
I’d say that in effort they’re nearly equal (formula is a little bit easier tbh)
But in computational expense there’s a massive difference
It’s uhh
(tan(alpha) + g/(lambda*Vx))x + g/lambda^2 * ln(1-lambda/Vx) = y
(tan(alpha) + g/(lambda*Vx))x = y - g/lambda^2 * ln(1-lambda/Vx)
tan(alpha) + g/(lambda*Vx) = (y - g/lambda^2 * ln(1-lambda/Vx))/x
tan(alpha) = (y - g/lambda^2 * ln(1-lambda/Vx))/x - g/(lambda*Vx)
alpha = atan((y - g/lambda^2 * ln(1-lambda/Vx))/x - g/(lambda*Vx))
Fair enough.
Still, iterating through alpha is easier than iterating through alpha AND the whole path of the projectile
Chat gpt s answer: uhm yes it use trigonometry try using that lmao but nothing else
ChatGPT told me yesterday that v*a * (1 - v) is equivalent to v * (1 - v*a)
So I once more have given up on using it to help me with math problems
Well it’s only telling me this to further gaslight me into believing that a closed solution to logistical functions exists
8 replies not shown · View on Discord
imagen_2023-12-09_220753893.png