PDA

View Full Version : Making a Smooth, Infinite Conveyor Belt



Remy
12-07-2012, 12:58 AM
I would really like to make a conveyor belt like the ones seen in Sugar Rush. After staring at them for so long, I've still had no luck figuring out what logic was used to make them. I created a path and used a path follower. For whatever reason, I thought I could just clone that along the same path and have it loop, but I can't unless I place every single part of the conveyor individually. That seems pretty tedious and unnecessary (especially since the conveyors in Sugar Rush move so smoothly). If I make a long piece of rubber to use as the conveyor, I feel like it'd eventually mess up once the path follower reaches the end of the path. I'm really not sure what to do exactly, and I'm probably looking at it the wrong way.

If anyone has suggestions, I would love to hear them. These conveyors don't work the same as the ones in LBP and LBP2 from what I've seen.

aratiatia
12-07-2012, 04:44 AM
There is a conveyor belt material! I'm not sure what category it comes under - glass, wood, metal etc - but it is animated. There is no special traction offered by this material, you can use a physics tweaker to adjust that.

I hope this helps!

Remy
12-07-2012, 06:53 PM
Is there a physics tweaker that pushes racers forward? I tried adjusting some settings there, but the closest I could find was lowering the friction and making it icy. It doesn't push forward, but it does make it harder to stop.

aratiatia
12-07-2012, 07:30 PM
You might need to tweak the karts by placing logic on their checkpoints. I haven't looked into this yet. Perhaps you could place a tag on the material you want to use for a conveyor belt. Place a tag sensor on the checkpoint matching the tag's colour. When activated, have the tag trigger a kart tweaker with a higher high-speed rate or higher acceleration?

TheAdipose
12-07-2012, 07:48 PM
I wonder if the old lbp piston and emitter trick would work

anarchowolf
12-08-2012, 10:44 AM
Try increasing the friction instead of lowering it.

zzmorg82
12-08-2012, 08:55 PM
I would like to know what the material is called myself, anyone know?

Remy
12-08-2012, 10:20 PM
The material is called Conveyor Belt, and it is under the "Metal" section on the third row if you've collected everything. It's only animated though. Like aratiatia said, there are no physics that come with it. I still can't get it to push the kart with it though. Increasing the friction unfortunately didn't work either. :(

zzmorg82
12-11-2012, 12:06 AM
The material is called Conveyor Belt, and it is under the "Metal" section on the third row if you've collected everything. It's only animated though. Like aratiatia said, there are no physics that come with it. I still can't get it to push the kart with it though. Increasing the friction unfortunately didn't work either. :(

This video from comphermc might help:


http://www.youtube.com/watch?v=GEplXDGqtAM

I know it's LBP2 logic but you might still be able to pull it off in LBPK. And thanks, I found it! :p

Hiroshige0
02-19-2013, 05:58 PM
So I've been looking into to this too as a critical component of one level I'm working on, but I'm just as stumped. What I DO know is that:


It's not based on emitters; there are no discernible gaps on the material like in most examples
It's not based on any piston use either because every example uses the conveyer belt material and has no possible "cutoff" point.
I don't believe magnets work either, since my tests make the kart out to be glued to the ground and everything ELSE is pulled, as well as there seems to be no "box" radius, it's always a sphere.


All I can figure is that it is either a bound effect on the kart or a physics tweak that causes a pull on any object to a specific direction. Caiman_6 recently was able to do this in his Base Lunaire "Le Fleuret" track with the exact effect Sugar Rush was able to do, just what is it?

Remy
02-19-2013, 06:18 PM
Hmm. Thanks for the input! We may just have to ask Caiman_6 and see if he'd offer up a tip. I originally thought of using magnets too, but I had difficulty with them as well.

Hiroshige0
02-19-2013, 10:29 PM
So Caiman_6 did get back to me, and I was wrong: it does in fact use a single piston! Here's how:


Attach a piston horizontally to the material and in the direction you want it to go
Change the "flipper" type on the piston to the same direction it's moving; this causes the material to "skip" back once it reaches the end
Remove any time delay and adjust the distance/speed to desired specs
Change both acceleration types to "linear"


You now have a working conveyer belt. Caiman didn't mention it, but my tests show if you are using conveyor belt material at animation speed 1, you will have to use a ratio of [distance: 10 to time: 1 second] to produce a smooth(ish), even movement. Very clever!

EDIT:

The animation speed ratio is off because I didn't factor on the scale of a piece of material. If you don't change the scale, that ratio will work. If you increase the size however, you'll have to tweak it a bit to get the best results.

Remy
02-19-2013, 10:34 PM
Now I'll just have to get over my fear of losing an entire scoreboard and update my track. xD

Thanks, Hiroshige and Caiman!!