Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vertical offsets for RayPerception3D #2823

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Oct 30, 2019

[Behavior change]
The vertical offset for the end point of the raycasts was computed incorrectly; it was effectively startOffset+endOffset instead of endOffset as expected. Additionally, if the GameObject's transform contained scale it would not behave as expected.

To reproduce the old behavior, If you use a non-zero startOffset, you should increase the previous endOffset by startOffset.

Copy link
Contributor

@Hunter-Unity Hunter-Unity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. pulled branch and confirmed ray dir is now correct

@chriselion chriselion merged commit 765d72e into develop Oct 30, 2019
@delete-merged-branch delete-merged-branch bot deleted the develop-MLA-237-raydir-fix branch October 30, 2019 00:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants