Giter Site home page Giter Site logo

Comments (3)

Zydiii avatar Zydiii commented on August 25, 2024

你好,使用 w *= angular_decay 其实主要是按照 lab 文档里说的公式直接进行了更新,因为除了重力没有其他外力,所以外力产生的力矩为 0。
按照老师给的算法角速度每个时间步长的更新值为 0,所以就省去了关于更新力矩和角速度的计算,角速度可以看作恒定,直接添加衰减系数模拟阻力效果。

from games103.

cmusjtuliuyuan avatar cmusjtuliuyuan commented on August 25, 2024

from games103.

Zydiii avatar Zydiii commented on August 25, 2024

我觉得主要是这个算法的原因吧,它没有用到角动量,更新角速度是用的 合外力矩 / 转动惯量 * dt 作为每个时间步长角速度的变化量,所以在这个场景下角速度的变化量为 0。

from games103.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.