µ¹°í·¡ ȨÆäÀÌÁö
ID:
PW:


  ¿î¿µÀÚ(2019-05-17 11:31:02, Hit : 1756, Vote : 925
 DirectX GUI

Tutorial: Migrating Your Apps to DirectX* 12 – Part 4 (Multiple Plane)
http://software.intel.com/en-us/articles/tutorial-migrating-your-apps-to-directx-12-part-4

jump
http://2dengine.com/?p=platformers
http://error454.com/2013/10/23/platformer-physics-101-and-the-3-fundamental-equations-of-platformers/


function update(n) {
    var p1=picked[0];var p2=picked[1];
    if((p1==h&&p2==g)||(p1==g&&p2==h))  {
        v.value=Math.sqrt(2*g.value*h.value);
        a.value=v.value/g.value;
    }
    else if((p1==h&&p2==v)||(p1==v&&p2==h))  {  //jumpHeight, initVelocity¸¦ ¾Ë¶§
        g.value=(2*h.value)/(a.value*a.value);
        a.value=h.value/v.value*2;
    }
    else if((p1==h&&p2==a)||(p1==a&&p2==h)) {
        g.value=(2*h.value)/(a.value*a.value);
        v.value=Math.sqrt(2*g.value*h.value);
    }
    else if((p1==g&&p2==v)||(p1==v&&p2==g))
    {
        a.value=v.value/g.value;
        h.value=v.value/2*a.value;
    }
    else if((p1==g&&p2==a)||(p1==a&&p2==g))   {
        v.value=g.value*a.value;
        h.value=v.value/2*a.value;
    }
    else if((p1==v&&p2==a)||(p1==a&&p2==v))  {
        h.value=v.value/2*a.value;
        g.value=(2*h.value)/(a.value*a.value);
    }
    v.value=v.value;
    h.value=h.value;
    g.value=g.value;
    a.value=a.value;
}


-- what is the gravity that would allow jumping to a given height?
g = (2*jumpHeight)/(timeToApex^2)

-- what is the initial jump velocity?
initJumpVelocity = math.sqrt(2*g*jumpHeight)

-- how long does it take to reach the maximum height of a jump?
-- note: if "initJumpVelocity" is not a multiple of "g" the maximum height is reached between frames
timeToApex = initJumpVelocity/g


------------------------------------------------------------------
¹°¸®¿¡¼­ º¯À§¸¦ t·Î ¹ÌºÐÇÏ¸é ¼Óµµ°¡ ³ª¿À°í ¼Óµµ¸¦ ¹ÌºÐÇÏ¸é °¡¼Óµµ°¡ ³ª¿Â´Ù
s(º¯À§) = v0*t + a*t2/2 = v0 + 2*a*t/2 = v0 + a*t
v(¼Óµµ) = v0 + a*t = 1*a
a(°¡¼Óµµ)

Ãâó: https://zzragida.tistory.com/entry/¹°¸®¿Í-¹ÌºÐ°ú-Èû-°¡¼Óµµ-¼Óµµº¯À§°Å¸®½Ä-Á¤¸® [¾Æ¸§´Ù¿î ¼¼»óÀ» À§ÇÏ¿©~~]




¡â À¯´ÏƼ µð¹ö±ë
¡ä eawebkit

Copyright 1999-2022 Zeroboard / skin by zero