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

Raycast with Ray.intersectBodies only hits first in array #203

Open
jmpedrosa opened this issue Apr 7, 2024 · 0 comments
Open

Raycast with Ray.intersectBodies only hits first in array #203

jmpedrosa opened this issue Apr 7, 2024 · 0 comments

Comments

@jmpedrosa
Copy link

jmpedrosa commented Apr 7, 2024

I don't if its a bug or what but after:

let result = new CANNON.RaycastResult();
result.shouldStop = false;
ray.intersectBodies([body1,body2],result);

result always hits the first element regardless of the order, and the shouldStop parameter is returned as true even when is set to false. I don't think is event raycasting to the second element.

Apreciate any input.

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