Universal Grappling Hook

PeriapsisPrograde

Wannabe addon dev
Joined
Mar 29, 2011
Messages
406
Reaction score
0
Points
16
Location
In orbit
I might as well try.

Psuedo-code below. UGH would be a vessel dockable to another vessel.
Code:
clbkGrapplingHook (hvessel)
{
if (grappling hook is shot) {find object hit}
else {reload grappler; continue}
vessel velocity relative to grappled object = _V(0,0,0);
get grappling hook vector (hvessel) = vgrapple;
move vessel along vgrapple (speed);
if (object.pos==vessel.pos) break;
else continue;
}

The thing is, I sure can't do this on my own.
-- I have never written a working vessel for Orbiter using any custom functions.
-- I have no idea where to start. I certainly don't know the API well enough.

Can I get a few pointers? Should I really try this?

Thanks. :tiphat:
 

Scruce

Ad astra per aspera
Joined
Sep 17, 2010
Messages
1,410
Reaction score
0
Points
0
Refer to the API .pdfs in Orbiter/orbitersdk/doc folder. They should help with some custom DLL making in Orbiter.

Good luck, I can't wait to make pirate themed dockings easier! :p
 
G

Guest

Guest
OMG! i can't wait for this! Ima be grappling myself on UMMU's that will be flung out of the solar system using the UCGO Demolition Charge...
 
Top