AUTO-AIMED TURRET AK-2100
A little about the formula
Horizontal rotator:
(TargetHeading - Heading + rate(TargetHeading)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))/180
1000
here is the projectile speed of the cannon
Vertical rotator:
clamp((TargetElevation + rate(TargetElevation)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))* 9.81)/(pow(1000, 2)))/2),-10,45)/45
1000
here is the projectile speed of the cannon, -10,45
- limiting angles of guidance
Upd.
Time does not stand still and gradually I came to a more sophisticated formula. She is somewhat more accurate
Horizontal:
(TargetHeading - Heading + (rate(TargetHeading)) * (((v * sin(asin((TargetDistance * 9.81)/(pow(v, 2)))/2))/9.81) * 2)
)/angle
where
v
- projectile speed
angle
- rotator range of motion
Vertical:
clamp(TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v + (asin((cos(TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v) * (TargetDistance + rate(TargetDistance)*TargetDistance/v) * 9.81)/(pow(v, 2)))/2) -PitchAngle*cos(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v) - RollAngle*sin(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v),nA,pA)/angle
where
v
- projectile speed
nA
- negative vertical guidance
pA
- positive vertical guidance
angle
- rotator range of motion
Upd2
Upd3
Specifications
Spotlights
- This craft has been featured
- Mekomara 4.1 years ago
- vonhubert 3.6 years ago
- RussianAce 4.1 years ago
- EchoWhiskey11 4.0 years ago
- Alisuchanka 4.1 years ago
- SyntheticL 3.6 years ago
- Jacobdaniel 4.0 years ago
- Renameduser4 4.0 years ago
- Sarnnox 3.6 years ago
- POTETOZ 4.0 years ago
- ChrisPy 4.1 years ago
- ZetaAvalon 4.1 years ago
- Wolf211 4.1 years ago
- FlyingHueman 4.0 years ago
- DarthAbhinav 4.1 years ago
General Characteristics
- Predecessor ak-2100
- Successors 21 airplane(s) +189 bonus
- Created On Android
- Wingspan 16.4ft (5.0m)
- Length 26.8ft (8.2m)
- Height 16.1ft (4.9m)
- Empty Weight 149,236lbs (67,692kg)
- Loaded Weight 155,289lbs (70,438kg)
Performance
- Wing Loading 439,839.3lbs/ft^{2} (2,147,483.6kg/m^{2})
- Wing Area 0.0ft^{2} (0.0m^{2})
- Drag Points 8812
Parts
- Number of Parts 88
- Control Surfaces 0
- Performance Cost 253
I already wrote that the free-use formula
@SenSkysh Please teach us step by step how to use Variable setters
I have look for auto aiming for a long time.
Yesterday might i test for times and made it
But today i found this auto aimed lol
Thank you very much
@SenSkysh yo I cant access table
thanks for the code
Does this is working also for gun?
So I want to use just the code but I have no idea how any of it works. Can you reply with the value representing the projectile velocity and in brackets? I'm trying to make torpedo launchers.
@yisrael create it yourself, use this one, or see among my builds
hey man can u build smthn like this , im making a flying warship so i need a super powerfull turret
@SenSkysh ok thanks it works very well! Very useful for plane turrets
@Neeguh any
@SenSkysh so any rotator works?
@Neeguh rotator that raises the cannon
Oh and also, where do you input the vertical code? An upright hinge rotator or a sideways rotator?
@Neeguh invert
My rotator rotates to the left, opposite to my target which is on the right. What do I do
@SovietBias1 I once made a table and use case
@SenSkysh, and how do i do that? ( sorry, I’m just trying to get myself started on some funky trees, not really sure what to do )
@SovietBias1 set start heading to 180, this should help, hopefully
@SenSkysh , hey bud, thanks for the the commands but how do i use the code for a gun that faces the opposite direction
Image below : https://ibb.co/zSY19Bh
@Doritos420 shortestAngele=true in rotator settings
What I have to change to limitate the Horizontal angle and not make the turret spin a full circle?
Using the table makes the gun turn in different directions and just kill my vehicle
@ShiraLuzy yes, but it's harder to use