2016-10-22 67 views
0

這是我第一次在c#中繪製3D模型。我的對象Camera由名爲Vector3的3D座標組成。 C#使用SharpDX.Vector3,這是什麼意思?這將設置在哪裏?使用SharpDX的3D引擎

這是代碼:

using SharpDX; 
namespace SoftEngine 
{ 
    public class Camera 
    { 
     public Vector3 Position { get; set; } 
     public Vector3 Target { get; set; } 
    } 
} 

引發錯誤:

The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)

如何解決這一問題?

+0

「您[缺少] ...程序集參考」。 http://sharpdx.org/wiki/installation/ –

回答

2

您需要引用SharpDX.Mathematics程序集

+0

謝謝,就是這樣... –