Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

tred mill/moving ground/conveyor belt

Natsely Amaterasu
Registered User
Join date: 30 Sep 2008
Posts: 19
12-05-2008 12:53
I've tried looking for in the library and and in the tips but I couldn't find anything for something thats actually moves a road looking things in circles. Maybe I didn't look in the right places but if anyone can point me in the right direction I would appreciate it.
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
12-07-2008 12:41
anything would be usefull.
Natsely Amaterasu
Registered User
Join date: 30 Sep 2008
Posts: 19
12-07-2008 12:42
anything would be usefull
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
12-08-2008 01:22
i would say that you need to fake it. use animations for the actual 'belts' then you need to use something like the 'touring' objects you can see in several sims -eg the actual real movement of the sitting avi is scripted in a path-moving sitball
The downside is that movement like this in sl is not smooth but rather jerky. Go visit 'Svarga' if you havent seen a 'tour-object', the judge for yourself if that aprouch will be suficient for your project
BR
ab
_____________________
BR ab
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
12-08-2008 03:15
You could try rotating the road object by script or animating the texture so that it looks like it is rotating.
_____________________
Deira :)
Must create animations for head-desk and palm-face!.
Chaffro Schoonmaker
Funny Bunny
Join date: 22 Oct 2006
Posts: 137
12-09-2008 02:51
Might be worth exploring somewhere like Babbage; I remember seeing a factory around there that had conveyor belts and the like.
Natsely Amaterasu
Registered User
Join date: 30 Sep 2008
Posts: 19
12-12-2008 08:50
So it's impossible to make something that actually works like a conveyor belt or something like in an airport luggage carrier that spins around so when I (or any other prym) stand on it it moves if its set to a physical state. Like a moving sidewalk in the jetsons(if anyone remebers the jetsons).

*edit* I have also stated working with the llmovetargetto() function to see if I it can move it self when I say start and only stop moving when I say stop. somthing like this

[/code]
vector pos;
vector end;
default
{
state_entry()
{
llListen(0,"","","start";);
llListen(0,"","","stop";);
llSetStatus(STATUS_ROTATE_X|STATUS_ROTATE_Y|STATUS_ROTATE_Z,FALSE);
}

listen(integer a, string n, key id, string m)
{

if(m=="align";)
{
llSay(0,"aligned";);
pos=llGetPos();
llSetStatus(STATUS_PHYSICS,TRUE);
llMoveToTarget(pos,1.5);
}


while(m=="start";)
{
llMoveToTarget(end,1.5);
end=pos+<1,0,0>;
}

if(m=="stop";)
{
llStopMoveToTarget();
}

}
}
[/code]
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
12-12-2008 09:41
Things like that can be done. Here is a recipe for a simple turntable that could work as part of a simple airport luggage carousel. (ETA in case it's not obvioius: you'll want to play with the construction to make it a little more stable etc.)

First rez a tube, edit as follows:
size: x 0.45, y 4.6, z 4.6
rotation: 0., 270., 0
hollow: 95.
hole size: x 1.0, y 0.5
profile cut: b 0.25, e 0.8
material: glass

Nextm make a cylinder:

size: x8.0, y 8.0, z 0.1
hollow: 9.0
rotation: 0,0,0
material: wood

Position the cylinder so that the hole is positioned inside the axle made by the tube, the smaller circle at the top of the tube will act as a hub to keep the cylinder from flying away when we are done.

(Do not link these.)

Inside the cylinder, add a simple rotation script:

CODE

default
{
state_entry()
{
llTargetOmega(<0.0, 0.0, 0.5>, 1.0, 1.0);
}
}



Finally, make only the cylinder physical.

If you stand on the turntable, your avatar should move along with it.

You can experiment with materials on the cylinder to maybe give the avatar a better footing, but really mushy stuff like rubber will tend to stop the rotation.

(In a few minutes I'll send over a copy of the example, since I have it built and it's taking up my living room.)
Natsely Amaterasu
Registered User
Join date: 30 Sep 2008
Posts: 19
12-12-2008 09:45
thanks i'll try it out

*edit* well it worked, but i need to be in a toiletpaper roller fashion, and when I try it it either it gets off the axle and start spinning crazily or it looks like it wants to spin to it doesn't.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
12-15-2008 16:58
Sorry for losing track of this thread. Yeah, things aen't very good about staying stably on an axis without a little extra script help, that was mostly to show that you can get moved by a physical object =)

llSetTorque is another way to make a physical object spin, that might be good if you need more control over the amount of oomph.

Also, llSetStatus might be a big help for you, it lets you restrict what axes a physical object can turn around. (Also lets you toggle physical on and off so you can get things situated.)