Picking a reused custom mesh [Solved]

I am picking a Geometry with a custom Mesh that keeps changing. Using mesh.clearBuffer(…), mesh.setBuffer(…), mesh.updateBound(), mesh.updateCounts(), and then geom.updateModelBound(), and then picking the geometry did not seem to work. It worked if I assigned a whole new Mesh to the Geometry every time it changed, but it seems inefficient. What is the proper way to update a Geometry and its Mesh after its shape changes for picking?

you need to call createCollisionData()


Oh wow, it worked!

1 Like

Its deterministic, nothing to wow about :wink:

@normen said: Its deterministic, nothing to wow about ;)

I think that is the funniest thing I have heard (read) you say (type).