{"id":31941951,"url":"https://github.com/bwaklog/rusty-physics","last_synced_at":"2025-10-14T09:23:56.507Z","repository":{"id":165494683,"uuid":"640863386","full_name":"bwaklog/rusty-physics","owner":"bwaklog","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-01T18:38:55.000Z","size":11284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-27T17:43:45.893Z","etag":null,"topics":["physics","physics-2d","physics-simulation","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwaklog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-05-15T09:33:52.000Z","updated_at":"2023-10-03T17:14:12.000Z","dependencies_parsed_at":"2023-12-20T12:09:10.527Z","dependency_job_id":null,"html_url":"https://github.com/bwaklog/rusty-physics","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.33333333333333337","last_synced_commit":"62144851b4b656898fcadcf4f1e47d7d17b7c276"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bwaklog/rusty-physics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwaklog%2Frusty-physics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwaklog%2Frusty-physics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwaklog%2Frusty-physics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwaklog%2Frusty-physics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwaklog","download_url":"https://codeload.github.com/bwaklog/rusty-physics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwaklog%2Frusty-physics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018633,"owners_count":26086404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["physics","physics-2d","physics-simulation","rust"],"created_at":"2025-10-14T09:23:55.373Z","updated_at":"2025-10-14T09:23:56.500Z","avatar_url":"https://github.com/bwaklog.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Physics Simulation in Rust 🦀  \n### version - 0001\n___\n\u003e Update: Im currently rewriting the whole thing. For a more functioning version check out my [Gravitas](https://github.com/bwaklog/Gravitas) repo\n\u003e \n\u003e ps im still very new to this \u003c•_•\u003e\n\n**Explanation of my very broken code**\n- define new particle:\n  ```rust\n  // argument order\n  // here mass, velocities(vx, vy) and positions(px, py)\n  // are f32\n  let mut p1: Particle = Particle {mass, Vector2d{px, py}, Vector2d{vx, vy}}\n\n  // using pretty_display()\n  let particle: Particle = Particle {\n        mass: 1.0,\n        poistion: Vector2d { x: 10.0, y: 15.2 },\n        velocity: Vector2d { x: 12.0, y: 12. },\n    };\n  p1.debug_display();\n  // Output\n  // ---------------\n  // Particle Details \n  //     mass : 1\n  //     position : (10, 15.2)\n  //     velocity : (12, 12)\n  // ---------------\n  ```\n\n  as of now i'm remaking the entire project. So force simulation is a commit behind. Its ready but im not ready to deploy it :D\n\n  So just for my weird ocd heres how it will shows the output for now\n  ```rust\n  // initally an array is created to store all particles.\n  // they are generated using `initialize_particles`\n  let particles: Vec\u003cParticles\u003e = Vec::new();\n  let particles = initialize_particles(particles);\n  // `show_system` is going to be used to show the updated\n  // particels at the clock intervals\n  show_system(\u0026particles);\n  ```\n  Output : \n  ```\n  Particle 1\n    mass: 5\n    position : 26i + 20j\n    velocity : 1i + -12j -\u003e 12.0415945\n    \n  Particle 2\n      mass: 4\n      position : 6i + -39j\n      velocity : -22i + 1j -\u003e 22.022715\n    \n  Particle 3\n      mass: 3\n      position : 23i + 40j\n      velocity : 34i + 40j -\u003e 52.49762\n    \n  Particle 4\n      mass: 4\n      position : -50i + 41j\n      velocity : -21i + -23j -\u003e 31.144823\n    \n  Particle 5\n      mass: 3\n      position : 21i + -29j\n      velocity : -40i + 21j -\u003e 45.17743\n  ```\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwaklog%2Frusty-physics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwaklog%2Frusty-physics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwaklog%2Frusty-physics/lists"}