{"id":20170047,"url":"https://github.com/diklor/spring","last_synced_at":"2026-03-06T03:32:54.518Z","repository":{"id":211034586,"uuid":"728035220","full_name":"diklor/spring","owner":"diklor","description":"3d spring.  awesome for recoil","archived":false,"fork":false,"pushed_at":"2023-12-22T16:31:29.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T04:15:32.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"GDScript","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/diklor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2023-12-06T04:54:25.000Z","updated_at":"2024-04-02T12:48:02.000Z","dependencies_parsed_at":"2023-12-22T17:30:30.999Z","dependency_job_id":"1a834fec-d50d-4594-8125-b06256949059","html_url":"https://github.com/diklor/spring","commit_stats":null,"previous_names":["extremesphere/spring","diklor/spring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diklor/spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diklor%2Fspring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diklor%2Fspring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diklor%2Fspring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diklor%2Fspring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diklor","download_url":"https://codeload.github.com/diklor/spring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diklor%2Fspring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30160899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"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":[],"created_at":"2024-11-14T01:16:10.355Z","updated_at":"2026-03-06T03:32:54.486Z","avatar_url":"https://github.com/diklor.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring\n3d spring,   awesome for recoil\n\n\n\n# Create\n```gdscript\nvar recoil_spring := Spring.new(8, 3, 2, 8)   # mass, force, damping, speed\n```\n\n\n# Shove\n```gdscript\nfunc recoil() -\u003e void:\n   var y := 8.0\n   var x := 1.0\n\n   recoil_spring.shove(Vector3(x, y, 0))\n```\n\n\n# Get / Update\n```gdscript\nfunc _process(delta: float) -\u003e void:\n  var recoil_vector: Vector3 = recoil_spring.update(delta) / 100.0\n\n   cam.rotation = mouse_drag + recoil_vector\n```\n\n\n# Mouse Drag\n```gdscript\nfunc _input(event: InputEvent) -\u003e void:\n   if ((event is InputEventScreenDrag) or (event is InputEventMouseMotion)):\n      mouse_drag.x  = -event.relative.y * SENSITIVITY\n      mouse_drag.y  = -event.relative.x * SENSITIVITY\n\n  elif event.is_action_pressed('fire'): # ADD FIRE ACTION IN INPUTMAP\n      recoil()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiklor%2Fspring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiklor%2Fspring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiklor%2Fspring/lists"}