Skip to content

Commit 9e98e83

Browse files
committed
docs: VRMC_springBone_limit, update tailDir description for clarity and provide pseudo-code example
Suggested by @ousttrue: #496 (comment)
1 parent 3d7f37b commit 9e98e83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

specification/VRMC_springBone_limit-1.0/README.ja.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,12 @@ glTF 2.0仕様に向けて策定されています。
379379
380380
以下に、本拡張で定義する各リミットの参考実装を示します。
381381

382-
以下の参考実装において `tailDir` は、制限するjointの向きです。 `tailDir` は正規化されているものとします。
382+
以下の参考実装において `tailDir` は、制限するjointのワールド空間における方向を正規化された三次元ベクトルで表したものです。
383+
SpringBoneの慣性計算およびコライダーとの衝突判定の過程で利用する `nextTail` を利用して、以下の擬似コードのように定義します。
384+
385+
```ts
386+
var tailDir = (nextTail - joint.worldPosition).normalized;
387+
```
383388

384389
### Rotation
385390

0 commit comments

Comments
 (0)