Comments (6)
For sure! If it won't highlight then the problem is having the grip's sphere collide with the object. NearestObject()
is doing the heavy lifting there, so OnTriggerEnter
isn't being thrown.
The thing that immediately stands out to me are the two colliders and one of them being a concave mesh collider. I'm not sure what Unity does with two colliders so you might want to chose one and delete the other. You should also make the mesh one convex if you keep it. I expect that one of those 999+ errors is going to be Unity telling you that Rigidbodies colliders in Unity 5 must be concave.
Play around with that a bit and let me know how it goes. If you're still getting trouble then I'll have to try to recreate your scene and see if I can reproduce (and fix) the issue you're seeing.
from vivegrip.
I have removed the mesh collider, but I still cannot move the bird. Could you have a try about the obj?
bird.zip
from vivegrip.
I'll give it a shot when I have some time and let you know how it goes. Are there any components or scripts affecting the bird object other than what I can see in your screenshot?
from vivegrip.
Thank you very much! I don't think there are any components or scripts affecting the bird object .
from vivegrip.
Figured it out: it was your model. I'm not sure why Unity didn't like it but the object centre was way off and it was preventing the colliders from working properly. I recentred it in Blender and brought it back in and it works just fine:
The original you sent is on the left and the fixed OBJ is on the right. For your convenience, here's the model:
So many of my problems come from models not exporting properly and Unity doing weird things as a result :)
from vivegrip.
Thank you very much! I will try it again.
from vivegrip.
Related Issues (20)
- Use joint anchors instead of an intermediate joint object HOT 1
- Snap to Orientation does nothing when Apply Grip Rotation is disabled HOT 1
- ViveGrip_Grabber is the only object script that isn't attached to the object
- grab object and move player question HOT 2
- Add a FAQ in files somewhere HOT 2
- Controllers don't show up in 5.6 using latest SteamVR HOT 4
- How to integrate with Valve's InteractionSystem? HOT 2
- Design two-handed interactions HOT 2
- Rename to "VR Grip" HOT 8
- Custom mesh for grip collision object
- Multiple configurable anchors
- `enabled` hasn't really been fully considered for Vive Grip objects
- Gentle rotations instead of snapping to orientation HOT 2
- Rotations HOT 1
- Sticky grip HOT 2
- Motor feedback HOT 1
- Lever anchor misleading HOT 1
- Messages not sent when destroying scripts HOT 1
- Two grips on one object has weird side effects 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 vivegrip.