Skip to content

Commit 82c1c0d

Browse files
committed
feat: VRMC_springBone_limit, swap phi and theta
phi ranges from -PI to PI, theta ranges from -PI/2 to PI/2
1 parent 20f19c8 commit 82c1c0d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

specification/VRMC_springBone_limit-1.0/README.ja.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
- [SphericalLimit](#sphericallimit)
4141
- [Properties](#properties-4)
4242
- [JSON Schema](#json-schema-4)
43-
- [SphericalLimit.theta ✅](#sphericallimittheta-)
4443
- [SphericalLimit.phi ✅](#sphericallimitphi-)
44+
- [SphericalLimit.theta ✅](#sphericallimittheta-)
4545
- [SphericalLimit.rotation](#sphericallimitrotation)
4646
- [Appendix: Reference Implementations](#appendix-reference-implementations)
4747
- [ConeLimit](#conelimit-1)
@@ -105,9 +105,9 @@ glTF 2.0仕様に向けて策定されています。
105105

106106
球面リミットは、スプリングの移動範囲を球面状に制限します。
107107

108-
球面リミットは、球面座標におけるTheta・Phiの2つの角度・球面の向きを表す回転で定義されます。
108+
球面リミットは、球面座標におけるPhi・Thetaの2つの角度・球面の向きを表す回転で定義されます。
109109

110-
球面リミットが定義されたスプリングは、HeadからTailに向かう方向を基準として、パラメータとして設定したTheta・Phiを球面座標系における角度範囲として回転を制限します
110+
球面リミットが定義されたスプリングは、HeadからTailに向かう方向を基準として、パラメータとして設定したPhi・Thetaを球面座標系における角度範囲として回転を制限します
111111

112112
球面の回転を指定しない場合、球面座標系はHeadからTailに向かう方向を基準として定義されます。
113113
このとき、Theta・Phiの各回転軸は~~(仕様検討の必要あり)。
@@ -319,25 +319,25 @@ glTF 2.0仕様に向けて策定されています。
319319

320320
|||説明|必須|
321321
|:-|:-|:-|:-|
322-
|`theta`|`number`|球面リミットのTheta(度)|✅ Yes|
323322
|`phi`|`number`|球面リミットのPhi(度)|✅ Yes|
323+
|`theta`|`number`|球面リミットのTheta(度)|✅ Yes|
324324
|`rotation`|`number[4]`|球面リミットの相対回転|No|
325325

326326
#### JSON Schema
327327

328328
[VRMC_springBone_limit.spherical.schema.json](schema/VRMC_springBone_limit.spherical.schema.json)
329329

330-
#### SphericalLimit.theta
330+
#### SphericalLimit.phi
331331

332-
球面リミットのTheta角度を示します。角度は弧度法で表され、0以上でなければなりません。
332+
球面リミットのPhi角度を示します。角度は弧度法で表され、0以上でなければなりません。
333333
角度がπ以上に設定された場合、角度は実装によってπとして解釈されます。
334334

335335
- 型: `number`
336336
- 必須: Yes
337337

338-
#### SphericalLimit.phi
338+
#### SphericalLimit.theta
339339

340-
球面リミットのPhi角度を示します。角度は弧度法で表され、0以上でなければなりません。
340+
球面リミットのTheta角度を示します。角度は弧度法で表され、0以上でなければなりません。
341341
角度がπ/2以上に設定された場合、角度は実装によってπ/2として解釈されます。
342342

343343
- 型: `number`

specification/VRMC_springBone_limit-1.0/schema/VRMC_springBone_limit.hingeLimit.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"properties": {
88
"angle": {
99
"type": "number",
10-
"description": "The angle of the hinge limit in radians. If the angle is set to π or greater, the angle will be interpreted as π by the implementation. When the angle is set to 180, the hinge shape becomes a full disc.",
10+
"description": "The angle of the hinge limit in radians. If the angle is set to π or greater, the angle will be interpreted as π by the implementation. When the angle is set to π, the hinge shape becomes a full disc.",
1111
"minimum": 0.0
1212
},
1313
"rotation": {

specification/VRMC_springBone_limit-1.0/schema/VRMC_springBone_limit.sphericalLimit.schema.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"description": "A limit that restricts the orientation of the spring in a spherical coordinate shape.",
66
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
77
"properties": {
8-
"theta": {
8+
"phi": {
99
"type": "number",
10-
"description": "The theta angle of the spherical limit in radians. If the theta angle is set to π or greater, the angle will be interpreted as π by the implementation.",
10+
"description": "The phi angle of the spherical limit in radians. If the phi angle is set to π or greater, the angle will be interpreted as π by the implementation.",
1111
"minimum": 0.0
1212
},
13-
"phi": {
13+
"theta": {
1414
"type": "number",
15-
"description": "The phi angle of the spherical limit in radians. If the phi angle is set to π/2 or greater, the angle will be interpreted as π/2 by the implementation.",
15+
"description": "The theta angle of the spherical limit in radians. If the theta angle is set to π/2 or greater, the angle will be interpreted as π/2 by the implementation.",
1616
"minimum": 0.0
1717
},
1818
"rotation": {
@@ -28,5 +28,5 @@
2828
"default": [ 0.0, 0.0, 0.0, 1.0 ]
2929
}
3030
},
31-
"required": [ "theta", "phi" ]
31+
"required": [ "phi", "theta" ]
3232
}

0 commit comments

Comments
 (0)