]> git.mxchange.org Git - simgear.git/commit
Frederic Bouvier:
authorcurt <curt>
Mon, 24 Jan 2005 19:49:35 +0000 (19:49 +0000)
committercurt <curt>
Mon, 24 Jan 2005 19:49:35 +0000 (19:49 +0000)
commit867571af78515c7b6372add5fb8002739f726860
treee2c3054ea6661aec59f4633b73958cd5a36306d7
parentf6314d3124633a05ce249ece5fef6d4f7a07cb76
Frederic Bouvier:

this is the animation code that do randomisation of the spin animation. The XML tags are modified to support the syntax below :

  <use-personality type="bool">true</use-personality>
  <factor>
    <random>
      <min>1.8</min>
      <max>2.2</max>
    </random>
  </factor>
  <starting-pos-deg>
    <random>
      <min>0</min>
      <max>360</max>
    </random>
  </starting-pos-deg>

instead of usual :

  <factor>1.42</factor>
  <starting-deg-pos>42.0</starting-deg-pos>
simgear/scene/model/animation.cxx
simgear/scene/model/animation.hxx