Jump to content

llSetLinkPrimitiveParams PRIM_POS_LOCAL issue


Marioni Unplugged
 Share

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...