objective c - SpriteKit physicsBody applyImpulse node fails -


I am trying to create a jump event on touch screen action, but after applying Fails by the bottom of the screen) All things look good with some parameters, but sometimes it happens.

Code:

[Apply self.physicsBody effect: CGVectorMake (dx / mag * kImpuleScale, 20.0f)];

You can put a physics around your screen:

 < Code> var borderBody = SKPhysicsBody (edgeLoopFromRect: self.frame) self.physicsBody = borderBody   

Then any body "escape"

Comments

Popular posts from this blog

mysql - where clause in inner join query -

java - Why my included JSP file won't get processed correctly? -

php - MySQL Query for Advanced Search multiple criteria -