ExtendRealityLtd / ExtendRealityLtd/Zinnia.Unity

ParabolicLineCast's maximum length is dependent on rotation

Open
#89 0 comments 0 reactions 0 assignees View on GitHub
bug w_bug
Dominant language
C#
Stars
321
Forks
36
PR merge metrics
No merged PRs in 30d

Description

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

Normal cast:
![image](https://user-images.githubusercontent.com/1029673/40099700-022675d2-58d9-11e8-9c2a-303438082e9b.png)

Limited cast:
(Down doesnt reach floor so not valid target)
![image](https://user-images.githubusercontent.com/1029673/40099761-4749170a-58d9-11e8-856c-a32640fc247c.png)

Simply angling the forward cast beam down means you can now reach the floor
![image](https://user-images.githubusercontent.com/1029673/40099790-6b84639a-58d9-11e8-962a-ef82e06097e2.png)

---

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.