czaloj / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btBvhTriangleMeshShape only works with vertices of type btScalar #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
btBvhTriangleMeshShape does not use the type of vertices as reported by 
getLockedReadOnlyVertexIndexBase, it rather assumes vertices with coordinate 
values of type 
btScalar. The patch fixes this and works for the types PHY_FLOAT and PHY_DOUBLE 
(but other types 
are still ignored).

Original issue reported on code.google.com by ol...@arcor.de on 22 Oct 2008 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago
Please excuse me, I forgot to attach a companion patch for btOptimizedBvh.

Original comment by ol...@arcor.de on 22 Oct 2008 at 9:59

Attachments:

GoogleCodeExporter commented 9 years ago
Good point, we will fix it for next release

Original comment by erwin.coumans on 25 Oct 2008 at 7:36

GoogleCodeExporter commented 9 years ago

The patch has been applied.

Unfortunately this means there is a branch in the innerloop, which could hurt 
performance. If this is noticeable, and others complain about it, we need a 
better 
solution.

Thanks for the contribution,
Erwin

Original comment by erwin.coumans on 27 Oct 2008 at 9:48