[英]3D engine using SharpDX
This is the first time I am drawing 3D models in c#. 这是我第一次使用c#绘制3D模型。 My object Camera is made of 3D coordinates named Vector3.
我的对象Camera由名为Vector3的3D坐标组成。 C# uses
SharpDX.Vector3
, what does that mean? C#使用
SharpDX.Vector3
,这是什么意思? Where will this be set? 将在哪里设置?
This is the code: 这是代码:
using SharpDX;
namespace SoftEngine
{
public class Camera
{
public Vector3 Position { get; set; }
public Vector3 Target { get; set; }
}
}
Raises error: 引发错误:
The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
找不到类型或名称空间名称“ Vector3”(您是否缺少using指令或程序集引用?)
How to fix this? 如何解决这个问题?
您需要引用SharpDX.Mathematics
程序集
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.