Simple traffic system - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html) +--- Thread: Simple traffic system (/thread-1986.html) |
Simple traffic system - Maciek - 10-06-2020 Hi everyone! I was curious if it is possible to run a simple traffic system with tyFlow. I did try to create it myself but unfortunately I don't have that much experience with particles and sim. Few requirements/ideas
RE: Simple traffic system - d4rk3lf - 10-06-2020 Quote:My idea is that Particle Physics collision should only act as a trigger that sends car/particle to another event that deaccelerates it with Slow operator for example. Maybe try with Particle properties - select neighbors - and then send them in the next event. RE: Simple traffic system - Maciek - 10-07-2020 Thanks! I'll try it out and post the results RE: Simple traffic system - Maciek - 10-08-2020 Neighbour test works pretty well! I still need to redesign the loop that drives the cars on the road because they get stuck without any reason. Thanks for the help! Side question - I wanted to check if reducing the time step to a value lower that 1 frame would help with neighbours check but it seems like it completely messes it up. Should I alter any settings inside the simulation when I reduce the time step in flow settings? RE: Simple traffic system - d4rk3lf - 10-08-2020 I am also struggling, when going into more depth of particle properties. But maybe take a look at this tut, and it should answer a lot's of questions. https://youtu.be/hVb-NTCGuvI RE: Simple traffic system - Maciek - 10-08-2020 Still no success - I think the graph should work fine, but neighbour check gives some false results. The particles end up piling up in 1 point and the others get stuck without any reason. Do you have any ideas what might cause that? I am attaching a preview and max file. edit - thanks for the link! |