{"id":27257967,"url":"https://github.com/juanperias/motion","last_synced_at":"2025-04-11T03:19:15.012Z","repository":{"id":257981069,"uuid":"872692180","full_name":"Juanperias/motion","owner":"Juanperias","description":"Motion is a bare metal physics engine","archived":false,"fork":false,"pushed_at":"2024-11-01T21:42:05.000Z","size":103,"stargazers_count":31,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T08:04:04.378Z","etag":null,"topics":["bare-metal","no-std","physics","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/motion/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Juanperias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-14T22:38:12.000Z","updated_at":"2025-01-30T15:32:24.000Z","dependencies_parsed_at":"2024-10-27T16:56:27.716Z","dependency_job_id":null,"html_url":"https://github.com/Juanperias/motion","commit_stats":null,"previous_names":["juanperias/record"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanperias%2Fmotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanperias%2Fmotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanperias%2Fmotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanperias%2Fmotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Juanperias","download_url":"https://codeload.github.com/Juanperias/motion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333516,"owners_count":21086206,"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","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":["bare-metal","no-std","physics","rust"],"created_at":"2025-04-11T03:19:14.288Z","updated_at":"2025-04-11T03:19:14.985Z","avatar_url":"https://github.com/Juanperias.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://i.ibb.co/dDJLb0X/motion-Banner.png\"\u003e\n\n# Motion🍃\n\nMotion is a **bare metal physics engine** with which you can make simulations easily and quickly, also in rust.\n\n## Get started ✨\n\nlet's start by making a simple event loop\n\n```rust\nuse std::{thread, time::Duration};\n\nuse motion::event_loop::EventLoopBuilder;\n\n// The definition of this function depends on the context in which motion is used\nfn sleep(duration: Duration) {\n    thread::sleep(duration);\n}\n\nfn main() {\n    let el = EventLoopBuilder::new().fps(1).build();\n\n    el.start(|_config| println!(\"Hello! in the event loop\"), sleep);\n}\n```\n\nnow we are going to do something more complex by creating an object\n\n```rust\n    let obj = Object2dBuilder::new()\n        .position(vec2(2.0, 2.0))\n        .density(2.0)\n        .mass(3.0)\n        .velocity(vec2(4.0, 4.0))\n        .acceleration(vec2(3.0, 3.0))\n        .radius(2.0)\n        .shape(Shape::Circle)\n        .build();\n```\n\n## Why rust 🦀\n\nRust is a fast and efficient programming language, which makes it perfect for motion, plus it is very flexible allowing motion to be used everywhere.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanperias%2Fmotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuanperias%2Fmotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanperias%2Fmotion/lists"}