Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. 🇳🇴 Thor — backup account (thorthenorseman@octodon.social)'s status on Monday, 27-Aug-2018 18:26:34 EDT 🇳🇴 Thor — backup account 🇳🇴 Thor — backup account

    I made an animated rubbery graph thing in JS. It creates a random graph and the edges have set lengths, and they push and pull at the vertices because they want to stay that length. It turns out that of you write such a program, the graph will develop linear and angular momentum as an emergent effect, because any force that isn't resisted by an equal and opposite force within the graph will cause the entire graph to move or turn.

    In conversation Monday, 27-Aug-2018 18:26:34 EDT from octodon.social permalink
    1. 🇳🇴 Thor — backup account (thorthenorseman@octodon.social)'s status on Monday, 27-Aug-2018 18:40:26 EDT 🇳🇴 Thor — backup account 🇳🇴 Thor — backup account
      in reply to

      Because linear momentum made the graph drift off the screen, I had to add some code to recenter it after every frame. I don't know if there is a solution to the angular momentum. It's much easier to measure and subtract translation than rotation.

      In conversation Monday, 27-Aug-2018 18:40:26 EDT from octodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.