SDK Question Attachment issue?

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,711
Reaction score
2,683
Points
203
Location
Dallas, TX
Is there an Attacment issue? I don't think did it in 2010
I have notice this. I have this simple rail where something is attached. And then moved. No issues. BUT if at the end of travel you detach the guy is not at the end.
BUT if you don't auto detach but press a key then you dettach at the point.
RAIL = CreateAttachment(false, _V(50, 2, 0), _V(0, 1, 0), _V(0, 0, 1), "RAIL", false);
//MAST if (RAIL_status >= DOOR_RAISING) { double da = simdt * LIFT_SPEED; if (RAIL_status == DOOR_RAISING) { if (RAIL_proc > 0.0) RAIL_proc = max(0.0, RAIL_proc - da); else RAIL_status = DOOR_UP; } else { if (RAIL_proc < 1.0) RAIL_proc = min(1.0, RAIL_proc + da); else RAIL_status = DOOR_DOWN; } SetAnimation(anim_RAIL, RAIL_proc); } SetAttachmentParams(RAIL, _V(50 - (100 * RAIL_proc), 2, 0), _V(0, 1, 0), _V(0, 0, 1)); if (RAIL_proc >= 1)DetachChild(RAIL, 0); }
So pad animation and rail attachment move.


I tried UACS vessel and another non UACS vessel and same issues.
 

Attachments

  • ATTACHRAIL5.jpg
    ATTACHRAIL5.jpg
    48.4 KB · Views: 3
  • ATTACHRAIL4.jpg
    ATTACHRAIL4.jpg
    49.2 KB · Views: 3
  • ATTACHRAIL3.jpg
    ATTACHRAIL3.jpg
    60 KB · Views: 3
  • ATTACHRAIL2.jpg
    ATTACHRAIL2.jpg
    51.5 KB · Views: 3
  • ATTACHRAIL1.jpg
    ATTACHRAIL1.jpg
    70.8 KB · Views: 3
Top