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

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

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