[Opensim-users] Strange behavior of the llsittarget when the primitive is rotated 90? in X (Ferd Frederix)

2018-12-01 Thread Fred Beckhusen
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
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users


Re: [Opensim-users] Strange behavior of the llsittarget when the primitive is rotated 90º in X

2018-12-01 Thread Luisillo Contepomi
I test now in OpenSim 0.8.3.0 Dev the problem is present in this old
version too.
___
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users


Re: [Opensim-users] Strange behavior of the llsittarget when the primitive is rotated 90º in X

2018-12-01 Thread Luisillo Contepomi
The worst thing is that when the problem is fixed all the llsittarget
placed since 03-Sep-2018 will be badly positioned. Is a big problem
___
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users


[Opensim-users] Strange behavior of the llsittarget when the primitive is rotated 90º in X

2018-12-01 Thread 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
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users