Is there a way to make a soft body with Spritekit using SKSpriteNode and PhysicsBody parameters?

这一生的挚爱 提交于 2019-12-04 14:46:15

Visit the site https://gist.github.com/kazukitanaka0611/4b9d4ac9dff0cd317b6c it have explanation and source code for soft bodies (jelly) in sprite kit

quick and easy way without math: 1 use flash to tween your box warping. 2 export the tweened frames as a sprite sheet (texture atlas) 3 animate the texture atlas on contact with an edge physics body in your scene.

your box will fall and on contact animate the separate images to give the impression its warping/bulging sides.

i used this method and it works - in other words it gives the desired effect, which in my view is what is important - your gamers don't care how you did it, as long as it looks great.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!