-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support for spherecast #2094
Comments
I would also like to see this feature in PlayCanvas because I could use it in different situations. |
Yes I would love this feature as well as it would prevent me from having multiple raycasts |
This would be a great feature as it would make it easier to improve click accuracy on mobile devices instead of raycasting. |
@simonbq the Ammo version that PC currently only has partial support for it. I made an extension for convex shapes sweep tests. You can grab a later version of Ammo from there too, which enables full support. https://forum.playcanvas.com/t/playcanvas-physics-extension/13737 |
@LeXXik Cheers, I'll check it out. I'm mainly interested in it being added to the hosted version of PlayCanvas though. |
This will be useful for a camera collision system, it will make it smoother and not punch through certain size gaps. |
@yaustar @willeastcott I could add a support for convex sweeptests, but the current Ammo version needs to be updated. |
@LeXXik What would the newly introduced PlayCanvas API be? I think it's fine if the ammo build needs to be updated. You'd just check for the necessary functions and if they're not there, just print a warning. |
Well, we already have the following raycast methods on
I do think they belong under
As with Because the shape is an Ammo object, I did have convenience methods, like I will make a draft PR. |
From forum thread: https://forum.playcanvas.com/t/ability-to-use-spherecast/13310/3
It would be great to add some form of sphere casting if the current Ammo,js API allows it.
The text was updated successfully, but these errors were encountered: