Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addons: Refactored InteractiveGroup. #834

Merged
merged 5 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14522,7 +14522,7 @@ index b659652..06e3224 100644
//

diff --git a/examples-testing/examples/webxr_vr_sandbox.ts b/examples-testing/examples/webxr_vr_sandbox.ts
index aa80cf7..e929206 100644
index 6ffadcf..b3b80e3 100644
--- a/examples-testing/examples/webxr_vr_sandbox.ts
+++ b/examples-testing/examples/webxr_vr_sandbox.ts
@@ -12,9 +12,9 @@ import { XRControllerModelFactory } from 'three/addons/webxr/XRControllerModelFa
Expand All @@ -14538,7 +14538,7 @@ index aa80cf7..e929206 100644

const parameters = {
radius: 0.6,
@@ -197,7 +197,7 @@ function animate() {
@@ -199,7 +199,7 @@ function animate() {

function render() {
const time = performance.now() * 0.0002;
Expand All @@ -14547,7 +14547,7 @@ index aa80cf7..e929206 100644
torus.rotation.x = time * 0.4;
torus.rotation.y = time;

@@ -205,5 +205,9 @@ function render() {
@@ -207,5 +207,9 @@ function render() {
stats.update();

// Canvas elements doesn't trigger DOM updates, so we have to update the texture
Expand Down
4 changes: 3 additions & 1 deletion types/three/examples/jsm/interactive/InteractiveGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ export interface InteractiveObject3DEventMap extends Object3DEventMap {
export class InteractiveObject3D extends Object3D<InteractiveObject3DEventMap> {}

export class InteractiveGroup extends Group {
constructor(renderer: WebGLRenderer, camera: Camera);
listenToPointerEvents(renderer: WebGLRenderer, camera: Camera): void;

listenToXRControllerEvents(renderer: WebGLRenderer): void;
}
Loading