[英]SpriteKit Liquid (water)
How can I get a small amount of liquid in my spriteKit application? 如何在spriteKit应用程序中获得少量液体?
I want that liquid in a container, it will be sealed inside but I want it to be able to move around. 我希望将液体装在容器中,将其密封在里面,但我希望它能够移动。
Is there a better way to implement this? 有没有更好的方法来实现这一目标? Maybe an option without SpriteKit?
也许没有SpriteKit的选项?
EDIT: I was able to simulate water using this tutorial: http://www.raywenderlich.com/85515/liquidfun-tutorial-1 编辑:我能够使用此教程来模拟水: http : //www.raywenderlich.com/85515/liquidfun-tutorial-1
and this sample project I found: https://github.com/safx/liquidfun-ios-sample 我发现了这个示例项目: https : //github.com/safx/liquidfun-ios-sample
BUT it requires me to run 2 physics worlds (1 for box2D and 1 with spriteKit). 但是它需要我运行2个物理世界(1个用于box2D,1个使用spriteKit)。 Does anyone know how I can get my particles from box2D into spriteKit?
有谁知道如何将box2D中的粒子放入spriteKit? I imagine this should be doable since spriteKit runs on box2D as well right?
我想这应该可行,因为spriteKit也可以在box2D上运行,对吗?
I can suggest you "LiquidFun" .
我可以建议您“ LiquidFun” 。 Its very easy to Install and it is fun to play around with it.
它非常易于安装,并且很有趣。 You can build Games like "Where's my Water?"... and others!
您可以制作“我的水在哪里?”等游戏!
Here is a link to a tutorial from RayWenderlich: Click Me 这是RayWenderlich教程的链接: 单击我
I hope that this was helpful! 我希望这会有所帮助!
// But Note that this Version of LiquidFun is only for XCode 6.3
//但是请注意,此版本的LiquidFun仅适用于XCode 6.3
Greetings! 问候!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.