Jump to content

llSetLinkPrimitiveParams PRIM_POS_LOCAL issue


Marioni Unplugged
 Share

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

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

Recommended Posts

default
{
    touch_start(integer total_number)
    {
        llSetLinkPrimitiveParams(2, [PRIM_POS_LOCAL, llGetLocalPos() + <0.0, 0.0, 1.0>]);  
    }
}

Greetings coders,

Can anyone tell me why this code, when put in the root prim of a 2 prim linkset, does NOT move the child prim (i.e. linknumber 2) one meter up when touched?

 

  • Like 1
Link to comment
Share on other sites

Yeah, llGetLocalPos() returns global coordinates when called in the root prim. Depending on where your linkset is located in the region, let's say <220, 150, 22>, it would try to move the child prim hundreds of meters away from the root. That's far beyond what the linking rules would allow.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2856 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...