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

Add TrackballControls to Cientos #595

Open
4 tasks done
4ndykum5ch13r opened this issue Feb 14, 2025 · 0 comments
Open
4 tasks done

Add TrackballControls to Cientos #595

4ndykum5ch13r opened this issue Feb 14, 2025 · 0 comments

Comments

@4ndykum5ch13r
Copy link

Description

As a developer using TresJS / cientos, I would like to have a TrackballControls component similar to OrbitControls.

see Threejs: https://threejs.org/docs/#examples/en/controls/TrackballControls

Suggested solution

Since the TrackballControl source is very similar to OrbitControl, I took the source of OrbitControls.vue.d.ts and adjusted it slightly. That version works in my application and I can use it directly like OrbitControls.

<TresCanvas"> <TresPerspectiveCamera/> <VisuTrackBallControls /> </TresPerspectiveCamera> </TresCanvas>

VisuTrackBallControls.vue.txt

Alternative

No response

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant