Comments (11)
Yo, glad this is being worked on, been trying to make it work myself using @react-three/xr but I'm not able to get the movement / rotation right.
I was able to get the camera connected, but I'd like to be able to use the vr controllers.
left controller joystick to move around relative to where im facing (click in to sprint)
right controller joystick for rotating left and right
a button to jump
I noticed there was controller support added but doesn't seem to work with the xr controls.
anyways big thanks for the library @ErdongChen-Andrew hope you get around to this soon :)
from ecctrl.
You would have to manipulate the camera returned from https://threejs.org/docs/#api/en/renderers/webxr/WebXRManager.getCamera rather than the default camera. No other changes are needed.
from ecctrl.
@ErdongChen-Andrew in my project I got pretty stuck on this and the solution was to make sure you do
gl.xr.enabled = true;
after you do the getCamera
suggestion above or the headset wont follow movement or do any xr things
from ecctrl.
PR welcome, and reminder open-source is voluntary community work.
from ecctrl.
I'm also interested in integrating it with XR, but I haven't tried @react-three/xr yet. I'll give it a try when I get back to this project.
from ecctrl.
Thanks, @CodyJasonBennett! Good to know!
from ecctrl.
Thank you, @antpb ! I'll definitely keep that in mind while I'm working on XR!
from ecctrl.
You would have to manipulate the camera returned from https://threejs.org/docs/#api/en/renderers/webxr/WebXRManager.getCamera rather than the default camera. No other changes are needed.
@CodyJasonBennett How exactly do I do this?
from ecctrl.
Bumping this thread for priority
from ecctrl.
PR welcome, and reminder open-source is voluntary community work.
Hey thanks for the bumping this thread again, I love open source, I can contribute what I can but I know there are those who are better at doing this than me and I wish they can do what they can as soon as possible. Will keep you updated in the PR i plan to create.
from ecctrl.
How exactly would this work in XR? Using headset controllers? What about hands for example?
from ecctrl.
Related Issues (20)
- How do I change player (ecctrl chid) starting position in my world and also make the camera start from there? HOT 4
- Idle animation not looping HOT 4
- Animation amount HOT 3
- Camera orbit point (lower it) - how to change the orbit point for a smaller character HOT 1
- Character's unstable issue, HOT 2
- Is there a way for the camera to follow the player's rotation (always be in his back) HOT 8
- The avatar rotates itself on the x axis on a computer with low resources HOT 2
- I cannot access to to the rigid body's rotation, when autoBalance is desactivated HOT 1
- EcctrlAnimation walking animation doesn't loop HOT 5
- How to set the rotation of character? HOT 7
- Character stuck in specific spot and unable to escape HOT 1
- Get the position of ecctrl on each Frame HOT 9
- Character is sliding automatically HOT 3
- Build error in nextjs project HOT 3
- Change direction HOT 3
- When camCollision is disabled, camInitDir is initially ineffective. HOT 4
- Create two instances of ecctrl for online
- How can I get character's real-time position, when I moving my character HOT 1
- enabledRotations not working in NextJs? HOT 4
- 版本:1.0.88:ecctrl 组件的mode设置无效,始终为FixedCamera 模式 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecctrl.