android-3D-model-viewer icon indicating copy to clipboard operation
android-3D-model-viewer copied to clipboard

Colission by Sphere - How to Increase Collision Size

Open ManiAndroid opened this issue 3 years ago • 1 comments

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

ManiAndroid avatar Dec 16 '21 08:12 ManiAndroid

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 avatar May 10 '22 07:05 andresoviedo