three.js - How to remove a section of a CubeGeometry? -
at moment i'm using threecsg/csg subtract small cube larger cube. works fine, of changes not actual geometry. when using physijs (physics engine) on cube, doesn't fall hole acts would. click demo.
is there way can remove section cubegeometry objects can fall - not display purposes? thanks!
threecsg change geometry, mean geometry in sense of three.js -- collection of vertices, faces, etc. think mean threecsg not change physics-based properties of object.
according https://github.com/chandlerprall/physijs/wiki/basic-shapes , appears though have use physijs.concavemesh
"matches concave geometry have, i.e. arbitrary mesh", , 1 has change of supporting non-convex physical object.
Comments
Post a Comment