节点的位置在物理模拟中显得恒定 [英] node's position appears constant during physics simulation

查看:67
本文介绍了节点的位置在物理模拟中显得恒定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个节点上运行一些物理过程.该节点向各个方向移动,但是当跟踪其位置时,它似乎是静止的.

I'm running some physics on a node. The node moves in all directions, but when tracking it's position it appears to be stationary.

func renderer(renderer: SCNSceneRenderer, didSimulatePhysicsAtTime time: NSTimeInterval) {
        print("position.y: \(starNode.position.y)")

每次调用 renderer:didSimulatePhysicsAtTime 方法

这是怎么回事?

推荐答案

那是presentationNode属性.

这篇关于节点的位置在物理模拟中显得恒定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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