Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业8 simulateEuler 绳子很快变成垂直然后不动

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #6348 Score: 0
      YileXu
      Participant
      1 pt

      作业8 simulateEuler 绳子很快变成垂直然后不动

      Attachments:
      You must be logged in to view attached files.
    • #6351 Score: 0
      YileXu
      Participant
      1 pt

      很奇怪的是如果我把simulateEuler前面的两个s->m1->forces = Fba;写成s->m1->forces += Fba;的话,绳子就会消失,然后我尝试打印position.x和position.y打印出来是-nan,好像是无效数字的意思…

    • #6367 Score: 1
      YileXu
      Participant
      1 pt

      解决了!!s->k不用给负号

      This post has received 1 vote up.
      • #6371 Score: 0
        MrPhD
        Participant
        1 pt

        解决什么了?

        • #6405 Score: 0
          YileXu
          Participant
          1 pt

          就是我的绳子本来是很快速度变成垂直的然后就不动了,现在可以有落下然后弹跳的动作了

        • #6406 Score: 0
          YileXu
          Participant
          1 pt

          而且也可以用s->m1->forces += Fba;而不需要用s->m1->forces = Fba;

Viewing 2 reply threads
  • You must be logged in to reply to this topic.