ExtendRealityLtd / Zinnia.Unity

A collection of design patterns for solving common problems.
http://vrtk.io
MIT License
319 stars 38 forks source link

throwing with xr node velocity estimator is not correct #509

Closed fight4dream closed 4 years ago

fight4dream commented 4 years ago

Environment

Steps to reproduce

  1. setup CameraRigs.UnityXR and TrackerAlias
  2. replace the Average velocity estimator with XR Node Velocity Estimator
  3. setup interactors and make a cube into interactable
  4. Test throwing the cube. should be normal
  5. rotate CameraRigs.TrackedAlias/Alias/PlayAreaAlias 180 deg (or some other angle)
  6. throw again and observe the result

Expected behavior

the throw should be normal

Current behavior

the throw is backward (if play area alias rotated 180 deg)

Root cause

image image image notice the other estimators has a field 'RelativeTo'. that is transforming the raw velocity into the correct Space

fight4dream commented 4 years ago

fixed in 8c10705