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

**URL:** <https://forums.kodeco.com/t/chapter-10-p265-269-problem-when-adding-hook-and-rope-to-catnap-lvl-2/42096>\
**Category:** 2D iOS & tvOS Games by Tutorials\
**Created:** [April 30, 2018, 7:22pm UTC](https://forums.kodeco.com/t/chapter-10-p265-269-problem-when-adding-hook-and-rope-to-catnap-lvl-2/42096 "2018-04-30T19:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paalmbr](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@paalmbr](https://forums.kodeco.com/u/paalmbr)\
**Post date:** [April 30, 2018, 7:22pm UTC](https://forums.kodeco.com/t/chapter-10-p265-269-problem-when-adding-hook-and-rope-to-catnap-lvl-2/42096/1 "2018-04-30T19:22:45Z")

</div>

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](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/e/1/e11a7058c345f2f6d983c0ea06d9cf272c9fac1d.jpg)

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 🙂

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 30, 2018, 11:49pm UTC](https://forums.kodeco.com/t/chapter-10-p265-269-problem-when-adding-hook-and-rope-to-catnap-lvl-2/42096/2 "2018-04-30T23:49:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [October 14, 2018, 11:37am UTC](https://forums.kodeco.com/t/chapter-10-p265-269-problem-when-adding-hook-and-rope-to-catnap-lvl-2/42096/3 "2018-10-14T11:37:26Z")

</div>

Closed on October 14, 2018, 11:37am UTC

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