• 唐璜性质的脚本 和朋友分析


    p= 茶壶
    PCross = point
    ---这个脚本是这样解释的,
    --第一次用this.vTime 没有定义肯定报错 多亿返回 【0 0 0 】

      $Point001[4].tension

     $Point001[4].Damping=0.5


    show $Point002[3][1].soxRealtimeSpringCon

    $Point002[3][1].soxRealtimeSpringCon.vTime


      .vpos : point3
      .vVec : point3
      .vTime : float
     ---这个脚本就是说上面是解释。 肯定都有初始值。


    try (

    tTime = timeStamp () / 30 ---显卡时间

    diff = abs (tTime - this.vTime)--有了上面这里面就解释清楚了
    print this.vTime

    if diff >= 1 then (

    this.vTime = tTime

    tVec = (P.pos - this.vPos) * PCross.Tension --PCross.Tension 是0.5

    --tVec=(茶壶的位置 - 系统设定的位置)*0.5 ---几何意义就是 中间有一段距离。

    tPos = this.vPos + tVec + this.vVec
     
     --tPos= 系统设定的位置+ 中间一段距离+ 开始的设置。

    this.vPos = tPos ---替换变量

    this.vVec = (tVec + this.vVec) * (1.0 - PCross.Damping) --PCross.Damping 是0.2 ---替换变量


    tPos ---返回的pos

    )

    else this.vPos---所以这个应该是个初始值。

    ) catch [0, 0, 0]

  • 相关阅读:
    leetcode100
    leetcode237
    leetcode171
    leetcode122
    leetcode387
    2018-8-10-win10-uwp-如何打包Nuget给其他人
    2018-8-10-win10-uwp-如何打包Nuget给其他人
    2019-11-13-如何在国内发布-UWP-应用
    2019-11-13-如何在国内发布-UWP-应用
    2019-2-21-PowerShell-通过-WMI-获取设备厂商
  • 原文地址:https://www.cnblogs.com/gaitian00/p/2196707.html
Copyright © 2020-2023  润新知