1
我想模拟胸部开口,胸部开口由2个主要部分组成,即盖子和底座。在固定点上旋转OpenGL
为了在x轴上旋转,是否需要将盖子移动到原点,以便:a)盖子的任何角落位于(0,0,0)或; b)盖子的中心必须在原点上?
所以我的代码如下所示:
- draw the chest base
- translate to origin
- rotate
- translate to original position
- draw the lid