title: Move a punching bag backwards and forwards from a fixed point
body: <p>I am creating a boxing app. I had to move a punching bag in back and forwards directions ..Not able to do it. Any suggestions?</p>
  
  <pre><code>self.punchingBag.layer.anchorPoint =CGPointMake(0.5,.5);
  
  CATransform3D t = CATransform3DIdentity;
  if(!check)
  {
      check = true;
  
      t = CATransform3DRotate(t,60.0f * M_PI / 180.0f, 1,0,1);
  
      self.punchingBag.layer.transform = t;
  
  
  }
  </code></pre>