Space Engineers

Space Engineers

Unlimited Raycasting
9 Comments
[7HBK] Elrond McBong 29 Jan, 2021 @ 3:55pm 
@Babbayega

AWG's Convenient Weapon Pack have a laser range finder that shows the target distance.
Ikarus_Sol_314  [author] 11 May, 2018 @ 6:07pm 
Unfortunately not. I use my own rangefinder-scripts,so I can not tell you which workshop scripts are up to date.
Babbayega 11 May, 2018 @ 5:58pm 
do you have a recomendation on a mod/script that can simply tell me how far away what i am looking at is?
Ikarus_Sol_314  [author] 11 May, 2018 @ 5:56pm 
You have to write your own script (or use one from the workshop). This mod increases the speed at which you can use raycasts. Vanilla SE allows (for example) 10km raycast only every 5 seconds, with this mod you can nearly instantly raycast.
Babbayega 11 May, 2018 @ 5:31pm 
ok, so, i do like the zoom in that version. but a got a noob question. where do i see the distance to what i am looking at? how do i actually use the script. or am i missing sumthin obvious..
jTurp 15 Jan, 2018 @ 1:41pm 
Hey, I apologize for not responding earlier. Thanks for taking a look into it! I ended up just changing the multiplier myself, but seeing that you have, I'll go back to using this instead of my tweaked version.
Ikarus_Sol_314  [author] 28 Sep, 2017 @ 3:18pm 
I wasn't able to detect a sim speed drop (2000 cameras with raycasting enabled, still 1.00 sim speed), but I adjusted the multiplier a bit (2^30) for a faster calculation. Maybe it helped?
Ikarus_Sol_314  [author] 28 Sep, 2017 @ 3:12pm 
You can override the camera's blockdefinition and adjust the values as you like. Use the camera definition in CubeBlock.sbc as sample.

I use a very complex script which consumes about the half of the available range per tick, so I thought I found a good multiplier. (But you are free to change it of course!)

Thanks
jTurp 20 Sep, 2017 @ 5:49am 
How do I edit the values? I've realized that I can scan 25 Billion meters every TICK with this mod, and that is a tad too much. I've also noticed sim speed drops, and the only thing I can think of is that it's having to query such large numbers for multiple cameras every tick. If I output the available scan range to an LCD, it shows 1.92839823982e+15

Nice mod, though! The base raycast was definitely too limited.