title: SpriteKit - Stop an object bouncing
body: <p>How I stop and object that falls from the top of the screen to the bottom of the screen from bouncing. Here is the code for that object:</p>
  
  <pre><code>- (SKNode*)addRock {
      SKSpriteNode* rock = [SKSpriteNode spriteNodeWithImageNamed:@"asteroid"];
      rock.position=CGPointMake ([self makeRandomXWBetween:0 and:self.size.width],self.size.height);
      rock.name = @"rock";
      rock.physicsBody = [SKPhysicsBody bodyWithRectangleOfSize:rock.size];
      rock.physicsBody.usesPreciseCollisionDetection = YES;
      rock.physicsBody.allowsRotation = NO;
      [self addChild:rock];
  
      return self;
  }
  </code></pre>