sprite kit - SpriteKit - add border with SKView -


i wondering how add border using skview method, tried initwithsize did not it. actual code border is:

self.physicsbody = [skphysicsbody bodywithedgeoflooprect:self.frame.size];  self.physicsbody.dynamic = no; 

when enter code border bottom works sides still allow objects pass through them? there way fix that? or should delete code , try initwithsize?

try code instead:

self.physicsbody = [skphysicsbody bodywithedgeloopfromrect:self.frame]; 

to little more familiar physics bodies, should read docs on issue in future.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -