在Amazon Sumerian中,ctx.entity.transformComponent.position
给出实体在父级本地空间中的位置。
您如何获得实体的世界地位?
您可以通过以下调用获得实体的世界位置:
ctx.entity.transformComponent.getWorldTranslation()
附加信息:
• TypeError: 'str' object is not callable (Used Keywords as Identifiers)
• 如何知道世界点是否在由位置(Vector3)、比例(Vector3)和旋转(四元数)给出的盒子内?
• Unity ScreenToWorldPoint 函数总是返回相机位置,即使有 z 轴值
• 如何在不知道标识符的情况下使用 JavaScript 获取页面 HTML 的第一个和最后一个元素
• 在现实生活中,C 指针比其他类型更好的例子是什么? / 在什么情况下你需要 malloc()?
• 使用具有动态替换值的 .replacingOccurrences
• 如何在 vuejs 的 v-html 中不渲染 html 标签?
• 如何使用 Highchart for R 在世界地图上绘制每个国家/地区的多个值
• C# MongoDB Upsert object inside array