Weird behaivour when trying to simulate gravity

前端 未结 0 1649
感情败类
感情败类 2020-11-21 15:25

I\'m trying to simulate Newtonian gravity with C++ and GLM. I\'m using GLM vectors and this equation I found on Wikipedia

I translated this into code:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题