Comments (9)
Yeah I can see why that is doing that.
The new code checks to see if the object has a joint already on it, then attaches a spring joint instead of a fixed joint.
I'd probably need to check to see if the object is being held already before allowing another controller to grab it. Then the spring (or any other joint wouldn't be added).
from vrtk.
This may or not be related, but I loathe to overwhelm you with posted Issues haha...
...but the physics begins to falter and fail when you try to push a held object into another rigid body (say the table the objects were sitting on). I understand Unity physics can be janky, but perhaps there should be a dampening and/or limiter fail safe of sorts that auto-disconnects the held object from the controller after X, and harmlessly drops to the floor rather than furiously fight to maintain it's position in the hand.
(If this should be it's own issue we can separate it out)
Thanks Stonefox! (Theston?)
-Steven
from vrtk.
I think that is to do with the Unity physics solver. A higher number helps it work out better collision resolution.
However, it may be a nice idea as you suggested to just break the grip if it goes crazy.
You see the same crazy collision resolution issues in things like job simulator and the lab.
from vrtk.
Exactly and yea I know it's an all-purpose issue with engine physics, which is why I'm amazed that more implementations don't simply mitigate it by relaxing the pull of the body to the hand, or altogether disconnect it.
If an end-user fails to understand that a mug does not naturally pass through walls, the floor or you monitor and it falls out of their hand, that's on them methinks!
from vrtk.
I think it's a fair trade off to say if you're trying to do something stupid with physics then just drop the object.
from vrtk.
Exactly!
from vrtk.
I think this can be solved by just adding a break force to the joint created on the controller.
If an object starts going crazy in the physics its because a large force is being applied and the physics engine doesn't know what to do.
So a force on the joint will cause a natural break.
from vrtk.
Magic trick effect removed.
No more magic allowed in VR.
Fixed with commit f8e1dac
from vrtk.
Wonderful I try it out asap!
from vrtk.
Related Issues (20)
- LateralAxis Sources Removing Automatically (HorizontalAxis)
- How to rotate the player in 45 degree steps? HOT 2
- Building Error in Design, Develop, and Deploy for VR Course Intermediate Course. HOT 2
- Unity2019.3.4f1Can't load the manifest.json for VRTK4 HOT 2
- In WebGL mode, How to set the UI(such as a button) to work properly?
- Trinus integration for a rapid tests HOT 1
- CameraColorOverlay Black OnEnable HOT 3
- Unable to edit SnapZoneHighlight HOT 2
- How can I change the walk speed? HOT 1
- Please provide update instructions to Unity 2020 on mainpage HOT 1
- errors when i selected selected sdk_oculus_avatar HOT 1
- Error with Unity 2021.2.2f HOT 1
- [problem] How to solve this problem HOT 1
- [problem] How to solve this problem HOT 1
- [problem] How to solve this problem HOT 1
- Failed to open Sample Farm Scene HOT 5
- Ask for help! [VRTK4] HOT 1
- get stuck in solid object with the teleport HOT 1
- doesn't work HOT 1
- Customize a class that inherits an InteractorFacade.cs Why can't objects be crawled 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 vrtk.