[SOLVED] How to implement a prison searchlight?

Hi. I am new to JME. I have a doubt regarding spotlight. Basically, I want the spotlight to act like a prison search light that rotates continuously on the ground. How do I do that? I didn’t find any method to rotate spotlight. I tried adding the spotlight to a node and then tried rotating the node. But it doesn’t work.

Plase show your code.


1 Like

Thank you very much. Its working now.

As ppspeed posted, I had to use setDirection. It is working now.

1 Like