Skip to content

TresJS camera is undefined error when using Vue's <Transition /> component #1002

@Tinoooo

Description

@Tinoooo

Describe the bug

see https://github.com/LoiLock/tresjs-error-mre

My guess is that it is coused by this call:

const unprojectedPoint = new Vector3(event?.clientX, event?.clientY, 0).unproject(ctx.camera?.value as TresCamera)

The type assertion there should probably be omitted.

Reproduction

https://github.com/LoiLock/tresjs-error-mre

Steps to reproduce

No response

System Info

Used Package Manager

npm

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions