Jump to content

*SOLVED* Multiplying by rotation problem?


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

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

Recommended Posts

**edit** figured out my mistake In another snippet for processing rotations, i had copied this over and forgot to change PRIM_POS_LOCAL to PRIM_ROT_LOCAL

 

I've run into another problem with my hud positioning script. Here is the snippet for figuring out the PRIM_POS_LOCAL, it's the only part that's setting a pos and it's throwing an error "llSetPrimitiveParams error running rule #50 (PRIM_POS_LOCAL): arg #1 vector expected but quaternion given". but it seems to be positioning everything correctly. I've even added an ownersay to tell me what the list it's returning is, it's all vectors other than the params flags and the link number

list processpos(list vectors, list links, string tab)
{
    integer len = llGetListLength(vectors);
    integer len2 = llGetListLength(links);
    list temp = [];
    if(len != len2)
    {
        llOwnerSay(tab + " lists do no have the same number of elements");
        return temp;
    }
    else
    {
        
        integer i;
        for(i = 0; i < len; i++)
        {
            vector postemp = ((llList2Vector(vectors,i)+offset)*scalefactor)*myrot;
            temp += [PRIM_LINK_TARGET,llList2Integer(links,i),PRIM_POS_LOCAL,postemp];
        }
        return temp;
    }
}

 

Edited by Ruthven Willenov
Link to comment
Share on other sites

  • 2 weeks later...
You are about to reply to a thread that has been inactive for 1946 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...