{"id":15877864,"url":"https://github.com/oseiskar/js-car","last_synced_at":"2025-03-16T05:31:12.295Z","repository":{"id":59858771,"uuid":"172246214","full_name":"oseiskar/js-car","owner":"oseiskar","description":"2D JavaScript car dynamics simulation","archived":false,"fork":false,"pushed_at":"2020-02-02T21:25:31.000Z","size":75,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T05:23:17.852Z","etag":null,"topics":["javascript","physics","physics-2d","physics-simulation","simulation"],"latest_commit_sha":null,"homepage":"https://oseiskar.github.io/js-car/","language":"JavaScript","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/oseiskar.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}},"created_at":"2019-02-23T18:01:36.000Z","updated_at":"2024-11-04T08:03:58.000Z","dependencies_parsed_at":"2022-09-23T13:41:57.874Z","dependency_job_id":null,"html_url":"https://github.com/oseiskar/js-car","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oseiskar%2Fjs-car","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oseiskar%2Fjs-car/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oseiskar%2Fjs-car/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oseiskar%2Fjs-car/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oseiskar","download_url":"https://codeload.github.com/oseiskar/js-car/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806032,"owners_count":20350773,"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":["javascript","physics","physics-2d","physics-simulation","simulation"],"created_at":"2024-10-06T02:04:32.220Z","updated_at":"2025-03-16T05:31:10.938Z","avatar_url":"https://github.com/oseiskar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript 2D car dynamics simulation\n\n### Physics model features:\n\n * auto-generated track\n * collisions with the 4 walls\n * basic static and dynamic friction\n * air drag applied to the center of mass\n * \"arrow-key steering aids\": velocity-based limitations to steering angle\n  and its change rate\n\nThe physics model is \"as simple as possible\": Frictional forces are applied to\ntwo points: the center of the front and rear axle instead of the four wheels\nseparately. The car is therefore actually modeled more like a \"motorcycle that\ndoes not bank\". This is the same as assuming a lot of symmetry between the\nforces to the left and right wheel on each axle, i.e.,\n\n * no tire slip due to deformations\n * no suspension\n * no roll\n * equal coefficients of friction\n\n*TODO*:\n\n * brakes\n * non-constant torque from engine\n * noise\n\n### AI drivers\n\n * PID control with a few tricks\n * Route planning with an ad-hoc \"rubber band model\" (uses a web worker)\n\n*TODO*\n\n * Physics-based controller (non-PID)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foseiskar%2Fjs-car","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foseiskar%2Fjs-car","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foseiskar%2Fjs-car/lists"}