注意 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/