Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Physics Bomb Sight Pt2
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Creative
Microcontrollers: Calculation, Microcontroller
Tags: v0.7.8
File Size
Posted
Updated
18.327 KB
2 Jun, 2019 @ 3:26pm
2 Jun, 2019 @ 3:38pm
2 Change Notes ( view )

Subscribe to download
Physics Bomb Sight Pt2

Description
This is probably the first ever controller of it's kind on Stormworks.

A bomb sight, that's right!
Thanks to the addition of cameras :D

This controller is basically two physics equations: d=Vt and t=sqrt(2x) / sqrt(a)

Those two equations will find the distance that the bomb can travel at given speed and altitude. Afterwards I just used some math to figure out the angle for camera to pitch.


Just note that you need to use a robotic pivot and a stationary camera. Don't use the Gimbal camera because it has funky rotation values.

Also here's the link to my first bomber equipped with this sight, try it out. :)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1759482169
20 Comments
Random 4 Mar @ 11:28pm 
For anybody do not use this!, make your own (I have had my troubles with it and is forced to use it due to having no idea how lua works), But!, Altitude is a dead end so it wont caculate your altitude as it does nothing. This does not know the mass or drag off the bombs, so it will most likely always miss.
Cove 24 Jun, 2024 @ 10:13pm 
it would be nice if this had a property slider for fine tuning biased on a bombs weight / drag
!GoogleTime34! 26 Mar, 2024 @ 5:28pm 
edit the altitude doesn't do anything
the equation in the function for the altitude is literally luca private creation so better
!GoogleTime34! 26 Mar, 2024 @ 5:17pm 
you forgot to connect the altitude in the micro controller BTW
Security Cam #01 26 Dec, 2023 @ 7:42pm 
making a generic Tupolev jet plane, thanks for posting this, it'll really help!
listopad09 8 Aug, 2023 @ 2:40am 
boy i cant wait to use this on my b-29 im working on rn
But Hull 13 Dec, 2022 @ 2:45pm 
Amazing mic can i use it on my plane
Secret176 27 Nov, 2022 @ 7:13am 
does it still work cuz i tested the bomber and it didn't hit it had an error of about 400m
wdubois.slz 10 Nov, 2022 @ 11:07am 
Does it matter if you place it forward facing or downward facing?
warppioneer 7 Nov, 2022 @ 4:35pm 
Thanks a lot for this, must have@