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

Less aggressive overlap detection #4040

Merged
merged 1 commit into from
Jul 3, 2016
Merged

Conversation

PabstMirror
Copy link
Contributor

This should be a fix for a side effect of #3342
I could not find the interaction point for the attached refuel nozzle.
In the cropped screenshot below, the refuel action would not be shown without this fix.

20160702223642_1

Interaction _sPos: [0.768666,0.525559,0.346336]
Refuel _sPos: [0.453124,0.457705,1.23955]

Delta: [-0.332239,-0.0714445,0.940485]
Distance2d: 0.322755

I think the vehicle's dynamic position is pushed so close to the player that it obscures things that it shouldn't.
This PR adds a 2nd requirement that the 2d screen pos distance needs to be small enough to make obscuring worthwhile.

Ensure the 2d screen pos distance is significant.
@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Jul 3, 2016
@PabstMirror PabstMirror added this to the 3.6.1 milestone Jul 3, 2016
@nicolasbadano nicolasbadano merged commit 287adb1 into apex Jul 3, 2016
@nicolasbadano nicolasbadano deleted the fixObscuedInteractionPoints branch July 3, 2016 15:33
@nicolasbadano
Copy link
Contributor

Thanks @PabstMirror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants