PDA

View Full Version : spotlight keeping pointed



jozefus
10-25-2007, 03:00 AM
I want to make a spotlight that keeps pointed to an object, while the spot is moving. Like a spotlight on a heli that is lighting a house on the ground, while the heli flies over it.
I parented the spotlight to a null positioned on the house and had the null rotating, but then the distance of the spot to the house remains the same: the radius of the circle the null describes. But in real life the heli flies a horizontal line....so the distance of the spot to the house differs.
I tried to keyframe every frame, adjusting the distance of the spot to the house while the heli flies over it, but this gives no good results: I had to estimate the position of the light on the house every frame and that results in a wakling light, not a stable spot on the house.
Any ideas how to solve this?
Jozefus

Captain Obvious
10-25-2007, 03:29 AM
Motion options -> Target Item

Set up a Null, and set that as the spotlight's Target Item.

jozefus
10-25-2007, 02:22 PM
Did already so, but then the spotlight follows part of a circle instead of a straight line.

Captain Obvious
10-25-2007, 05:28 PM
When you set an object up to be another object's target, it will point at it. That's exactly what you want to do in this situation.