|
Camden Rothschild
Registered User
Join date: 14 Apr 2006
Posts: 2
|
05-14-2006 14:01
I am working on making a piano with piano bench. However, if I get the bench close enough to the piano to actually play, when I stand, it unsits me inside the piano.
What is the best way to resolve this? I tired having the bench move when I sit and stand, but the stand event (unlink event) happens after standing so I'm already inside the piano by the time the stand event happens. So my movement happens too late.
Should I try to detect collisions with the piano?
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
05-14-2006 14:13
This, in various forms, is quite a common problem. There are two widely accepted solutions, both with their own problems.
The first is a small push on the person that's just stood up, backwards, away from the piano. Not elegant and can result in rather larger than expected pushes occasionally, hence the *potential* to be ARed - although it seems very unlikely such an AR would be upheld.
The second is to have an animation play where you sit further forward than you'd expect, so when you unsit you unsit from somewhere behind the stool, and so you tend to stand there. I know of people that have done this, but I've never knowingly seen it, so I'm not sure how successful it is, but it is a favoured method from one of the older heads on this forum, so it ought to work OK.
|
|
Sra Echegaray
Registered User
Join date: 18 Nov 2005
Posts: 11
|
05-15-2006 09:12
This is going to sound kinda stupid, but did you try turning the bench around and using llSitTarget to face the seated agent towards the piano? I'm working on the bench seats on a boat right now and they were aligned backwards. Everytime I stand up, I'm ejected off the boat(backwards) even though I've set llSitTarget so that I'm now sitting facing into the boat.
Obviously, this isn't always an option. Without a push, I end up in the center of my horse when I stand up (the outside of the torus body). But, if you're using a box prim for your sit target, this might be a simple solution.
|
|
Jolan Nolan
wannabe
Join date: 12 Feb 2006
Posts: 243
|
05-15-2006 10:51
In my Hum-Vee the seats are on the roof (because there is no interior) and the position is moved below (inside). Could using an invisible prim behind the stool with the av's llSitTarget moved over it work?
*EDIT* Looking back I guess that's the same thing Eloise said. My results are most of the time you end up either on top or slide out the side door texture (which looks more realistic) and only sometimes I'm under the car.
How about having the stool move itself back before undocking you from it?
- Jolan
|
|
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
|
05-15-2006 19:35
From: Camden Rothschild I am working on making a piano with piano bench. However, if I get the bench close enough to the piano to actually play, when I stand, it unsits me inside the piano.
What is the best way to resolve this? I tired having the bench move when I sit and stand, but the stand event (unlink event) happens after standing so I'm already inside the piano by the time the stand event happens. So my movement happens too late.
Should I try to detect collisions with the piano? Redo your prims, so that the piano is west of the seat, then you'll unsit to the east.
|