How are you planning on doing the search light? Are you planning on doing it as
a semi-transparent cone? If so I would basically recommend looking at the DOF
nodes (osgSim::DOFTransform), and look to attach the DOF node to your aircraft,
and then placing your code under the DOF node.
As per lighting model for the cone of light, it partially depends on what you
are going for, doing a spot light is more realistic, but is going to be more
work if you want to sort of pillar of light effect. If you are just looking to
visualize what a search light would highlight, it just going to be easier to do
a semi transparent cone.
Read this topic online here:
osg-users mailing list