{"id":15282459,"url":"https://github.com/wonderlandengine/community-components","last_synced_at":"2025-04-12T22:55:29.748Z","repository":{"id":54133599,"uuid":"339792744","full_name":"WonderlandEngine/community-components","owner":"WonderlandEngine","description":"Custom JavaScript components created by the Community!","archived":false,"fork":false,"pushed_at":"2024-02-22T09:16:22.000Z","size":45,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:55:25.112Z","etag":null,"topics":["web3d","webar","webvr","webxr","wonderland","wonderland-engine"],"latest_commit_sha":null,"homepage":"","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/WonderlandEngine.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,"publiccode":null,"codemeta":null}},"created_at":"2021-02-17T16:53:24.000Z","updated_at":"2024-05-07T11:32:49.000Z","dependencies_parsed_at":"2024-02-22T10:43:06.474Z","dependency_job_id":null,"html_url":"https://github.com/WonderlandEngine/community-components","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/WonderlandEngine%2Fcommunity-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fcommunity-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fcommunity-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fcommunity-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WonderlandEngine","download_url":"https://codeload.github.com/WonderlandEngine/community-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643050,"owners_count":21138353,"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":["web3d","webar","webvr","webxr","wonderland","wonderland-engine"],"created_at":"2024-09-30T14:26:18.559Z","updated_at":"2025-04-12T22:55:29.728Z","avatar_url":"https://github.com/WonderlandEngine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![wonderland-engine-logo](img/wle-logo-horizontal-reversed.png)\n\n# Community Components\n\nCustom JavaScript components created by the Community!\n\n## How to use\n\nInstructions on how to use components from this repository.\n\n### NPM package\n\nIf you already have a git repository set up for your Wonderland Engine\nproject, this method allows easily updating later.\n\n~~~\nnpm i --save @wonderlandengine/community-components\n~~~\n\n## Documentation\n\n## controller\n\n**Author:** [@msub2](https://github.com/msub2)\n\nSmooth locomotion character controller for VR.\n\n| Param | Type | Description |\n|---|---|---|\n| handedness | Enum | Handedness for VR cursors to accept input only from respective controller |\n| controlType | Enum | Whether this controller rotates or moves the character |\n| controlSource | Enum | Whether to use thumbstick or touchpad for input |\n| player | Object | Player object which is moved |\n| head | Object | Head/Left eye object from which to get movement direction |\n| head2 | Object | Right eye object from which to get movement direction |\n| moveSpeed | Float | Movement speed, default `1.0` |\n| allowFly | Bool | Allow flying (if false, will not move on the Y axis) |\n| rotationType | Enum | Whether to rotate smoothly or snap in `snapDegrees` increments |\n| snapDegrees | Int | Incremements to snap to when `rotationType` is `\"snap\"`, default `45` |\n\n## line-connection\n\n**Author:** [@Squareys](https://github.com/squareys)\n\nDraw a line between two objects by scaling a mesh (e.g. a cube) and rotating it accordingly.\n\n| Param | Type | Description |\n|---|---|---|\n| targetA | Object | Object from which to draw the line |\n| targetB | Object | Object to which to draw the line |\n| lengthPercentage | Float | How much of the length between the objects to span |\n| thickness | Float | Thickness of the line, default `0.05` |\n\n**Requirements:**\n\n - Expects a mesh component attached to the same object\n\n## waypoint-movement\n\n**Author:** [@Srile](https://github.com/srile)\n\nMoves an object along a path made up of multiple points.\n\n| Param | Type | Description |\n|---|---|---|\n| pathObject | Object | Container of the waypoints. The position of its children indicate the points. |\n| speed | Float | Movement speed of the object |\n| curveDistance | Float | Distance in normal space [0, 0.5) after which the objects starts moving on a curve (used for smooth corners) |\n\n**Callbacks**\n - `addOnFinalWaypointReachedCallback(f)`/`removeOnFinalWaypointReachedCallback(f)` can be used for function callback registration and are fired when the object reaches the end destination.\n\n**Requirements:**\n\n - pathObject's children are sorted by alphebetical ascending naming (e.g. A, B, C, D, E, F, ...)\n\n**Notes**\n\n - `lookAt` will be replaced with a native function in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderlandengine%2Fcommunity-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwonderlandengine%2Fcommunity-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderlandengine%2Fcommunity-components/lists"}