精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 動(dòng)畫表達(dá)式算法的問題(物理或數(shù)學(xué)高手請進(jìn))

    動(dòng)畫表達(dá)式算法的問題(物理或數(shù)學(xué)高手請進(jìn))
    這是一段MAYA中的動(dòng)畫表達(dá)式,如果您不會(huì)MAYA也沒關(guān)系,相信只要你有程序基礎(chǔ)和一定的物理或數(shù)學(xué)知識,就能回答如下問題.
    誰能告訴我這段表達(dá)式算法的含義,,(注:我表達(dá)式語法沒有問題,只解釋算法就可以了,只給鏈接不給解釋的混分族勿擾!)
    // keep seat balanced
    $seatHeight = unicycle:wheel.translateY + 0;
    $seatX = unicycle:uniCycle.translateZ;
    $wheelX = unicycle:wheel.translateZ;
    $dist = abs(unicycle:wheel.translateZ - unicycle:uniCycle.translateZ);
    if ($dist = 0)
    unicycle:uniCycle.translateY = $seatHeight - $dist/3;
    else
    unicycle:uniCycle.translateY = $seatHeight;
    // Rotation stuff
    // global vector $twistold;
    vector $twistpos =;
    vector $spaz = $twistpos - ;
    unicycle:wheel.twistoldX = $twistpos.x;
    unicycle:wheel.twistoldY = $twistpos.y;
    unicycle:wheel.twistoldZ = $twistpos.z;
    //float $rad = wheel.scaleX;
    float $rad = .035;
    if ($spaz.z < 0)
    {
    unicycle:wheel.rotateX = unicycle:wheel.rotateX - mag($spaz)/$rad;
    }
    if ($spaz.z > 0)
    {
    unicycle:wheel.rotateX = unicycle:wheel.rotateX + mag($spaz)/$rad;
    }
    float $dt = 1.0 / 24.0;
    float $d;
    float $w = 0.0;
    $w = $w * $w * $w;
    float $a = 0.0;
    if( frame == 1 )
    {
    unicycle:wheel.translateZ = (unicycle:uniCycle.translateZ + unicycle:wheel.translateZTouniCycle_translateZOffset );
    }
    $d = unicycle:uniCycle.translateZ + unicycle:wheel.translateZTouniCycle_translateZOffset - unicycle:wheel.translateZ;
    $w = unicycle:wheel.translateZTouniCycle_translateZWeight; $w = $w * $w * $w;
    $a = $w * ( ( $d / $dt ) - unicycle:wheel.translateZ_Velocity ) / $dt;
    unicycle:wheel.translateZ_Velocity = unicycle:wheel.translateZ_Velocity + $a * $dt;
    unicycle:wheel.translateZ = unicycle:wheel.translateZ + unicycle:wheel.translateZ_Velocity * $dt;
    簡要說明一下,unicycle:uniCycle是一個(gè)獨(dú)輪自行車的坐架,unicycle:wheel是它的輪子.
    數(shù)學(xué)人氣:186 ℃時(shí)間:2020-04-08 04:53:28
    優(yōu)質(zhì)解答
    我好同情你啊
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版