【问题标题】:Change sensitivity of shake gesture in SpriteKit: goal is to create quicker shake?更改 SpriteKit 中摇动手势的灵敏度:目标是创建更快的摇动?
【发布时间】:2015-04-14 22:01:43
【问题描述】:

是否可以在 SpriteKit 中更改摇动手势的灵敏度?具体来说,我们希望在比默认更快的摇动时触发摇动手势。从 Apple 文档中并不清楚:https://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/motion_event_basics/motion_event_basics.html

此 SO 帖子也已过时:iPhone App increase Shake gesture Sensitivity

是使用加速度计数据实现自定义处理程序的唯一选择吗?还是使用陀螺仪数据会更好?

【问题讨论】:

    标签: ios swift sprite-kit


    【解决方案1】:

    没有设置抖动灵敏度。但是,您可以使用 CoreMotion 创建您的方法并设置自定义参数以检测设备的移动/抖动。

    【讨论】:

      猜你喜欢
      • 2012-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-19
      • 1970-01-01
      相关资源
      最近更新 更多