Jump to content

make avatar rotate without camera rotating


testgenord1
 Share

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

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

Recommended Posts

Hi!
I would like to have a pose-ball script for a fashion-shop, which automatically rotates the avatar, so you automatically see him / her from all sides.

This automatically works when the pose-stand itself is rotating.

Unfortunately, as soon as you click on the rotating avatar, the camera also automatically starts rotating with the avatar
(basically, you are rotating with the avatar while looking at him / her, like on a carousel).
This cannot be stopped.

I'm using the Firestorm Viewer.

Is it possible to prevent the camera from rotating with the avatar when clicking on him  / her?

Here is the script:

Thank you very much in advance!

//Where user sits in relation to object. ( <X,Y,Z> )
vector offset=<0.0,0.0,1.0>;


string anim;
key avatar;
 
default
{
    state_entry() 
    {
        llTargetOmega(<0.0,0.0,0.05>,TWO_PI,1.0);
        llSitTarget(offset,ZERO_ROTATION);
        anim = "turn_180";
        llSetSitText("Pose");
    }
 
    changed(integer change) 
    {
        if(change & CHANGED_LINK) 
        {
            avatar = llAvatarOnSitTarget();
            if(avatar != NULL_KEY)
            {
                //SAT DOWN
                llRequestPermissions(avatar,PERMISSION_TRIGGER_ANIMATION);
                return;
            }
            else
            {
                //STOOD UP
                if (llGetPermissionsKey() != NULL_KEY)
                {
                    llStopAnimation(anim);
                }
                return;
            }
        }
        if(change & CHANGED_INVENTORY)
        {
            llResetScript(); 
        }
        if(change & CHANGED_OWNER)
        {
            llResetScript();
        }
    }
 
    run_time_permissions(integer perm)
    {
        if(perm & PERMISSION_TRIGGER_ANIMATION)
        {
            llStopAnimation("sit");
            llStartAnimation(anim);
        }
    }
}

 

Link to comment
Share on other sites

Have a look at some of the posts in https://community.secondlife.com/forums/topic/479145-zoom-script-question/

Basically you are going to take control of your avatar's camera when sitting but set it to a fixed position and focus. Several posters in that thread describe exactly how to do it, Rolig and K T in particular.

Edited by Profaitchikenz Haiku
  • Like 1
Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...