Hi,
I am trying to run simulation where all particles reach target but it starts sticking to edges after colliding. Is there a way to prevent this? even if I add obstacles in middle it sticks to it. Please help to resolve this
@benedict I used anchor and target so all anchor points move towards target in a closed polyline. If I remove anchor then points are not moving towards target
@benedict thanks for this, increasing force indeed helps but still not good enough for funky/sharp shapes
In this boundary points are stuck on left corner please help me with this collisions example-02_re4.gh (23.4 KB)
Is this supposed to be some sort of interior pedestrian flow/fire egress type simulation?
Using Anchors like this is effectively like having an elastic band between the target and the current position of the points, and you can imagine how this can lead to points getting stuck in corners.
It isn’t pulling them along a viable route, but in a straight line (through walls etc) towards the target.
If you did want to model this I think it could maybe work to generate a vector field first using heat flow, then have them pulled along that.
Here’s an example with a goal which pulls the points along a vector field on a mesh. The vector field is generated using a version of the heat script I previously posted here.
Ok found a way with recorder but still approximate… Recorded 2 data and find difference and multiply it with number of points it generates within a meter
If you graft before the data recorder you get a list of positions for each particle on a separate branch, so can get the speed by comparing consecutive items.
(also, I imagine this goes without saying, but please don’t think of this as in any way realistic modelling of human movement, it’s just particles following a field and colliding).
Thanks Daniel! that is how I used earlier as well…
How do you trap moving points that is coming out of kangaroo solver. I have closed polyline and if point comes inside it should be removed or refrained from moving further. I could detect points but couldnt stop its movement
I think I see what you’re getting at - so like an exit zone and when a point goes inside this it gets removed from the simulation, instead of a crowd building up at the target point?
It isn’t possible for a Goal to actually remove a particle, but I suppose we could create a Goal that moves any particle that enters a curve to some location and anchors it there.
Its good that you used curve but input is 200 and output is also 200. What I did so far is record index of points from solver and whichever points are coming inside curve I cull them from list. Though point is removed from visual it still moves. But whatever I culled is removed from entire crowd