Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007394opensim[REGION] Script Functionspublic2014-12-16 10:142020-11-19 08:06
Reporterleafillusion 
Assigned Totampa 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007394: Unsit rotation direction
DescriptionWhen unseated from a prim the avatar in SL stands in front of the prim and is rotated to face away from the prim. In OpenSim the avatar stands and the avatar rotation is set to whatever rotation the avatar was facing prior to sitting. This occurs both with and without a SitTarget set in the prim. It also occurs both if the avatar is unseated manually using the viewer "stand" button or unseated by a script using llUnSit.

Sitting the avatar on a prim is (to the best of my knowledge) the only way a avatar may be rotated by a script. This behavior in OpenSim removes that tool from the scripter's tool-chest.
Steps To ReproduceRepeat tests in both SL and OS to see differences in avatar's rotation on completion of unsit.

To test manual unsit:
1. Rez a standard 0.5m cube.
2. Sit avatar on it and then stand.
3. Note rotation of avatar.
4. Repeat setting avatar at different rotations prior to sitting.

To test unsit using llSitTarget and llUnSit:
1. Rez a standard 0.5m cube.
2. Place the following script in it.
3. Sit avatar on the cube.
4. Note rotation of avatar.
5. Repeat setting avatar at different rotations prior to sitting.
-----------------

//Test for UnSit Rotation Behavior in OpenSim
key user;
default
{
    state_entry()
    {
        llSitTarget(<0.5, 0.0, 0.5>, ZERO_ROTATION );
        llSetClickAction(CLICK_ACTION_SIT);
    }
    changed(integer change)
    {
        if (change & CHANGED_LINK)
        {
            user = llAvatarOnSitTarget();
            if (llGetAgentSize(user) != ZERO_VECTOR)
            {
                llSleep(2);
                llUnSit(user);
            }
        }
    }
}

Additional InformationNoted and tested for OpenSim in Kitely using Firestorm. Tested in SecondLife using the SL viewer.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
EnvironmentUnknown
Mono VersionNone
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0037213)
tampa (reporter)
2020-11-19 08:06

There is an ossl function to handle this a bit better

- Issue History
Date Modified Username Field Change
2014-12-16 10:14 leafillusion New Issue
2020-11-19 08:06 tampa Note Added: 0037213
2020-11-19 08:06 tampa Status new => resolved
2020-11-19 08:06 tampa Resolution open => fixed
2020-11-19 08:06 tampa Assigned To => tampa


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker