(追è¨)JavaScriptã§å®è£
ãã¦ã¿ã¾ãã æãä½ãã®éèª*1ã§ããªãªã®ã¸ã£ã³ãã®å®è£
æ³ãè¦ãè¦ãããã£ã¦ããã®æ¾ç©ç·éåã¯ã ããªãªã®é度ãã¯ãã«ãä¿åãã¦ããã¦åº§æ¨ãè¨ç®ããããããªãã¦ã ããªãªã®ååã®åº§æ¨ãä¿åãã¦ããã¦åº§æ¨ãè¨ç®ãã¦ãããã ããã§ãã y_temp = Mario.y; Mario.y += (Mario.y - Mario.y_prev) + F; Mario.y_prev = y_temp;Fã¯ãã®ç¬éã®åã§ãã¸ã£ã³ãã®ç¬éã¯F=10ã«ãã¦ã空ä¸ã§ã¯F=-1ã«ãã¾ãã ããã¨ãããªæ¾ç©ç·ã«ãªãã¾ãã [0,10,19, 27, 34, 40, 45, 49, 52, 54, 55, 55, 54, 52, 49, 45, 40, 34, 27, 19, 10, 0] å æ¸ç®ãã使ããªãã®ã§ãé常ã«é«éã«ã§ããã¨ã ãããVerletç©åã«ä¼¼ã¦ãããªã¨æã£ã
{{#tags}}- {{label}}
{{/tags}}