Stormworks: Build and Rescue

Stormworks: Build and Rescue

31 ratings
Inverse Ballistic Calculator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
226.090 KB
Oct 26, 2021 @ 4:01am
Nov 20, 2021 @ 12:47am
4 Change Notes ( view )

Subscribe to download
Inverse Ballistic Calculator

Description
Feature
Calculates a cannon elevation angle to hit the target according to inputted target location. Both direct fire mode and indirect fire mode are available.

Settings
  • Select the cannon type before spawn a vehicle with this MC.

Installation
  • Input relative horizontal/vertical distance to target.
  • Input true to 'Fire Mode Input' node to output elevation angle for indirect fire. Since machinegun and autocannons have very short projectile lifetime, they most likely not be able to conduct indirect firing.
  • This MC DOESN'T compensate effect of vehicle tilt. You can fix the output of this MC for more accurate calculation.

Changelog
v1.3 - Corrected the description of target elevation angle output node.
v1.2 - Fixed problems not been fixed in v1.1.
v1.1 - Fixed a problem that not being able to find a direct fire solution when selecting a gun with a short life time.
v1.1 - Improved calculation accuracy.

You can also calculate the elevation angle manually with a spreadsheet linked below.
https://docs.google.com/spreadsheets/d/1XLxc5-1WtyzXfQyvnyBJjMHMaw0T9UGt/edit#gid=1405876495

To upload your creation with this microcontroller to workshop,
My permission - No need.
Credit (e.g. URL of this page) - No need, but i'll be glad if there are.

Enjoy this.
13 Comments
Curtikans Apr 29, 2023 @ 12:19am 
how do i keep it from wiggling back and forth on the relative rotation?
salt Jan 31, 2023 @ 6:00am 
Keeps spinning, what am I doing wrong?
DemonTittyInspector Dec 4, 2022 @ 5:49pm 
It constantly points north upon spawning in, is there a way to fix that bc I have it on a railgun and it likes to turn offcenter? Cheers.
Secret176 Oct 15, 2022 @ 10:50pm 
And if I aim on a hill with the laser will the cannon fire on the hill or at the base of it
Secret176 Oct 15, 2022 @ 10:49pm 
Is this microcontroller small cuz I need a compact one
Boris_Britva Aug 4, 2022 @ 9:36pm 
Дякую ти крутий !
ACE May 11, 2022 @ 8:33am 
if you could change this whenever you wanted..
󠁳⁧⁧󠁳⁧⁧󠁳Ritchi Apr 23, 2022 @ 4:01pm 
Is it possible to change the max range ?
Artillery = 7km
Can it be more ?
Gustav_800mm Mar 30, 2022 @ 6:13am 
Awesome job on indirect fire!
Fisch44hd Feb 7, 2022 @ 11:45am 
can you make a version with a robotic pivot pls bc the velocity one has some problems