Real meanings of deltaInteractionPosition

According to the document here, deltaInteractionPosition represents the difference between current interaction position and the start interaction position.

I’m using the input debugger to monitor the states of SpatialPointerDevice. I noticed that deltaInteractionPosition did not behave the same as I had expected. It seems to me that the value changes twice within each frame:

  1. deltaInteractionPosition first changes to the interaction position difference between this frame and last frame
  2. it then resets its value to zero at the end of each frame

Am I understanding it wrong? Or is it something wrong with the document?

Thank you!!

屏幕录制2024-04-18 19.09.08

It’s been 2 weeks since this post. Does anyone have any thoughts on this?

The docs are incorrect here. It is supposed to be delta from prior pose to current pose. This will need to be fixed.

This API is meant to reflect other unity APIs where delta signifies a difference between the prior frame and current frame. Similar to deltaTime or Touch.deltaPosition.