Profile image

Example of multi-directional automatic aiming

2,703 Jeffrey145  1.9 years ago
211 downloads
Auto Credit Based on SenSkysh's AUTO-AIMED TURRET AK-2100

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.

Spotlights

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
  • Log in to leave a comment
  • Profile image
    2,703 Jeffrey145

    This code is free to use~

    Pinned 1.8 years ago
  • Profile image

    @Jeffrey145 nevermind

    1.7 years ago
  • Profile image

    @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)

    1.8 years ago
  • Profile image
    2,703 Jeffrey145

    @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.

    1.8 years ago
  • Profile image

    @Jeffrey145 thanks for sharing, Btw, how to change from Canon configuration to Machine gun?

    1.8 years ago
  • Profile image
    3,745 IndoCorp

    @Jeffrey145 thanks

    +1 1.8 years ago
  • Profile image
    2,703 Jeffrey145

    @IndoCorp Yes~

    +1 1.8 years ago
  • Profile image
    3,745 IndoCorp

    can i use this technology?

    +1 1.8 years ago