Zinnia.Unity icon indicating copy to clipboard operation
Zinnia.Unity copied to clipboard

ParabolicLineCast's maximum length is dependent on rotation

Open bddckr opened this issue 7 years ago • 0 comments

The current parabolic pointer implementation (ParabolicLineCast) inherits the existing problem with the bezier pointer cast. Images courtesy of @thestonefox.

Normal cast: image

Limited cast: (Down doesnt reach floor so not valid target) image

Simply angling the forward cast beam down means you can now reach the floor image


There is an open bug for this issue: https://github.com/thestonefox/VRTK/issues/1288


No viable solution as of yet, but here's some ideas:

  • Maybe it relies on rotation of beam? Or always does a forward beam in world forward for working out viability of the downward length?
  • Don't limit the downward beam. Instead you limit the forward beam and infinitely cast the down ray, then cast a 3rd ray between origin and down rayhit, and that 3rd ray is what you limit?

bddckr avatar May 19 '18 19:05 bddckr