ios - SpriteKit linearDamping - 最大?

标签 ios sprite-kit cocos2d-iphone

注意 Apple 的 doco 断言

https://developer.apple.com/documentation/spritekit/skphysicsbody/1519796-lineardamping

This property is used to simulate fluid or air friction forces on the body. The property must be a value between 0.0 and 1.0. The default value is 0.1. If the value is 0.0, no linear damping is applied to the object.

事实上:您可以设置大于 1 的值 - 因此,“10.0”和“20.0”可以完美工作; 1、10 和 20 都非常明显不同。

  • 有没有人对此进行过调查并发现是否真的存在最大值? (如果只是渐近线,那么实际范围是多少?)

最佳答案

Apple doco 完全错误。

只是回答我自己的问题,在 iOS 中:

实际文档:

This property is used to simulate fluid or air friction forces on the body. The property must be a value between 0.0 and 1.0. The default value is 0.1. If the value is 0.0, no linear damping is applied to the object.

完全错误

当您想要像许多物理场景中那样的典型“强阻尼”时,大约 10 到 15 的值是典型的。

我经常使用 2 或 3 的值。“10”是我们对“非常浓稠的蜂蜜”的值。

关于ios - SpriteKit linearDamping - 最大?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47253641/

相关文章:

ios - 使用 Mesh 在 Metal 中绘图

ios - 我如何在 iOS 8 中使用 UISearchController,其中 UISearchBar 在我的导航栏中并且具有范围按钮?

ios - 如何在 iphone 中将当前日期与上一个日期进行比较?

ios - 架构 i386 的 undefined symbol : "_OBJC_CLASS_$_Analytics"

ios - UISharedApplication keywindow 返回 nil

ios - Xcode 7 中的对象库未显示所有可能的对象

swift - 意外发现 Nil SKSpriteNode

swift - 连续滚动的背景

sprite-kit - 我如何摆脱 SKTextures?

ios - 是否可以对对象进行分组?