Programming Question please help with animated docking ports.

Mr Martian

Orbinaut/Addon dev/Donator
Addon Developer
Donator
Joined
Jun 6, 2012
Messages
382
Reaction score
254
Points
78
Location
Sydney, Australia, Earth, Sol
Website
www.orbithangar.com
hey guys, i am trying to make ad ad-on that extends a docking "hook" which docks with a vessel, and then retracts the hook, pulling the docking port with it. so far i have tried this:

Code:
SetDockParams (_V(0,-10.93464,135.9872+GEAR_proc*2), _V(0,0,1), V(0,1,0));

i got this code from the ShuttleA code sample, only it uses "+GEAR_proc*value" for the touchdown points, rather than a docking port. however, when i use it for the docking port, it doesn't work, Orbiter just seizes up or strange things start glitching up with the docking port. i was just wondering if it is even possible to attach a docking port to an animation like i am describing , and if so how??

thanks in advance, Mr Martian.
 
Docking ports don't like such changes when a vessel is docked to it. You need to use attachments then. That is also written that way in the Manual, AFAIR.
 
Back
Top