Comments (3)
I'm not sure why the original line isn't pointing the correct direction, but the black one I think is the version on the physical controller. If you wanted to fix it for that implementation you'd need to add it to the destroy calls on the physical controller initialization. I'll come up with a longer term solution eventually but for now I've created NVRExampleLaserPointer and NVRExampleTeleporter to (somewhat) mirror the steamvr components. Just drop them on the controller gameobject to get them to work.
from newtonvr.
Thanks a lot! I like your implementation better than theirs anyway. I can't get your teleporter to return a true on line 55, I'm trying to figure it out but you may have an idea of what's going on?
from newtonvr.
Glad that helped :) Not sure why you wouldn't get a true there. It should only be true for a single frame though when the state changes from "not pressed" to "pressed". If you want to have something that is true for every frame the button is pressed, use IsPressed.
Alternatively, you may not be pressing the trigger down enough. I think it only registers PressDown when the trigger is past 50% pressed.
from newtonvr.
Related Issues (20)
- Offset colliders break interactables
- VR does not exist in the namespace HOT 2
- NVR Interactable Item - OnUseButtonDown fires before 1f HOT 2
- Option for hand controller always-on physics? HOT 1
- Spawn interactable item to hand
- Reset orientation not working
- Not working with Oculus HOT 2
- Issue with Fast Moving Game
- The FlowerGun example is firing the wrong direction. HOT 1
- Documentation out of date HOT 2
- Custom Hand Issues
- How can I detect when the headset is successfully tracking?
- Oculus Rift CV1 Key mapping error HOT 3
- Teleport script breaks using Unity
- Unity project broken HOT 1
- How can I test the example by using HTC VIVE?
- NewtonVR compile error after SteamVR update. HOT 1
- Updated SteamVR 2.0.1 compatibility HOT 6
- Oculus Quest Support HOT 1
- [NewtonVR] Critical Error: Oculus / SteamVR not setup properly or no headset found. UnityEngine.Debug:LogError(Object) NewtonVR.NVRPlayer:SetupIntegration(Boolean)
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 newtonvr.