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

Colission by Sphere - How to Increase Collision Size #195

Open
ManiAndroid opened this issue Dec 16, 2021 · 1 comment
Open

Colission by Sphere - How to Increase Collision Size #195

ManiAndroid opened this issue Dec 16, 2021 · 1 comment

Comments

@ManiAndroid
Copy link

How to Increase Collision Size and Collision Shape change Sqare or Circle Instead of triangle.

@andresoviedo
Copy link
Member

Dear @ManiAndroid
There is only 1 triangle collision system implemented
However, implementing an sphere colission system should be pretty straighforward

You can take a look to the Octree implementation.
I guess it may be fixed to instead of saving 3 vertices, it could save the center of the triangle and the radius
Then checking whether collision takes place would be just a matter of calculating the distance between that single vertex and the radius of the sphere.

I am flagging this issue as an enhancement

Kind regards

@andresoviedo andresoviedo changed the title How to Increase Collision Size Colission by Sphere - How to Increase Collision Size May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants