Pitch/Roll Proof turret (TankStab/BomberTurret)
5,218 krevedkopro
4.2 years ago
This is a simple turret with even no prediction, but it's HUGE advantage that it uses relative coordinate system for aiming, so it does not care about your craft's pitching/rolling/etc Also it is based on my old test car, where cockpit located inside turret, but current new code allows simple turret offset relatively to the cockpit.
I will add prediction in future.
UPD1: prediction for wing guns is done:
https://www.simpleplanes.com/a/d3mLSU/Bomber-Turret-FT-AI-Test-Plane
Specifications
Spotlights
- asteroidbook345 4.2 years ago
- ThomasRoderick 4.2 years ago
- PlanariaLab 4.2 years ago
General Characteristics
- Created On Windows
- Wingspan 27.5ft (8.4m)
- Length 39.7ft (12.1m)
- Height 16.8ft (5.1m)
- Empty Weight 3,436lbs (1,558kg)
- Loaded Weight 3,582lbs (1,624kg)
Performance
- Wing Loading 1,521.4lbs/ft2 (7,428.3kg/m2)
- Wing Area 2.3ft2 (0.2m2)
- Drag Points 11569
Parts
- Number of Parts 35
- Control Surfaces 0
- Performance Cost 192
I feel challenged
@YamatoAirlines sure
Can I use it in my builds?
I like how you used "Doge" as a comparison lol.
@DenizLion thanks, all work i made was just for having a grounds for publishing this meme
nice meme
Wow this would have definitely helped my As-21 lol
@krevedkopro
Thank you!
@PlanariaLab yes, i used rotation matrix and Euler angles, and then "debugged" final result by adjusting some +- signs, which is not intended by math methods. Maybe there were some mistakes, maybe the game uses left-handed CS and Longitude = -X in fact, i dont know(in fact i get left-handed system after rotation, and just put - before relative X so it become right-handed).
You can use my code, but as there no custom variables in the game, it seems messy and so hard to be reversed. I want to finish work with this, and then post a pdf sheet with detailed explanation how it works.
Super-short instruction how to do rotation:
1)find out sequence of rotations, in SP its ZXY =Heading+Pitch+Roll
2)multiplie rotation matrixs, related to the rotation axes, in opposite direction! so for SP this direction is YXZ, you can find that matrixs in wikipedia and use mathcad etc for multiplying
3)multiply resulted from 2) matrix on column matrix (XYZ) where XYZ - old coordinates and you will get column matrix (xyz) with new coordinates
4)Theoretically, you have to input negative(not in-game sign, but positive = CCW in right-handed CS and CW in left-handed) angles in it, but practically i adjusted signs of angles manually
@krevedkopro this was what i was thinking of the term
INVEST
About the rotation matrix, I knew there was a formula, but I never understood how to use it...
If you don't mind, can I use your code as a reference?
Did you use a rotation matrix after converting to relative coordinates, perhaps?
Anyway, this is great, good job.
@krevedkopro
It's very interesting.
Great FT.
I did a similar thing, just didn't post it. The principle is based on the fact that the guidance system is always directed correctly (in fact, they connected the gyrocompass with the turret)
@Scharnhorst i think you can be interested in it.
@Nerfaddict what about investments?