我在Unity中有两个点(立方体游戏对象),P1(x,y,z)和P2(x,y,z),我必须设置沿着P2P1之间的向量的MainCamera位置和旋转.
我尝试了不同的方法,但没有成功.欢迎所有建议.谢谢.
c# math euler-angles unity-game-engine
c# ×1
euler-angles ×1
math ×1
unity-game-engine ×1