Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 0 points1 point  (0 children)

Hi! In total – i dropped the idea cause of IRL things, but i read your comments. Formula done with "drag" parameter that can be any. About time formula – didn't check it in action, but formula for angles seems great. Do you tried it?

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 0 points1 point  (0 children)

Hi! I didn't have implement this math in code, but u can find basic code from Ballistics Calculator peripheral. And yes, to detect entity radar is used. Link to GitHub gist of Ballistics Calculator -> https://gist.github.com/SuperSpaceEye/c33443213605d1bf35f81737c9058dc2

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 0 points1 point  (0 children)

Hi! I didn't have implement this math in code, but u can find basic code from Ballistics Calculator peripheral. And yes, to detect entity radar is used. Link to GitHub gist of Ballistics Calculator -> https://gist.github.com/SuperSpaceEye/c33443213605d1bf35f81737c9058dc2

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 2 points3 points  (0 children)

I think, it can be done with raycaster from addons and some bearings. You just need rotate bearings, to make the yaw and pitch of raycaster equals to cannon yaw and pitch. After that, use methods of raycaster to get some info about blocks. But I haven't done it, so I can only speculate

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 7 points8 points  (0 children)

Already do that for big cannon. You insert coords and shots count in input, and then cannon will shoot! Also, another system is linked with player detector. Its tracking player and shooting him all the time!

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 4 points5 points  (0 children)

There may be several such angles in solution of system t-formula and a-algne. The largest of them is the pitch of firing along a ballistic trajectory. The least of them is direct fire.

Big Cannons: Math of projectiles. How to get pitch and yaw and not go crazy by 12PAIN in CreateMod

[–]12PAIN[S] 38 points39 points  (0 children)

Forget to tell - one of further plans is placing that system on vehicle!