Xcode 中的场景编辑器使用什么单位? [英] What unit is used by the Scene Editor in Xcode?

查看:60
本文介绍了Xcode 中的场景编辑器使用什么单位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 中的场景编辑器显示大小但不显示单位.它是以英寸为单位的尺寸还是以米为单位的尺寸?

The Scene Editor in Xcode displays sizes but no unit. Is it a size in inches or a size in meters?

例如,当我选择一个节点时,例如一个盒子,当我在节点检查器中检查它的属性并在边界框"旁边的变换"部分检查它的大小时,没有显示任何单位.

For instance, when I select a node, e.g. a box, when I inspect its properties in the Node Inspector and I check its size in the "Transforms" section next to "Bounding Box", no unit is shown.

该单位似乎与在语言和区域"首选项窗格(在高级..."弹出窗口中)中设置的系统度量单位无关,因为数字在当我在公制"和美国"之间切换测量单位时的节点检查器.

The unit doesn't seem to be related to the system measurement units that are set in the "Language & Region" preference pane (in the "Advanced..." popover) because the numbers don't change in the Node Inspector when I switch the measurement units between "metric" and "US".

推荐答案

尺寸以米表示.请参阅 SceneKit 文档:

The sizes are expressed in meters. See the SceneKit documentation:

SceneKit 的物理模拟中的所有值都使用国际单位制 (SI):质量单位是千克;力、冲量和扭矩的单位是牛顿、牛顿-秒和牛顿-米;节点位置和大小的距离单位是米.

All values in SceneKit’s physics simulation use the International System of Units (SI): The unit of mass is the kilogram; the units of force, impulse, and torque are the newton, newton-second, and newton-meter; and the unit of distance for node positions and sizes is the meter.

这篇关于Xcode 中的场景编辑器使用什么单位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆