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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -