Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I can't get this to move the avatar

Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
03-03-2007 08:59
Hi!

I have a prim with a script inside. This script uses llSetPos to move from one point to another and back. I want that an avatar stands on it (not sitted) and then the prim moves the avatar, but it doesn't.

I stated phantom and physics false. I now that the script works if inside a changed and sit on the prim. But I want this to move the avatar only because it is stood on the prim.

Is it possible?

Thanks.
_____________________
First goes before
AW Devices
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
03-03-2007 09:13
physic--> true
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
03-03-2007 10:13
llSetPos Only works on objects with physics disabled.

If I use physics then I should use llMoveToTarget and it is not very stable.
_____________________
First goes before
AW Devices
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
03-03-2007 10:23
Non-physical objects are, well, non-physical; they only do basic collision-checking and that is all. They do not "impact" an avatar or any other object (physical/non-physical) at all.

What you are talking about is basically friction-based movement. Two objects have a constant force applied against one another, and one's movement, roughly orthogonal to the force holding them together, causes the other to move with it due to friction. For that to work, you have to use a material with the most friction, which is Flesh, and then keep the motion slow enough to keep the object from sliding out from under the avatar. The physics solver doesn't handle the situation very realistically, so you will probably have to do something like "caging" the avatar, at least up to a specific height (a knee-high fence around the perimeter of the object should be sufficient to keep the avatar from falling off the object).

This, of course, requires the object to be physical, and stability is a big issue. However, you can stop rotational movement via the llSetStatus function.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
03-03-2007 10:55
Thanks for your kind explanation, I think that it is not a good idea to make what I was thinking to do.

Anyway i will try this with flesh and a cage. But there is something more, and it is the fact that the avatar has to get on the prim to stand on it, and it is not easy if it is physics, isn't it?

Thanks you.
_____________________
First goes before
AW Devices
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
03-03-2007 11:30
Well, you can have the object be non-physical until the avatar stands on it, and then turn it physical, and start the movement. "caging" can be done unobtrusively as well, by using a hollow cylinder which is very flat initially, and then you change it's scale and position right before you move so it surrounds the av, just before you start movement.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
03-03-2007 11:47
well it sounds good, but how does the prim recognizes that there is an av on it? whith a sensor?
_____________________
First goes before
AW Devices
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
03-03-2007 13:27
From: Azul Wilder
well it sounds good, but how does the prim recognizes that there is an av on it? whith a sensor?



|Could use volume detect instead. Then turn volume detect off when you perform teh movement.