Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by R1PFake · Jul 03, 2016 at 06:07 AM · physicsvr

How to move a VR Object (Sword) with the Vive Controller but make it collide with walls etc?

Hello, i have a question about the VR Vive, i saw some tutorials and the easiest way to move a object with the vr controller is to set the controller as parent of the object, the object will move and rotate with the controller.

The sword has a rigidbody and a collider.

But the vive controller doesn't collide with anything (and shouldn't because you can't stop the player from moving the controller in real life and it would be weird). But this also means that if i put a sword as a child of the controller, it moves and rotates nice but if the player moves the controller into a object/wall the sword (or any other object) would still move with the parent and ignore any physics (I think because it's parented to the controller and just moves there?).

So my question is what would be a good way to move and rotate the sword with the controller but still let it collide with objects so for example when the player moves his controller into a wall the sword should stop at the wall and start to move with the controller again as soon as the player moves the controller out of the wall again.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image srylain · Jul 03, 2016 at 09:24 AM 0
Share

I've seen some discussions about how you shouldn't stop the headset from moving, ever, because that's the easiest thing that could cause motion sickness. Although it won't cause motion sickness, I'm sure that making it so your held objects don't clip through walls isn't something most people would want since you would basically be telling them their hand stopped moving even though they know they moved it.

If you have problems with being able to attack enemies through walls or something, either make the walls thicker or only spawn the enemies right before you enter the room with them.

avatar image R1PFake srylain · Jul 03, 2016 at 04:31 PM 0
Share

Hmm yes that's right, but for example if i want to block the sword attack with a shield, what would be the best solution? because since the player can move the controller where he wants, he can move it into/through the shield, but the shield should still block the attack, i think the only solution is to "stop" the sword at the shield? otherwise the player could ignore the shield and just move the sword into the shield an hit the enemy body

avatar image pipe01 R1PFake · Jul 05, 2016 at 08:53 PM 0
Share

Well there's no other way of doing it that I can think of, basically because you can't stop the Vive Controller from moving

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by GamezAtWork · Nov 28, 2016 at 05:33 AM

Sorry if this answer is too late, but have you tried out NewtonVR? They have a pretty cool system for attaching items to your hand when you grab them, so that they will still be limited by collision when you swing them around.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Bisucousland · Jan 18, 2017 at 02:12 PM

Create a hinge at the point of impact. For example if i were to stab at a sheild the sword would simply rotate with the hand going up or down depending on where the controller is. If i were to hack at the sheild a smoother cutting motion would follow the hand.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

83 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Trying To Make Burger Builder 1 Answer

I'm having trouble making good throwing physics for a VR game 0 Answers

In-Game Physical Joystick Questions 1 Answer

Ski/Snowboarding game: guidelines? 0 Answers

Handling Large number of Active Rigidbody Evaluations 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges