Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • JustinPBarnett_VR_PhysicsButton.zip

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

Here's the source project for the most recent video about buttons!


Video: https://youtu.be/HFNzVMi5MSQ

Files

Previews only

Comments

Anonymous

Hi Justin, my hand goes through the button. I've made that hand following your tutorial "How to ANIMATE Hands in VR - Unity XR Beginner Tutorial" and it works (almost) fine (but that's another story). Any idea?

Anonymous

there is a sphere collider on the "RightBaseController" of the hand and the box collider on the "Push" as you suggested in the video. Do I need them somewhere else?

justinpbarnett

That sphere collider should be marked as "IsTrigger", so it won't have any physics applied to it. If you want the hand to be able to interact with something else you'll need to add more colliders. Try it with just a box collider on your palm and see if that works for you. Then you can get more detailed if you like.

Anonymous

it worked thanks!! Can I suggest you dispassionately to do a tutorial about triggering actions through pushing buttons? :D

Anonymous

Which one is the function to trigger the movement (up and down) of a gameobject by pressing the button, according to your physic button script? (the button itself belongs to the gameobject and needs to move along with it). Or this kind of event needs an animation?

justinpbarnett

It’ll move on it’s own! There’s no animation. The configurable joint handles all the movement based off of the settings it has and physics applied to it