hunts Posted May 31, 2017 Share Posted May 31, 2017 i'm trying to control the direction of the spotlight in my fps game, but i think it's only limited to one direction http://www.babylonjs-playground.com/#lf4h6a#28 Quote Link to comment Share on other sites More sharing options...
Raggar Posted May 31, 2017 Share Posted May 31, 2017 When you set the position of the spotlight, in the registerBeforeRender loop, can't you simply change the direction there? light.direction =; ? hunts 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 31, 2017 Share Posted May 31, 2017 And don't forget the handy .setDirectionToTarget() function on all lights, capital letters boy. GameMonetize and hunts 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.