Sarbian changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs. | *** PSA: https://kerbalspaceprogram.com/api/index.htm | Someone is writting a Phd dissertation on KSP modding please fill out this survey https://goo.gl/forms/1vrkPYH4az8l32sb2 - I have met him and it s legit
blowfish has joined #kspmodding
<N70> how do i raytrace between two Vector3ds
xxapvxx has joined #kspmodding
blowfish has quit [Quit: Leaving]
Olympic1 has quit [Ping timeout: 186 seconds]
blowfish has joined #kspmodding
N70 is now known as N70|zzz
xxapvxx has quit [Ping timeout: 383 seconds]
Olympic1 has joined #kspmodding
blowfish has quit [Quit: Leaving]
Rokker has quit [Quit: Connection closed for inactivity]
Technicalfool_ has joined #kspmodding
Technicalfool has quit [Ping timeout: 186 seconds]
Rokker has joined #kspmodding
N70|zzz is now known as N70
<N70> hey
<N70> anyone here know how to see if a certain spot on kerbin is seeable by a vessel
<BenjaminK> N70: I could probably work it out if you gave me some time
<N70> ok
<N70> i do have a Raytrace function in my mod
<N70> but they're on for vessel-body and vessel-vessel
<BenjaminK> Do you have the vector3d position of where its looking?
<N70> the target? yes
<N70> here's the vessel-vessel and vessel-body functions: https://gitlab.com/N70/Kerbalism/blob/master/src/Sim.cs#L111-182
<BenjaminK> okay so heres what I'm thinking
<BenjaminK> you have the height h from the center of the body
<BenjaminK> now, you have the body radius r
<BenjaminK> you van valculate the angle between the most outside point of the body
<BenjaminK> now, you can get the distance between he vwssel and the farthest point with pythag
<BenjaminK> that distance is the farthest away the target can be
<N70> yes
<N70> but what if the vessel is at
<N70> say
<N70> jool
<BenjaminK> now just check the distanve using pythag and if its greater, its to far
<BenjaminK> ah
<N70> and the point is at kerbin
<N70> what if tylo's blocking the view?
<N70> i'm trying to replicate remotetech's "can we actually see the target" function which i couldn't find after tons of code digging
<BenjaminK> so you could go expensive and do these calculations with every body in the system
<N70> could I reuse the Raytrace() function in my thing
<N70> i honestly don't know much about vector math
Ezriilc has joined #kspmodding
<N70> so, what would i do, BenjaminK
<N70> i don't understand
VanDisaster has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
VanDisaster has joined #kspmodding
<N70> would anyone here know how to add a little icon on kerbin like what shows for the KSC now?
blowfish has joined #kspmodding
blowfish has quit [Quit: Leaving]
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
N70 is now known as N70|zzz