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

Trace.Capsule gives invalid results when flat on the Z axis #7083

Open
dotryen opened this issue Nov 29, 2024 · 2 comments
Open

Trace.Capsule gives invalid results when flat on the Z axis #7083

dotryen opened this issue Nov 29, 2024 · 2 comments

Comments

@dotryen
Copy link

dotryen commented Nov 29, 2024

Describe the bug

Trace.Capsule returns invalid/bad results when the capsule is flat on the Z axis.
From my testing, bad results only happen on mesh surfaces parallel to the Z axis.

To Reproduce

  1. Create a mesh box
  2. Create a script to cast flat capsules
  3. Use the script and try different angles and capsule properties

Expected behavior

The capsule traces properly intersect and collider with surfaces.

Media/Files

bad.collision.mp4

Additional context

No response

@github-project-automation github-project-automation bot moved this to To triage in s&box tracker Nov 29, 2024
@dotryen dotryen changed the title Capsule Traces give bad results when on it's side Trace.Capsule gives invalid results when flat on the Z axis Nov 29, 2024
@aylaylay
Copy link

what's invalid about them?

@dotryen
Copy link
Author

dotryen commented Nov 29, 2024

Ah I probably should've explained the example video. The yellow circles are my character's collider (just the ends) and they can end up inside surfaces. I found this to only happen while having the capsule be flat on the Z axis. I've also tested it outside of a character controller context and tested just the trace alone. The flat capsule traces tend to have edge cases where they don't detect surfaces properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

2 participants