potato
potato

Reputation: 4589

node's position appears constant during physics simulation

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)")

The message in the debugger is "position.y: 5.578" (which is the position I assigned in Scene Editor) for every call to renderer:didSimulatePhysicsAtTime method

What's going on?

Upvotes: 0

Views: 67

Answers (1)

mnuages
mnuages

Reputation: 13462

that a look at the presentationNode property.

Upvotes: 2

Related Questions