ios - How to use new per pixel SkPhysics Bodies in Sprite kit -
ios - How to use new per pixel SkPhysics Bodies in Sprite kit -
withe release of ios 8 apple released new swift. purchase released updates sprite kit. 1 of them beingness per pixel physics bodies. trying find how implement per pixel physics bodies in xcode beta , after searching through skphysicbody class couldn't fine anything. wondering if released later on or if have missed something.also if feature available in swift or if available in both swift , objective c.
for per pixel physics bodies
swift
init(texture texture: sktexture!, size size: cgsize) -> skphysicsbody
objective-c
+ (skphysicsbody *)bodywithtexture:(sktexture *)texture size:(cgsize)size
ios iphone sprite-kit skphysicsbody
Comments
Post a Comment