Many thanks to SenSkysh for inspiring me with excellent work
Introdution
This is a code derivative based on SenSkysh's AUTO-AIMED TURRET AK-2100. As the title suggests, these 4 weapons work in four directions while maintaining their own auto-aiming.
The following code is all based on the above code with slight modifications.
Explain
Basically, to make these four weapons achieve the above functions only need to fine-tune through the code of the horizontal spinner, as shown below
Original SenSkysh code: (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
Modified code: ( a - (TargetHeading - Heading) + (rate(a - TargetHeading)) * (((v * sin(asin((TargetDistance * 9.81)/(pow(v, 2)))/2))/9.81) * 2)
)/angle
The key extra a
is the angle the weapon's facing angle.
For the orientation angle of the weapon, please refer to the following figure,the black words in the picture shall prevail.
0 degrees in the picture is the front of the craft.
At present, only 4 right angles are actually I test, and other angles are theoretically applicable. Hope this helps someone in need.
Others
The four weapons of this craft need the target to automatically aim within a range of 10 kilometers to act, and the gun will not activate until within 4.5 kilometers. So if you want to test with this craft, let the target build with aggressive settings.
Specifications
Spotlights
- IndoCorp 2.7 years ago
- Rjenteissussy 2 months ago
- BARREND 2 months ago
- dabestsock 2 months ago
General Characteristics
- Predecessor AUTO-AIMED TURRET AK-2100
- Created On Android
- Wingspan 27.7ft (8.4m)
- Length 27.7ft (8.4m)
- Height 5.7ft (1.7m)
- Empty Weight 3,915lbs (1,776kg)
- Loaded Weight 3,915lbs (1,776kg)
Performance
- Wing Loading N/A
- Wing Area 0.0ft2 (0.0m2)
- Drag Points 8969
Parts
- Number of Parts 90
- Control Surfaces 0
- Performance Cost 378
This code is free to use~
I'll tag you my battleship if it's done, it's really helpful, mostly were the cannon activation, but still, Thanks
@Jeffrey145 nevermind
@Jeffrey145 No, no, i mean, Change from Sin and Pow, to Sqrt,
This FT has no bullet velocity for more accurate:
((( 180 - (TargetHeading - Heading) + (rate(TargetHeading) * (TargetDistance / 750)))/ 180) * clamp01(TargetDistance > 2) * clamp01(TargetDistance > 2)
@PabrikBerat Use the overload to reduce the firingDelay of cannon to 0.1, and increase the ammoCount will have the effect of the machine gun.
@Jeffrey145 thanks for sharing, Btw, how to change from Canon configuration to Machine gun?
@Jeffrey145 thanks
@IndoCorp Yes~
can i use this technology?