Page 1 of 1

Changing color of led lights of movable and immovable boxes

Posted: Thu Nov 16, 2017 2:29 pm
by Arun_AR
Is there a way to change the color of light these boxes during the course of the experiment dynamically.
<box id="box1" size="0.1,0.1,0.1" movable="true" mass="2.5">
<leds medium="leds">
<led offset=" 0, -0.05,0" anchor="origin" color="red" />
<led offset="0, 0.05,0" anchor="origin" color="red" />
<led offset=" 0.05, 0,0" anchor="origin" color="red" />
<led offset=" -0.05,0,0" anchor="origin" color="red" />
</leds>
</box>

Re: Changing color of led lights of movable and immovable boxes

Posted: Thu Nov 16, 2017 7:30 pm
by pincy
Yes, use the loop functions. There are a few examples already of how to loop through foot-bots. Just change those to loop through LED entities.

Re: Changing color of led lights of movable and immovable boxes

Posted: Fri Nov 24, 2017 6:36 am
by Arun_AR
Thank you professor for your kind clarification. I surely will try.