info author: trepan date: May 01, 2009 copyright: Dave Rodgers license: distribution is NOT permitted end options end # (v) # ^ # | (v0) # | # |------x p # | n|\_______ # | | n\ (v1) # | | x # | | |\p # | | | \______ # | | | # -----------------------------> (t) # (t0) (t1) # # Each segment defines its initial value, and its duration. # v0: start value # v1: end value # s0: start slope # s1: end slope # # segment types: # # # constant value # const duration value # # # linear # linear duration v0 v1 # # # quadratic # quadn duration v0 v1 s0 # quadp duration v0 v1 s1 # # # cubic # cubic duration v0 v1 s0 s1 # - nslope: number | 'smooth' | 'linear' (defaults to smooth) # - pslope: number | 'smooth' | 'linear' (defaults to smooth) # # # cosine # cosine duraction period scale offset # curve const const 1 123.456 end curve linear linear 10 0 10 end curve quadn quadn 10 0 0 -10 end curve quadp quadp 10 0 0 -10 end curve cubic cubic 10 0 10 -1 -1 end curve cosine cosine 10 10 180 0.5 0.5 end curveset prefix cs_ speed 1 delay 10 duration 10 px linear 0 10 py linear -10 0 pz linear 0 10 duration 10 px linear 10 0 py linear 0 10 pz linear 10 0 duration 10 px linear 0 -10 py linear 10 0 pz linear 0 10 duration 10 px linear -10 0 py linear 0 -10 pz linear 10 0 end curve nx addcurve cs_px end curve ny addcurve cs_py end curve nz addcurve cs_pz end animation name cs spin 90 0 1 0 scale cs_px cs_py 3 shift 10 0 0 shift cs_px cs_py cs_pz end animation name cs2 shift 1 2 3 anim cs spin cs_px 23 4 7 xyzMap cs_px cs_py cs_pz 1 2 3 nx ny nz end