Stopping conditions triggered on shadow
Thursday, June 14th, 2007How can I make a stopping condition that stops when I enter or exit direct sunlight?
(From the AGI Astrogator Wiki)
You can use the VGT sunlight vector to do this. Make a vector mag calc object that gives the magnitude of the sunlight vector (the sunlight vector is under Templates - Satellite. Create a user select stopping condition, and set its calc object to the sunlight vector magnitude calc object you just created. For an enter direct sunlight stopping condition, set the trip value to 1, and the criterion to Cross Increasing. For an exit direct sunlight stopping condition, set the trip value to 0.999999 (make sure the tolerance is smaller than the difference between the trip value and 1), and the criterion to Cross Decreasing.
If you want to stop when exiting or entering penumbra, use similar stopping conditions with the trip value set to zero. (We’ll see default stopping condition like this in 8.2)