Rotating a custom geometry mesh around its center point

前端 未结 2 1046
感动是毒
感动是毒 2021-01-06 15:13

When we add a CustomGeometry to the scene with defining vertices and not setting the position, how can we get it to rotate around its own center point?

Fiddle : http

2条回答
  •  星月不相逢
    2021-01-06 15:38

    You can use the center of the bounding box, which would basically be the 'average' of your vertices but it is not guaranteed to fall onto the red cube.

提交回复
热议问题