W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] Provide a way of tying sensor requests to animation frames

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 Jun 2015 12:43:08 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-111119954-1434026588-sysbot+gh@w3.org>
The [WebVR][1] spec attempts to solve the issue with:

>`getState()` Return a `VRPositionState` dictionary containing the 
state of this position sensor state for the current frame (if within a
 requestAnimationFrame context) or for the previous frame. This state 
may be predicted based on the implementation’s frame scheduling.

>The `VRPositionState` will contain the position, orientation, and 
velocity and acceleration of each of these properties. Use 
`hasPosition` and `hasOrientation` to check if the associated members 
are valid; If these are false, those members MUST be null.

[1]: 
http://mozvr.github.io/webvr-spec/webvr.html#dom-hmdvrdevice-getstate

-- 
GitHub Notif of comment by anssiko
See https://github.com/w3c/sensors/issues/4#issuecomment-111119954
Received on Thursday, 11 June 2015 12:43:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC