How to share info via interaction?
So I have a sphere that moves in a straight line and hits another sphere thats stopped and I want the one moving to stop and the stopped one to begin moving in the direction that the moving one was (kinda like hitting marbles together) but I want many marbles and several interactions to happen repeatedly. Is there a way to share info between two marbles that are touching?.. or do I do I have to wire every single marble to every single other marble each with its own Id so the that the marbles not moving can detect which marble hit them and receive the correct directional data? Becuse based on what I have seen available in the gadgets wiring them all to each other would require 15 detector sensors per marble and roughly 225 wires just to communicate between them all. Seems a bit excessive considering I can code this normally in a few lines of code. Any Ideas would be appreciated.
-
Have you tried just making them physical? Sounds like you just want them to bounce off of each other like marbles.
-
Add a timer to the sphere of 0.1 seconds & an impact sensor. Activate the timer when the impact sensor detects an impact & wire the timer into not movable on the sphere tweak menu.
From your description it sounds like you want the spheres to stop dead when they hit another sphere. This should do that and almost immediately allow the stoped sphere to be hit & moved again. -
Thanks! The bigger question then would be getting the direction info to the stopped marble so it knows which way to move.
I have tried the physical system but it needs to be controlled directions and speed. A perfect reference for something im trying to achieve would be the bombs in bomberman 64. The movement needs to to be perpetual until it hits something and it needs to move in a straight line just like the bombs as reference.
Please sign in to leave a comment.