Chapter 10, p265-269 Problem when adding hook and rope to CatNap lvl 2

In order to get the base and hook at the right place i needed to set

self.physicsBody?.pinned = true 

in didMoveToScene()

Tried with the Level2.sks and HookBaseNode.swift file from Chapter 10 - final folder, but the error was still there. Here is a picture of the problem I was having.
34

Was just wondering what may have caused this error?

** Found out that I sat physicsBody twice in GameScene.swift
Leaving it here fi anybody else runs into the same problems :slight_smile:

@paalmbr Thank you for sharing your solution - much appreciated! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.