hi,
im trying to make a boat and i need to scale child prim during driving around.
And somehow i can scale child prim when avatar is not sitting, but when it sits it stops scaleing.
Is it possible to scale while moving?
thank you
These forums are CLOSED. Please visit the new forums HERE
scale prim while moving |
|
|
Velenje Thor
Registered User
Join date: 14 Nov 2007
Posts: 6
|
09-11-2008 05:22
hi,
im trying to make a boat and i need to scale child prim during driving around. And somehow i can scale child prim when avatar is not sitting, but when it sits it stops scaleing. Is it possible to scale while moving? thank you |
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
09-11-2008 07:23
You gave the answer: You can not scale a prim while sitting on it.
You can move it, even when it is linked. That way you can move a seated Avi, just treat her like another linked prim. Reference: http://lslwiki.net/lslwiki/wakka.php?wakka=llSitTarget _____________________
From Studio Dora
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-11-2008 07:53
i've managed to scale prims while sitting on it. not the usual manual stretch method, but you should be able to do it in the edit window.
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Velenje Thor
Registered User
Join date: 14 Nov 2007
Posts: 6
|
09-11-2008 08:52
Tnx for answers!
Dora...i want to scale a child prim...not exactly the prim avatar is sitting on, but other prim in linked object. Does "You can not scale a prim while sitting on it." mean for all linked prims no matter on which avatar is sitting? ruthven...you mean phisicly scale or with script? |
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-11-2008 09:05
well if you're not scaling the prim that you're sitting on, i guess it wouldn't matter. but yes scaling with the edit window, not a script. but it depends on what you're trying to do exactly. if you 're looking to script it and mean something like this:
prim 1 has sit target prim 2 gets resized prim 2 is X scale avatar sits on prim 1 prim 2 changes size avatar stands up prim 2 reverts to original size that can be accomplished a few ways, either with the sit script sending a link message to prim 2, and prim 2 receiving it with a script and acting accordingly. or with llSetLinkPrimitiveParams, but that can be a little more complex since according to lsl, the avatar becomes a link of the object when they sit on it, and you would need to know the link number of the prim you want to resize _____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Velenje Thor
Registered User
Join date: 14 Nov 2007
Posts: 6
|
09-11-2008 09:25
im scripting a boat and i have it work, that root prim orders child prim to scale...and it does scale.
I have also tested on two linked prims, sat on root prim and managed to scale child prim while sitting on root. But when i run that script on boat it doesnt work. Well, looks like child prim would resize, just dont "show" that )...and when avatar stand up, all the scales, that should be done are calculated and child prim gets scaled.And also if i put boat script on that two test prims i was writting before, it doesnt scale anymore while sitting on. Thats why im wondering if this have anything to do with behaveing like a vehicle. edit: typos |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
09-11-2008 10:01
As an aside...although sit targets are defined on a per-prim basis, an avatar does not actually sit "on a prim", but on the object as a whole. Good to keep in mind for requesting permissions and unsitting and moving the avatar and things like that.
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
09-11-2008 13:13
you can not scale prims.. while they are physics enabled.
Doing so would alter the result of llGetMass. Try switching to non-phys, transforming the prims, and then switching physics back on. _____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Velenje Thor
Registered User
Join date: 14 Nov 2007
Posts: 6
|
09-12-2008 07:01
tnx all
winter...this makes sence ![]() ill try |