Universal Grappling Hook
Posted 11-13-2011 at 10:03 PM by PeriapsisPrograde
I might as well try.
Psuedo-code below. UGH would be a vessel dockable to another vessel.
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.
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; }
-- 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.

Total Comments 2
Comments
-
Posted 11-13-2011 at 10:28 PM by Scruce -
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...
Posted 11-13-2011 at 10:46 PM by