Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业8 rope构造函数出来就是一个点

  • This topic has 2 replies, 3 voices, and was last updated 2 years ago by YY.
Viewing 2 reply threads
  • Author
    Posts
    • #6084 Score: 0
      condyy
      Participant
      2 pts

      我的思路大概是,从i=0到i=质点个数-1过程中,创立mass,push到masses的vector中。spring也是这样一个流程,m1和m2就用masses[i]和masses[i+1]。有什么问题吗?为啥会重叠? 有可能是因为啥,求大佬指教!
      (ps:我怀疑是我的框架有问题,pinned_noeds我没有管他,我在他之前完成了上述的添加)

    • #6085 Score: 0
      JZZ
      Keymaster
      2 pts

      应该没问题吧。话说masses、springs容器里存的是Mass、Spring指针,直接push怕是不太对的说

    • #6141 Score: 0
      YY
      Participant
      1 pt

      请问题主解决了吗?也遇到了同样问题

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