Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
512 changes: 512 additions & 0 deletions specification/VRMC_springBone_limit-1.0/README.ja.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions specification/VRMC_springBone_limit-1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# VRMC_springBone_limit-1.0

*Version 1.0-draft*

TODO → [README.ja.md](README.ja.md)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 limit 空間の x軸回転が pitch

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "ConeLimit",
"type": "object",
"description": "A limit that restricts the orientation of the spring in a cone shape.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"angle": {
"type": "number",
"description": "The angle of the cone 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 cone shape becomes a sphere.",
"minimum": 0.0
},
"rotation": {
"type": "array",
"description": "The rotation from the default orientation of the cone limit. The rotation is represented as a quaternion (x, y, z, w), where w is the scalar.",
"items": {
"type": "number",
"minimum": -1.0,
"maximum": 1.0
},
"minItems": 4,
"maxItems": 4,
"default": [ 0.0, 0.0, 0.0, 1.0 ]
}
},
"required": [ "angle" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "HingeLimit",
"type": "object",
"description": "A limit that restricts the orientation of the spring in a hinge shape.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"angle": {
"type": "number",
"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.",
"minimum": 0.0
},
"rotation": {
"type": "array",
"description": "The rotation from the default orientation of the hinge limit. The rotation is represented as a quaternion (x, y, z, w), where w is the scalar.",
"items": {
"type": "number",
"minimum": -1.0,
"maximum": 1.0
},
"minItems": 4,
"maxItems": 4,
"default": [ 0.0, 0.0, 0.0, 1.0 ]
}
},
"required": [ "angle" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Limit",
"type": "object",
"description": "Describes a limit apply to the spring. Either cone, hinge, or spherical must be present.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"cone": {
"$ref": "VRMC_springBone_limit.coneLimit.schema.json"
},
"hinge": {
"$ref": "VRMC_springBone_limit.hingeLimit.schema.json"
},
"spherical": {
"$ref": "VRMC_springBone_limit.sphericalLimit.schema.json"
},
"extensions": { },
"extras": { }
},
"oneOf": [
{ "required": [ "cone" ] },
{ "required": [ "hinge" ] },
{ "required": [ "spherical" ] }
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "VRMC_springBone_limit",
"type": "object",
"description": "An angle limit for VRMC_springBone.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"specVersion": {
"type": "string",
"description": "Specification version of VRMC_springBone_limit."
},
"limit": {
"$ref": "VRMC_springBone_limit.limit.schema.json"
},
"extensions": { },
"extras": { }
},
"required": [ "specVersion", "limit" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "SphericalLimit",
"type": "object",
"description": "A limit that restricts the orientation of the spring in a spherical coordinate shape.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"pitch": {
"type": "number",
"description": "The pitch angle of the spherical limit in radians. If the pitch angle is set to π or greater, the angle will be interpreted as π by the implementation.",
"minimum": 0.0
},
"yaw": {
"type": "number",
"description": "The yaw angle of the spherical limit in radians. If the yaw angle is set to π/2 or greater, the angle will be interpreted as π/2 by the implementation.",
"minimum": 0.0
},
"rotation": {
"type": "array",
"description": "The rotation from the default orientation of the spherical limit. The rotation is represented as a quaternion (x, y, z, w), where w is the scalar.",
"items": {
"type": "number",
"minimum": -1.0,
"maximum": 1.0
},
"minItems": 4,
"maxItems": 4,
"default": [ 0.0, 0.0, 0.0, 1.0 ]
}
},
"required": [ "pitch", "yaw" ]
}