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

grabbing non-spherical objects more precisely #236

Open
r03ert0 opened this issue Apr 26, 2023 · 0 comments
Open

grabbing non-spherical objects more precisely #236

r03ert0 opened this issue Apr 26, 2023 · 0 comments

Comments

@r03ert0
Copy link

r03ert0 commented Apr 26, 2023

Hello! I'm trying to grab objects that have non-spherical shapes. I'd rather avoid adding the physics library (here's code showing what I'm doing).

Sometimes, however, objects are very close to each other, and I end up grabbing the wrong one. Especially for slender objects – think a very flat box – the bounding sphere is a very bad approximation of the shape, and the area of grabbing errors is as large as the largest dimension of the box.

Is there a way of having something more precise than the sphere-collider? The readme mentions using the raycaster as an alternative to sphere-collider, but I didn't find more info about that...

thank you!

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

No branches or pull requests

1 participant