WebXRManager: Get linear/angular velocity for targetRay and grip poses if available. (#21524)
* Get linear and angular velocity for targetRay and grip poses if available WebXR spec has been updated allowing the User Agent to pass along linear and angular velocity values for the controller poses. Read this if it's available and pass attach to the _targetRay and _grip structures. See https://immersive-web.github.io/webxr/#xrpose-interface for more info. * fixed linting errors * more linting issues :\ * third time's a charm * fix check for existence of angular and linear velocity to fail gracefully when not present * simplified to use copy instead of set * Update WebXRController.js Clean up code style. Co-authored-by: NMichael Herzog <michael.herzog@human-interactive.org> Co-authored-by: NMr.doob <info@mrdoob.com>
Showing
想要评论请 注册 或 登录