can someone help with some logic system im trying to make...
i have a shape that i can select and make it move to a location....
if i copy this to have 5 of them i can command them to a location as a group but i need these requirements...
1. when the shapes are moving they dont merge together and remain separate while travelling together
2. when a shape reaches its location it will move away from the other shapes in a random direction away from the shape and then stops moving... so as a group of 5 shapes move together keeping separate then spreading out at the goto location
3.i don't wanna use movable object or have the shapes impact each other.
the problem i seem to have is either a shape doesnt move in a random direction away from the others to spread out, and that shapes tend to merge together and trying to move away from each other together endlessly moving.
-
I’m assuming movement is locked on the Y axis.
1) I would try adding 4 trigger zones around each object set to detect a tag (make sure to select the [not here] option so all objects can have the same tag. Wire each zone into a mover pointing the opposite direction. A cone-shaped zone with it's main zone set to .1 on all axis, and plenty of fall off on the z axis will work well. The fall off will increase the detected signal the closer something gets to it, so you can wire that signal into a mover's speed. Or maybe wire it into the strength. Some experimentation will be necessary.
2) Once one object wins the race to the objective, I would have it activate a tag. Have each object include another zone set to detect that tag in all directions. Falloff probably isn’t necessary. Have the zone activate a follower set to flee the “it” tag. Once the object is out of range of the zone, the follower should shut off. If you want to randomize this, you could include some signal generators and plug those into left/right movers.
3) By using falloff zones, it should encourage the objects to stay away from the closest objects. Though crowding behavior may be tough to counteract. -
Making them movable would make this a whole lot easier. Can I ask why you want to avoid using movable?
-
'@TAPgiles if i use movable that helps but when moving to a goto location some of the shapes start getting in the way of the other shapes that still need to goto the goto location.
like if i have 5 shapes and tell them to goto this location shape 1 and 2 are ok but shape 3 and 4 will get in the way of shape 5 and all pushing each other around trying to get to the goto location,
also shapes still get stuck to each other and endlessly move when using movable and shapes dont keep flat like half sitting on each other due to the shapes shape.
if i dont use movable then shapes can go throught each other until the reach the goto location then spread out from there. -
if someone wants to team up with me in dreams to see my logic and maybe work something out that works that would be cool
Please sign in to leave a comment.