Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Controller] Provide haptic feedback on interactions #13

Closed
thestonefox opened this issue Apr 27, 2016 · 4 comments
Closed

[Controller] Provide haptic feedback on interactions #13

thestonefox opened this issue Apr 27, 2016 · 4 comments
Labels

Comments

@thestonefox
Copy link
Member

Make the controller rumble when a user touches, grabs or uses something.

Perhaps you could have a global rumble amount that is overriden by the touching object?

@thestonefox
Copy link
Member Author

I think the controller events could have a public method to call the rumble code. Then you can call it yourself whenever you want.

And the interactable object can have a rumble amount for touch, grab, use. Perhaps have a global rumble amount on interact classes too

@thestonefox
Copy link
Member Author

I'm not sure why the SteamVR_Controller TriggerHapticPulse method only works when it's continuously called. It seems the ushort duration parameter is actually the strength of the vibration and has nothing to do with the amount of time the vibration lasts for.

This is why when it's called within a button press code nothing appears to happen because the vibration happens for a split second.

This commit: 2dbcff7

Adds a working version of the haptic feedback on the controllers and includes a duration and strength parameter.

@rmoussawi
Copy link

Copying my request from my youtube conversation with you :)

Can you please include the following to your upcoming video?

"Do an example scene where a collision whilst holding an object causes the rumble"

Thanks a lot!

@thestonefox
Copy link
Member Author

Completed with e8e3bfe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants