Coder Social home page Coder Social logo

Comments (8)

SmartCarrion avatar SmartCarrion commented on June 8, 2024

The only thing i've found to work is running the code below from a high level script. It runs anytime a controller is enabled (so anytime grip is pressed without grabbing something, and at start). If anybody has a better solution let me know! This is definitely overkill.

public void HideControllerModels() { foreach (Transform t in GetComponentsInChildren<Transform>()) { if(t.name == "Model" && t.GetComponentInChildren<MeshRenderer>(true)!= null) { t.GetComponentInChildren<MeshRenderer>(true).enabled = false; } } }

from newtonvr.

flarb avatar flarb commented on June 8, 2024

This is the one feature from my own controller code that I think NewtonVR lacks. For my own stuff, I have custom hand models which react to input.

If you click the grip button and you're not colliding with a grabbable object, it triggers a quick grip/release animation.

If you pick something up, it hides the hand so you just see what you are grabbing.

When you drop the object, it shows the hand again, and triggers a release animation to show that you dropped it.

Is there anyway to do this with Netwon? I'm not quite sure.

from newtonvr.

SmartCarrion avatar SmartCarrion commented on June 8, 2024

Newton does have the ability to hide all controller models when you grab something, that is a nice and simple checkbox on NVRPlayer. As for making your models animate with button presses, i have implemented that too, but that is very custom and doesn't seem necessary for this plugin.

from newtonvr.

flarb avatar flarb commented on June 8, 2024

Ah very cool, I'll dig into it (didn't see any documentation about it).

from newtonvr.

flarb avatar flarb commented on June 8, 2024

BTW as for animation stuff--I was thinking of a more generalized event system where you could wire up methods/delegates to each hand controller that fire off on input (button presses, touch pad, etc.) So you could use it for anything, not just animation.

from newtonvr.

flarb avatar flarb commented on June 8, 2024

Oh and yes, I have this same bug too.

from newtonvr.

MarkwarNickA avatar MarkwarNickA commented on June 8, 2024

Should be fixed in (98858b2)
, did that squash the problem?

from newtonvr.

MarkwarNickA avatar MarkwarNickA commented on June 8, 2024

Looks like it's fixed, closing

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.