SCNNode没有出现在正确的位置 [英] SCNNode is not appearing in correct position

查看:98
本文介绍了SCNNode没有出现在正确的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Google Blocks下载了wall2.obj文件,然后使用Blender将扩展名更改为.dae,墙节点未出现在应有的位置.

I downloaded the wall2.obj file from Google Blocks and then I used Blender to change the extension to .dae the wall node is not appearing where it should be.

墙节点放置位置与应放置的位置:

Where the wall node placed vs. where it should be placed:

推荐答案

这是模型的关键点问题

在Blender中,将pivot point的位置更改为所需的位置–将枢轴点移至模型的中心,然后移至其底部.如果您的模型由几个独立的部分组成,则将所有部分分组并仅使用一个

It's a model's pivot point issue

In Blender change a pivot point's position to the desired one – move pivot point to the center of your model, and then at its bottom. If your model consists of several independent parts, group all parts and use just one composite pivot point.

或者您可以在代码中使用simdPivot实例属性以编程方式移动数据透视表:

Or you can use simdPivot instance property in you code to move a pivot programmatically:

brickWallNode.simdPivot.columns.3.x = -0.5

这篇关于SCNNode没有出现在正确的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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