Home > front end >  How to read the model with the AMMO frame of vertex to correctly reflect the physical characteristic
How to read the model with the AMMO frame of vertex to correctly reflect the physical characteristic

Time:12-29

With blender for instance modeling tools made a simple model (GLTF format), can be successfully imported threejs, and displayed, because want to reflect the object in the physics engine, therefore also needs to get its shape, read the tutorial convex shape building, seems to be to use btConvexHullShape, keep adding in the object model geometry position of points, 3 points each vector, and put these points addpoint to btConvexHullShape, now according to this way of thinking, feeling object collision rebound is not completely according to the shape of an object (I use other objects collision this model), there is a problem, don't know is which step is to obtain the postion of the object point in the right way, or the point is, add btConvexHullShape formed shape has a problem, please directly

Take model vertex array is using geometry. The attributes. The position. The array, then every three elements constitute a 3 d vector as vertices, this way the export a don't do any deal with the cube is valid, border induction rebound in the right position and do some deformation, but the cube to export for vertex, feel induction boundary is wrong
  • Related