用速度旋转scnnode

时间:2019-05-12 21:37:48

标签: swift scenekit

我有一个xs,它绕着它的Y轴旋转了k+1。很好,但是我想对虚拟角色施加惯性,以便一旦用户抬起手指,它就保持旋转(并减慢速度),有点像scrollView。这可能吗?

ssort xs 
= let x = minimum xs in x : ssort (delete x xs) -- by definition of `ssort`
= let x = minimum xs in x : sorted (delete x xs) -- `delete x xs` has length `k` so `ssort` sorts it correctly by IH
= sorted xs -- by definition of sorted, minimum, delete

1 个答案:

答案 0 :(得分:0)

为此,您可以使用applyTorque来更改节点的角动量。

它会影响节点的angularVelocity。您可以通过设置angularVelocityFactor来限制或限制这种效果。