Hello,
Just a little problem with the corona sun creation (Corona 4 hotfix 1) if i try to create a target sun, the target is not exposed after creation and can not be use. The solution is to create untargeted and after change to targeted.
Problem :
_Sun = CoronaSun targeted:on name:"myName"pos:[0,0,4000])
_Sun.Target.pos = [0,20,0] -- => give an error because _SunTarget stay undefined
Good solution :
_Sun = CoronaSun targeted:off name:"myName"pos:[0,0,4000])
_Sun.targeted = true
_Sun.Target.pos = [0,20,0] -- => Works perfectly
I hope it can help someone, because i search a long time where was my mistake