Coder Social home page Coder Social logo

Push button about newtonvr HOT 4 CLOSED

tomorrowtodaylabs avatar tomorrowtodaylabs commented on June 8, 2024
Push button

from newtonvr.

Comments (4)

rustinlee avatar rustinlee commented on June 8, 2024

The button in the example is done using position constraints on the Rigidbody, which are in worldspace. I've had success managing button position with a Configurable Joint with xyz rotation locked/x and z movement locked with y movement limited, a very low linear limit and a high spring force. This results in something similar to a spring joint but with local space constraints instead of world space. Use code similar to NVR Button to trigger a button press when the button moves too far. This approach works no matter what angle the button is at.

from newtonvr.

rustinlee avatar rustinlee commented on June 8, 2024

Actually, I lasted tested NVR's buttons on what is now a several weeks old version of the repo, @zite in #28 seems to imply that this might not be the case any more.

from newtonvr.

zite avatar zite commented on June 8, 2024

Yeah, we're using local constraints now. Should work find on a wall

from newtonvr.

naabel avatar naabel commented on June 8, 2024

Closing, see commit 33351da

from newtonvr.

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.