如何在SpriteKit中创建一根绳子? [英] How to create a rope in SpriteKit?

查看:140
本文介绍了如何在SpriteKit中创建一根绳子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一条类似于视频中显示的绳索。
开发像这样的绳子的最佳方法是什么?

I want to create a rope like the one that is shown in this video. What is the best way to develop a rope like this?

我已经尝试开始,我认为最好的方法是,制作许多小绳子 - 并用针接头连接它们(这真的是最好的吗?!?)。但我不知道如何开始。

I've already tried to start and I think the best way to do it, is to make many little "rope"-parts and connect them with a pin joint (is that really the best one?!?). But I didn't know how to start.

也许有人可以给我一些示例代码.. THX:)

Maybe someone can give me some example code for that.. THX :)

推荐答案

我是该视频的作者。由于对源代码的巨大需求,我已经在Github上发布了它。

I am the author of that video. Because of the big demand for the source code I have released it on the Github.

你可以找到它这里

这篇关于如何在SpriteKit中创建一根绳子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆