As the title says, during a Simscape run I want to change the color of some solids.
In my case I have a Brick solid I want to color red if it's position goes past a particular point.
I can set the inital color in the Brick solid Properties->Graphic->Visual Properties->Color, and haved used variables in place of values in that field. I also changed the option from Compile-time to Run-time.
I can write to the workspace variable and change color between runs this way but not update the color during the run.
Any suggestions appreciated. Thanks