Previous Top Next |
Interfacing with the Projectile Model Data |
This slide examines the code relating to reading from and writing to the projectile's model information which is stored in the projectile model's system object.
The code below stores the initial length values for elements named OG, OGV and OGLEAD. Basically the code sets an object for each of the elements and retrieves the length value for each.
In the code for the analysis loop shown below, almost the same code is executed except this time the ogive elements' lengths are set. The first loop uses the original lengths and each subsequent loop shortens the ogive. The MODEL.SIGNALUPDATE updates the model and the projectile is redisplayed.
© 2015 Arrow Tech Associates |