Skip to content

Commit

Permalink
0.7.3: Add WLRoot.getCollider
Browse files Browse the repository at this point in the history
  • Loading branch information
rafern committed Feb 27, 2024
1 parent 6498253 commit 7238985
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lazy-widgets-wle",
"version": "0.7.2",
"version": "0.7.3",
"description": "Typescript retained mode GUI for the HTML canvas API - Wonderland Engine integration",
"wonderlandengine": {},
"main": "dist/index.js",
Expand Down
9 changes: 9 additions & 0 deletions src/core/WLRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,4 +833,13 @@ export class WLRoot extends Root {
this.texture.destroy();
this.texture = null;
}

/**
* Get the collision component used for detecting cursor input. Will be null
* if a {@link WLRootProperties#collisionGroup} is not provided when
* creating this WLRoot.
*/
getCollider() {
return this.collision;
}
}

0 comments on commit 7238985

Please sign in to comment.