Skip to content

Commit

Permalink
feat: move camere on focus mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Jan 23, 2024
1 parent e8597c3 commit 455fd2f
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 124 deletions.
4 changes: 1 addition & 3 deletions src/blueprints/experiences/scene-component.blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import {
Line,
BufferGeometry,
LineBasicMaterial,
Color,
} from "three";
import type { GLTF } from "three/examples/jsm/loaders/GLTFLoader";
import type { gsap } from "gsap";

// BLUEPRINTS
import { ExperienceBasedBlueprint } from "./experience-based.blueprint";
Expand All @@ -32,10 +30,10 @@ import type {
ModelChildrenMaterials,
} from "~/common/experiences/experience-world.model";
import type { NavigationView } from "~/common/experiences/navigation.model";
import type { SelectableObject } from "~/common/experiences/interaction.model";

// CONFIG
import { Config } from "~/config";
import type { SelectableObject } from "~/common/experiences/interaction.model";

// TODO: Link with the names of assets in the `app.loader` assets names
export interface SceneBlueprintProps {
Expand Down
2 changes: 2 additions & 0 deletions src/common/experiences/interaction.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export interface SelectableObject {
focusPoint?: Vector3;
focusTarget?: Vector3;
focusFov?: number;
focusRadius?: number;
focusOffset?: Vector3;
onFocusedIn?: () => unknown;
onFocusedOut?: () => unknown;
}
2 changes: 1 addition & 1 deletion src/content/index.md → src/content/content.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nuxt Content

This page corresponds to the `/` route of your website. You can delete it or create another file in the `content/` directory.
This page corresponds to the `/content` route of your website. You can delete it or create another file in the `content/` directory.

Try to navigate to [/about](/about). These 2 pages are rendered by the `pages/[...slug].vue` component.

Expand Down
1 change: 1 addition & 0 deletions src/experiences/home/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class HomeExperience extends ExperienceBlueprint {
this.cameraAnimation?.update();
this.navigation?.update();
this.composer?.update();
this.interactions?.update();
this.renderer?.update();
this.debug?.update();
} catch (_) {
Expand Down
Loading

0 comments on commit 455fd2f

Please sign in to comment.