Orientation TargetSpot like Target Camer
Good day.
In scene present
Target Camera - $Camera01 and Target Spot-$Spot01.
I need to orient $Spot01 like $Camera01
For position I use:
$Spot01.pos=$Camera01.pos
$Spot01.target.pos=$Camera01.target.pos
for rotation I use:
r = $Camera01.transform.rotationPart
rotate $Spot01 r
AND HAVE MISTAKE....
HELP!!!!
Comments
The second solution is good....
Barigazy, thank you....
No, thet is wronrg
If TargetSpot has rectangle shape(not circle), the mistake appears...
Cone of camera does not coincide with cone of spot....
solution #2
Or you can use controller values
Now you see that TargetLight and TargetCamera have roll angle (LookAt controller) float value. No need to use quat values.
bga
solution #1
Why don't you try only with transform
bga