Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Input Controller velocity/acceleration #196

Closed
TyborAUT opened this issue Sep 30, 2018 · 0 comments
Closed

Input Controller velocity/acceleration #196

TyborAUT opened this issue Sep 30, 2018 · 0 comments

Comments

@TyborAUT
Copy link

I played around with "The Lab" and tried to throw the stick :-( .

It didn't work, the stick just fell down as if it wasn't moved. So I searched through the source and found, that the VR controllers pose velocity and acceleration are not calculated:

// To disable time warp (or pose prediction), we dont set (set to zero) velocity and acceleration.

Would it be possible to implement simple velocity approximation like here: https://github.com/terminal29/Simple-OpenVR-Driver-Tutorial/wiki/4---Adding-a-HMD
hmd_pose.vecVelocity[1] = (hmd_pose.vecPosition[1] - hmd_previous.vecPosition[1]) * 1000 / std::max((int)deltaTime.count(), 1);

Will this make us throw the stick in "The Lab"??

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

No branches or pull requests

2 participants