Light and Shadows

Is there a way to create a light source that shines on objects when they are in proximity in Java Script? For example a flashlight or a lamp.

1 Like

I have the same question! : O

There is no build-in spotlight system in CoSpaces at the moment.
If you want to create light source by yourself, you could do the following:

  • attach the cone object to flashlight,
  • set cone opacity to 0.1
  • highlight objects when they collide with the cone.

Hope that helps

1 Like

That is a pretty genius solution Nikolay!