Comments (6)
I've checked both objs and they are exactly in the same position. However, I found this in aframe.js:59538:
// Offset pivot point
controllerObject3D.position.set(0, -0.015, 0.04);
This must be the reason of the offset. I think we can do two things to fix the new controller:
- Apply that offset to the 3d model
- Apply that offset in code
TBH, I don't like that hardcoded offset.. seems a fix, I would like to know why is done. @dmarcos ?
from a-painter.
It's done to center the controller in the trigger position, so it will rotate correctly when you press the trigger. We couldn't find a way to export the controller maintaining the pivot for the whole object and for each part
from a-painter.
I've just tried and removed that aframe.js:59538 line, and the trigger seems to rotate fine, doesn't it? :?
Sorcery! you can see now there's no offset, since both controllers are perfectly aligned.
from a-painter.
Strange :D I'm going to try. By the way, why it's looks so destroyed the controller?
from a-painter.
the black pieces is the custom controller, that overlays with the vive. Everything's fine :)
from a-painter.
👍
from a-painter.
Related Issues (20)
- Stroke rendering over the UI
- JSON files not saving correctly HOT 1
- I also want to ask how the game moves (HTC Vive) handle mobile functions
- Megsenger HOT 2
- preload menu textures
- change default brush from flat to shaded brush
- Bug when painting with two hands simultaneously HOT 3
- How to download a painting?
- Support for the Oculus Go
- UI labels appear slightly offset on Samsung controllers
- Tab crash whenever the main menu button is pressed.
- A-Frame 0.9.x HOT 5
- Implementing Super-hands into a-painter
- Not working in Chrome 79 anymore... WebXR Device API HOT 1
- Oculus Quest HOT 7
- 'Undo' often triggers accidentally with Index controllers
- can't open menu in oculus quest 2 HOT 3
- Replace Oculus controller models HOT 3
- 3DoF controller mapping is wrong
- updated to aframe 1.4.2 and there is an error on oculus_touch_contrls.js HOT 1
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 a-painter.