This looks perfectly normal to me.  Your avatar always sits on the 'top' of the prim, no matter where the prim is rotated, as the sit target is relative to the prim, not the world..

Perhaps you intended the avatar to sit on the 'top' of the rotated prim from the worldz reference, no matter which way it is rotated?

if so, you subtract the books rotation from the sit target position and rotation. In rotations, a subtract is a divide.

vector rotacion = <0,0,0> * DEG_TO_RA;
vector posicion = <0.50, 0.0, 0.50> ;

default
{
    state_entry()
    {
        llSitTarget( posicion / llGetRot() , llEuler2Rot(rotacion) / llGetRot() );
   }
}

Fred Beckhusen/Ferd Frederix
    1. Strange behavior of the llsittarget when the primitive is
       rotated 90? in X (Luisillo Contepomi)

Test this please.
A prim rotate in x axe 90 and then try to modify rotation of sit target.

Use this script in a Cube
//

vector rotacion = <0,0,0> * DEG_TO_RAD;
vector posicion = <0.50, 0.0, 0.50> ;

default
{
     state_entry()
     {
         llSitTarget( posicion, llEuler2Rot(rotacion) );
    }
}

Then rotate the cube 90 ? in x axe and edit for try to sit avatar up
on the cube.

Now Y rotations are Z and Z are Y and positions are bad.

My English is not enough to explain it clearly. Please use the script
and edit modify in the scripts rotations for sitting on top to see
what I am saying

Version 0.0.9.1 and all devs.

If have confirmation I will report to mantis.

Best regards,



_______________________________________________
Opensim-users mailing list
[email protected]
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users

Reply via email to