Richard C Posted February 24, 2017 Share Posted February 24, 2017 @Wingnut I'm thinking you created this playground .............. http://www.babylonjs-playground.com/#12BHLU#0 I am struggling to understand the light on/off logic. Can you briefly summarise how Light1.state = "on" works. State is a string and I can see the string is being changed in the action manager but I assume it in itself is not changing the lights but only serves as an indicator that the lights are off or on. I don't see the purpose. I cant find any documentation other than the description in the classes as to how it all functions. Is state only used for lights or can it be used to control action/properties of mesh too? I think it would be useful to me if only I understood it !!!!! I'd appreciate your help please. cheers RC. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.