Giter Club home page Giter Club logo

Comments (6)

feiss avatar feiss commented on May 22, 2024

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.

fernandojsg avatar fernandojsg commented on May 22, 2024

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.

feiss avatar feiss commented on May 22, 2024

I've just tried and removed that aframe.js:59538 line, and the trigger seems to rotate fine, doesn't it? :?

pivot00

Sorcery! you can see now there's no offset, since both controllers are perfectly aligned.

from a-painter.

fernandojsg avatar fernandojsg commented on May 22, 2024

Strange :D I'm going to try. By the way, why it's looks so destroyed the controller?

from a-painter.

feiss avatar feiss commented on May 22, 2024

the black pieces is the custom controller, that overlays with the vive. Everything's fine :)

from a-painter.

fernandojsg avatar fernandojsg commented on May 22, 2024

👍

from a-painter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.