我需要使用半径、圆心和旋转向量来找到球面上的点。目前我有这个方程:
x = position.x + radius * Math.cos(rotation.x) * Math.sin(rotation.y)
y = position.y + radius * Math.sin(rotation.x) * Math.sin(rotation.y)
z = position.z + radius * Math.sin(rotation.y)
这个公式产生的结果完全不是我所需要的,真的不知道哪里出了问题。我试着使用我在这里找到的公式:Finding Point on sphere,但它并没有起作用。我做错了什么?
Radians = Degrees * (2*PI/360)
- RBarryYoung