Jump to content
  • 0

auslesen per script von linkset Positionen


Black Dawes
 Share

You are about to reply to a thread that has been inactive for 4104 days.

Please take a moment to consider if this thread is worth bumping.

Question

hallo zusammen ich habe eine frage und zwer kann ich per script die position eines  childprims ermitteln lasen und diese mit einer liste ausgeben lassen?

integer LINK_NUMBER = 4;
list details = llGetObjectDetails(llGetLinkKey(LINK_NUMBER), [OBJECT_POS]);
vector localPos = (llList2Vector(details, 0) - llGetRootPosition()) / llGetRootRotation();

 dies war meine grundidee die ich fand jedoch komme ich damit nicht wirklich weiter.

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Sie können es nicht auf diese Weise, weil llGetObjectDetails erwartet nur den Schlüssel eines Objekts, nicht der Schlüssel für ein Kindprim in dem Objekt. Stattdessen müssen Sie llGetLinkPrimitiveParams verwenden. Verwenden Sie diese Funktion für die PRIM_POSITION oder PRIM_POS_LOCAL fragen, je nachdem, ob Sie das Kindprim die regionale Position oder seine Position relativ zur Wurzelprim wollen finden.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4104 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...