Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A Quick newbie Builder Question :)

Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
02-09-2007 08:02
I made a bar, and I made stools, how do I get the AV to sit the right way on the chair when it selects the sit option?

At the moment, you select sit and she sits with her body facing thru the back of the chair, not facing the bar. can I change this? and how?

Thankyou very much :)
Sky
xx
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-09-2007 08:20
The default sit behavior for sitting on an unscripted prim is that the person sits with their back in the direction that they were facing when they clicked the prim and said "Sit". So if you wanted to sit at a prim picnic table, facing the table, you'd need to be on the far side of the table from the bench you want to sit on, and then select the bench prim and select Sit.

To get more advanced control, you need to either add a pose ball (a scripted prim containing the desired sit animation) just above the stool seat, or add pose-ball scripting and a sit animation to a prim in the stool (most likely the seat cushion or a prim hidden inside the seat).

Using a seperate pose ball allows far easier adjustment for the wide range of avatar sizes.

Using a pose ball script and animation in the stool itself saves prim count, slightly, if the prim the script is in is an existing prim.

Pose ball scripts are available in the scripting library.

Pre-scripted pose balls for this are sold at Bits and Bobs and other animation sellers. I make and sell some furniture, and I like and have licensed some of the pose balls that Bits and Bobs sells, for use in my couches and chairs.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Bree Giffen
♥♣♦♠ Furrtune Hunter ♠♦♣♥
Join date: 22 Jun 2006
Posts: 2,715
02-09-2007 08:23
Whenever you sit on an unscripted object your avatar will basically turn around and plop themselves down. If you are standing behind the stool your avatar ends up facing backwards. An avatar would have to get between the bar and the chair before they try sitting in order to end up facing the bar. You could leave your chairs a little bit of a distance away from the bar to allow this.

Or... you can add a poseball or poseball script that will position the avatar to whatever rotation you desire.

Ceera do you live here?
_____________________
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-09-2007 08:57
From: Bree Giffen
Ceera do you live here?
*Giggles* "I am the ghost in the machine..." Ceera only exists as billions of bits on the net. *grin*

Well, seriously, I do spend a lot of time in the forums, as well as in-world. My RL job provides unlimited net access, and a lot of the time I am waiting on some process or another, or I take a short break, and I can log on to the forums and answer a few things while I am at work.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Al Sonic
Builder Furiend
Join date: 13 Jun 2006
Posts: 162
I don't use poseballs on my chairs.
02-10-2007 17:20
To skip adding the extra prim for a pose-ball, it's not too complicated to put in a very short sit script on the seat prim, the main content of which is something like
CODE
llSitTarget(<0,0,0.1>, <0,0,PI>)
// (^POSITION) (^ROTATION)
In this example, the avatar would sit .1m above the prim center, and facing 180 degrees (PI radians) from the default direction. This 'Up' is relative to the prim, so if your seat prim is turned on it's side you'll have to use some other rotation such as <0,PI/2,0>. If you don't want to mess with fixing that, it seems this could work:
CODE
//Rotational cancel method by Moleculor Satyr
llSitTarget(target * (ZERO_ROTATION / llGetRot()),ZERO_ROTATION / llGetRot());
See more on that at http://rpgstats.com/wiki/index.php?title=LlSitTarget.

Admittedly there may be advantages to poseballs, including
  1. More obvious visual manipulation of your seating position
  2. easier ability to set up multiple sit positions on a long 'couch'-like seat, with multiple seats on top of a single prim

However, as prim-efficiency has become quite a habit of mine, I doubt I'll ever use poseballs on a chair I make unless (1) that chair has more seating positions than prims, or (2) I want a particular sitting pose that can only be bought in poseball form.