Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Human.physicsBody.velocity = CGVectorMake(0, 0);
  2.  
  3. [Human.physicsBody applyImpulse:CGVectorMake(0, 40)];
  4.  
  5. else if ((firstBody.categoryBitMask & HumanCategory) != 0 &&
  6. (secondBody.categoryBitMask & BlockCategory) != 0)
  7. {
  8.  
  9. }
  10.  
  11. //Please note that this point is in the scenes coordinate system
  12. CGPoint thePointDirectlyBelowMyNode = ...;
  13. [scene.physicWorld bodyAtPoint:thePointDirectlyBelowMyNode];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement