@pixiv/types-vrm-0.0 1.0.0-beta.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixiv/types-vrm-0.0",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0",
4
4
  "description": "Type definitions of VRM 0.0 schema",
5
5
  "license": "MIT",
6
6
  "author": "pixiv",
@@ -33,5 +33,5 @@
33
33
  "prettier --write"
34
34
  ]
35
35
  },
36
- "gitHead": "31a046e8ef027917490cbbb3e558f9f97f3d3259"
36
+ "gitHead": "4d68337eb9a48a1bc53db87c9f5db7894184ce35"
37
37
  }
@@ -1,7 +1,7 @@
1
- import type { BlendShapeGroup } from './BlendShapeGroup';
2
- /**
3
- * BlendShapeAvatar of UniVRM
4
- */
5
- export interface BlendShape {
6
- blendShapeGroups?: BlendShapeGroup[];
7
- }
1
+ import type { BlendShapeGroup } from './BlendShapeGroup';
2
+ /**
3
+ * BlendShapeAvatar of UniVRM
4
+ */
5
+ export interface BlendShape {
6
+ blendShapeGroups?: BlendShapeGroup[];
7
+ }
@@ -1,8 +1,8 @@
1
- export interface BlendShapeBind {
2
- mesh?: number;
3
- index?: number;
4
- /**
5
- * SkinnedMeshRenderer.SetBlendShapeWeight
6
- */
7
- weight?: number;
8
- }
1
+ export interface BlendShapeBind {
2
+ mesh?: number;
3
+ index?: number;
4
+ /**
5
+ * SkinnedMeshRenderer.SetBlendShapeWeight
6
+ */
7
+ weight?: number;
8
+ }
@@ -1,25 +1,25 @@
1
- import type { BlendShapeBind } from './BlendShapeBind';
2
- import type { BlendShapeMaterialbind } from './BlendShapeMaterialBind';
3
- import type { BlendShapePresetName } from './BlendShapePresetName';
4
- export interface BlendShapeGroup {
5
- /**
6
- * Expression name
7
- */
8
- name?: string;
9
- /**
10
- * Predefined Expression name
11
- */
12
- presetName?: BlendShapePresetName;
13
- /**
14
- * Low level blendshape references.
15
- */
16
- binds?: BlendShapeBind[];
17
- /**
18
- * Material animation references.
19
- */
20
- materialValues?: BlendShapeMaterialbind[];
21
- /**
22
- * 0 or 1. Do not allow an intermediate value. Value should rounded
23
- */
24
- isBinary?: boolean;
25
- }
1
+ import type { BlendShapeBind } from './BlendShapeBind';
2
+ import type { BlendShapeMaterialbind } from './BlendShapeMaterialBind';
3
+ import type { BlendShapePresetName } from './BlendShapePresetName';
4
+ export interface BlendShapeGroup {
5
+ /**
6
+ * Expression name
7
+ */
8
+ name?: string;
9
+ /**
10
+ * Predefined Expression name
11
+ */
12
+ presetName?: BlendShapePresetName;
13
+ /**
14
+ * Low level blendshape references.
15
+ */
16
+ binds?: BlendShapeBind[];
17
+ /**
18
+ * Material animation references.
19
+ */
20
+ materialValues?: BlendShapeMaterialbind[];
21
+ /**
22
+ * 0 or 1. Do not allow an intermediate value. Value should rounded
23
+ */
24
+ isBinary?: boolean;
25
+ }
@@ -1,5 +1,5 @@
1
- export interface BlendShapeMaterialbind {
2
- materialName?: string;
3
- propertyName?: string;
4
- targetValue?: number[];
5
- }
1
+ export interface BlendShapeMaterialbind {
2
+ materialName?: string;
3
+ propertyName?: string;
4
+ targetValue?: number[];
5
+ }
@@ -1,4 +1,4 @@
1
- /**
2
- * Predefined Expression name
3
- */
4
- export declare type BlendShapePresetName = 'a' | 'angry' | 'blink' | 'blink_l' | 'blink_r' | 'e' | 'fun' | 'i' | 'joy' | 'lookdown' | 'lookleft' | 'lookright' | 'lookup' | 'neutral' | 'o' | 'sorrow' | 'u' | 'unknown';
1
+ /**
2
+ * Predefined Expression name
3
+ */
4
+ export declare type BlendShapePresetName = 'a' | 'angry' | 'blink' | 'blink_l' | 'blink_r' | 'e' | 'fun' | 'i' | 'joy' | 'lookdown' | 'lookleft' | 'lookright' | 'lookup' | 'neutral' | 'o' | 'sorrow' | 'u' | 'unknown';
@@ -1,27 +1,27 @@
1
- import type { FirstPersonDegreeMap } from './FirstPersonDegreeMap';
2
- import type { FirstPersonMeshAnnotation } from './FirstPersonMeshAnnotation';
3
- import type { Vector3 } from './Vector3';
4
- export interface FirstPerson {
5
- /**
6
- * The bone whose rendering should be turned off in first-person view. Usually Head is
7
- * specified.
8
- */
9
- firstPersonBone?: number;
10
- /**
11
- * The target position of the VR headset in first-person view. It is assumed that an offset
12
- * from the head bone to the VR headset is added.
13
- */
14
- firstPersonBoneOffset?: Vector3;
15
- /**
16
- * Switch display / undisplay for each mesh in first-person view or the others.
17
- */
18
- meshAnnotations?: FirstPersonMeshAnnotation[];
19
- /**
20
- * Eye controller mode.
21
- */
22
- lookAtTypeName?: 'Bone' | 'BlendShape';
23
- lookAtHorizontalInner?: FirstPersonDegreeMap;
24
- lookAtHorizontalOuter?: FirstPersonDegreeMap;
25
- lookAtVerticalDown?: FirstPersonDegreeMap;
26
- lookAtVerticalUp?: FirstPersonDegreeMap;
27
- }
1
+ import type { FirstPersonDegreeMap } from './FirstPersonDegreeMap';
2
+ import type { FirstPersonMeshAnnotation } from './FirstPersonMeshAnnotation';
3
+ import type { Vector3 } from './Vector3';
4
+ export interface FirstPerson {
5
+ /**
6
+ * The bone whose rendering should be turned off in first-person view. Usually Head is
7
+ * specified.
8
+ */
9
+ firstPersonBone?: number;
10
+ /**
11
+ * The target position of the VR headset in first-person view. It is assumed that an offset
12
+ * from the head bone to the VR headset is added.
13
+ */
14
+ firstPersonBoneOffset?: Vector3;
15
+ /**
16
+ * Switch display / undisplay for each mesh in first-person view or the others.
17
+ */
18
+ meshAnnotations?: FirstPersonMeshAnnotation[];
19
+ /**
20
+ * Eye controller mode.
21
+ */
22
+ lookAtTypeName?: 'Bone' | 'BlendShape';
23
+ lookAtHorizontalInner?: FirstPersonDegreeMap;
24
+ lookAtHorizontalOuter?: FirstPersonDegreeMap;
25
+ lookAtVerticalDown?: FirstPersonDegreeMap;
26
+ lookAtVerticalUp?: FirstPersonDegreeMap;
27
+ }
@@ -1,17 +1,17 @@
1
- /**
2
- * Eye controller setting.
3
- */
4
- export interface FirstPersonDegreeMap {
5
- /**
6
- * None linear mapping params. time, value, inTangent, outTangent
7
- */
8
- curve?: number[];
9
- /**
10
- * Look at input clamp range degree.
11
- */
12
- xRange?: number;
13
- /**
14
- * Look at map range degree from xRange.
15
- */
16
- yRange?: number;
17
- }
1
+ /**
2
+ * Eye controller setting.
3
+ */
4
+ export interface FirstPersonDegreeMap {
5
+ /**
6
+ * None linear mapping params. time, value, inTangent, outTangent
7
+ */
8
+ curve?: number[];
9
+ /**
10
+ * Look at input clamp range degree.
11
+ */
12
+ xRange?: number;
13
+ /**
14
+ * Look at map range degree from xRange.
15
+ */
16
+ yRange?: number;
17
+ }
@@ -1,4 +1,4 @@
1
- export interface FirstPersonMeshAnnotation {
2
- firstPersonFlag?: string;
3
- mesh?: number;
4
- }
1
+ export interface FirstPersonMeshAnnotation {
2
+ firstPersonFlag?: string;
3
+ mesh?: number;
4
+ }
@@ -1,36 +1,36 @@
1
- import type { HumanoidBone } from './HumanoidBone';
2
- export interface Humanoid {
3
- humanBones?: HumanoidBone[];
4
- /**
5
- * Unity's HumanDescription.armStretch
6
- */
7
- armStretch?: number;
8
- /**
9
- * Unity's HumanDescription.legStretch
10
- */
11
- legStretch?: number;
12
- /**
13
- * Unity's HumanDescription.upperArmTwist
14
- */
15
- upperArmTwist?: number;
16
- /**
17
- * Unity's HumanDescription.lowerArmTwist
18
- */
19
- lowerArmTwist?: number;
20
- /**
21
- * Unity's HumanDescription.upperLegTwist
22
- */
23
- upperLegTwist?: number;
24
- /**
25
- * Unity's HumanDescription.lowerLegTwist
26
- */
27
- lowerLegTwist?: number;
28
- /**
29
- * Unity's HumanDescription.feetSpacing
30
- */
31
- feetSpacing?: number;
32
- /**
33
- * Unity's HumanDescription.hasTranslationDoF
34
- */
35
- hasTranslationDoF?: boolean;
36
- }
1
+ import type { HumanoidBone } from './HumanoidBone';
2
+ export interface Humanoid {
3
+ humanBones?: HumanoidBone[];
4
+ /**
5
+ * Unity's HumanDescription.armStretch
6
+ */
7
+ armStretch?: number;
8
+ /**
9
+ * Unity's HumanDescription.legStretch
10
+ */
11
+ legStretch?: number;
12
+ /**
13
+ * Unity's HumanDescription.upperArmTwist
14
+ */
15
+ upperArmTwist?: number;
16
+ /**
17
+ * Unity's HumanDescription.lowerArmTwist
18
+ */
19
+ lowerArmTwist?: number;
20
+ /**
21
+ * Unity's HumanDescription.upperLegTwist
22
+ */
23
+ upperLegTwist?: number;
24
+ /**
25
+ * Unity's HumanDescription.lowerLegTwist
26
+ */
27
+ lowerLegTwist?: number;
28
+ /**
29
+ * Unity's HumanDescription.feetSpacing
30
+ */
31
+ feetSpacing?: number;
32
+ /**
33
+ * Unity's HumanDescription.hasTranslationDoF
34
+ */
35
+ hasTranslationDoF?: boolean;
36
+ }
@@ -1,32 +1,32 @@
1
- import type { HumanoidBoneName } from './HumanoidBoneName';
2
- import type { Vector3 } from './Vector3';
3
- export interface HumanoidBone {
4
- /**
5
- * Human bone name.
6
- */
7
- bone?: HumanoidBoneName;
8
- /**
9
- * Reference node index
10
- */
11
- node?: number;
12
- /**
13
- * Unity's HumanLimit.useDefaultValues
14
- */
15
- useDefaultValues?: boolean;
16
- /**
17
- * Unity's HumanLimit.min
18
- */
19
- min?: Vector3;
20
- /**
21
- * Unity's HumanLimit.max
22
- */
23
- max?: Vector3;
24
- /**
25
- * Unity's HumanLimit.center
26
- */
27
- center?: Vector3;
28
- /**
29
- * Unity's HumanLimit.axisLength
30
- */
31
- axisLength?: number;
32
- }
1
+ import type { HumanoidBoneName } from './HumanoidBoneName';
2
+ import type { Vector3 } from './Vector3';
3
+ export interface HumanoidBone {
4
+ /**
5
+ * Human bone name.
6
+ */
7
+ bone?: HumanoidBoneName;
8
+ /**
9
+ * Reference node index
10
+ */
11
+ node?: number;
12
+ /**
13
+ * Unity's HumanLimit.useDefaultValues
14
+ */
15
+ useDefaultValues?: boolean;
16
+ /**
17
+ * Unity's HumanLimit.min
18
+ */
19
+ min?: Vector3;
20
+ /**
21
+ * Unity's HumanLimit.max
22
+ */
23
+ max?: Vector3;
24
+ /**
25
+ * Unity's HumanLimit.center
26
+ */
27
+ center?: Vector3;
28
+ /**
29
+ * Unity's HumanLimit.axisLength
30
+ */
31
+ axisLength?: number;
32
+ }
@@ -1,4 +1,4 @@
1
- /**
2
- * Human bone name.
3
- */
4
- export declare type HumanoidBoneName = 'chest' | 'head' | 'hips' | 'jaw' | 'leftEye' | 'leftFoot' | 'leftHand' | 'leftIndexDistal' | 'leftIndexIntermediate' | 'leftIndexProximal' | 'leftLittleDistal' | 'leftLittleIntermediate' | 'leftLittleProximal' | 'leftLowerArm' | 'leftLowerLeg' | 'leftMiddleDistal' | 'leftMiddleIntermediate' | 'leftMiddleProximal' | 'leftRingDistal' | 'leftRingIntermediate' | 'leftRingProximal' | 'leftShoulder' | 'leftThumbDistal' | 'leftThumbIntermediate' | 'leftThumbProximal' | 'leftToes' | 'leftUpperArm' | 'leftUpperLeg' | 'neck' | 'rightEye' | 'rightFoot' | 'rightHand' | 'rightIndexDistal' | 'rightIndexIntermediate' | 'rightIndexProximal' | 'rightLittleDistal' | 'rightLittleIntermediate' | 'rightLittleProximal' | 'rightLowerArm' | 'rightLowerLeg' | 'rightMiddleDistal' | 'rightMiddleIntermediate' | 'rightMiddleProximal' | 'rightRingDistal' | 'rightRingIntermediate' | 'rightRingProximal' | 'rightShoulder' | 'rightThumbDistal' | 'rightThumbIntermediate' | 'rightThumbProximal' | 'rightToes' | 'rightUpperArm' | 'rightUpperLeg' | 'spine' | 'upperChest';
1
+ /**
2
+ * Human bone name.
3
+ */
4
+ export declare type HumanoidBoneName = 'chest' | 'head' | 'hips' | 'jaw' | 'leftEye' | 'leftFoot' | 'leftHand' | 'leftIndexDistal' | 'leftIndexIntermediate' | 'leftIndexProximal' | 'leftLittleDistal' | 'leftLittleIntermediate' | 'leftLittleProximal' | 'leftLowerArm' | 'leftLowerLeg' | 'leftMiddleDistal' | 'leftMiddleIntermediate' | 'leftMiddleProximal' | 'leftRingDistal' | 'leftRingIntermediate' | 'leftRingProximal' | 'leftShoulder' | 'leftThumbDistal' | 'leftThumbIntermediate' | 'leftThumbProximal' | 'leftToes' | 'leftUpperArm' | 'leftUpperLeg' | 'neck' | 'rightEye' | 'rightFoot' | 'rightHand' | 'rightIndexDistal' | 'rightIndexIntermediate' | 'rightIndexProximal' | 'rightLittleDistal' | 'rightLittleIntermediate' | 'rightLittleProximal' | 'rightLowerArm' | 'rightLowerLeg' | 'rightMiddleDistal' | 'rightMiddleIntermediate' | 'rightMiddleProximal' | 'rightRingDistal' | 'rightRingIntermediate' | 'rightRingProximal' | 'rightShoulder' | 'rightThumbDistal' | 'rightThumbIntermediate' | 'rightThumbProximal' | 'rightToes' | 'rightUpperArm' | 'rightUpperLeg' | 'spine' | 'upperChest';
@@ -1,20 +1,20 @@
1
- export interface Material {
2
- floatProperties?: {
3
- [key: string]: any;
4
- };
5
- keywordMap?: {
6
- [key: string]: any;
7
- };
8
- name?: string;
9
- renderQueue?: number;
10
- shader?: string;
11
- tagMap?: {
12
- [key: string]: any;
13
- };
14
- textureProperties?: {
15
- [key: string]: any;
16
- };
17
- vectorProperties?: {
18
- [key: string]: any;
19
- };
20
- }
1
+ export interface Material {
2
+ floatProperties?: {
3
+ [key: string]: any;
4
+ };
5
+ keywordMap?: {
6
+ [key: string]: any;
7
+ };
8
+ name?: string;
9
+ renderQueue?: number;
10
+ shader?: string;
11
+ tagMap?: {
12
+ [key: string]: any;
13
+ };
14
+ textureProperties?: {
15
+ [key: string]: any;
16
+ };
17
+ vectorProperties?: {
18
+ [key: string]: any;
19
+ };
20
+ }
package/types/Meta.d.ts CHANGED
@@ -1,55 +1,55 @@
1
- export interface Meta {
2
- /**
3
- * A person who can perform with this avatar
4
- */
5
- allowedUserName?: 'OnlyAuthor' | 'ExplicitlyLicensedPerson' | 'Everyone';
6
- /**
7
- * Author of VRM model
8
- */
9
- author?: string;
10
- /**
11
- * For commercial use
12
- */
13
- commercialUssageName?: 'Disallow' | 'Allow';
14
- /**
15
- * Contact Information of VRM model author
16
- */
17
- contactInformation?: string;
18
- /**
19
- * License type
20
- */
21
- licenseName?: 'Redistribution_Prohibited' | 'CC0' | 'CC_BY' | 'CC_BY_NC' | 'CC_BY_SA' | 'CC_BY_NC_SA' | 'CC_BY_ND' | 'CC_BY_NC_ND' | 'Other';
22
- /**
23
- * If “Other” is selected, put the URL link of the license document here.
24
- */
25
- otherLicenseUrl?: string;
26
- /**
27
- * If there are any conditions not mentioned above, put the URL link of the license document
28
- * here.
29
- */
30
- otherPermissionUrl?: string;
31
- /**
32
- * Reference of VRM model
33
- */
34
- reference?: string;
35
- /**
36
- * Permission to perform sexual acts with this avatar
37
- */
38
- sexualUssageName?: 'Disallow' | 'Allow';
39
- /**
40
- * Thumbnail of VRM model
41
- */
42
- texture?: number;
43
- /**
44
- * Title of VRM model
45
- */
46
- title?: string;
47
- /**
48
- * Version of VRM model
49
- */
50
- version?: string;
51
- /**
52
- * Permission to perform violent acts with this avatar
53
- */
54
- violentUssageName?: 'Disallow' | 'Allow';
55
- }
1
+ export interface Meta {
2
+ /**
3
+ * A person who can perform with this avatar
4
+ */
5
+ allowedUserName?: 'OnlyAuthor' | 'ExplicitlyLicensedPerson' | 'Everyone';
6
+ /**
7
+ * Author of VRM model
8
+ */
9
+ author?: string;
10
+ /**
11
+ * For commercial use
12
+ */
13
+ commercialUssageName?: 'Disallow' | 'Allow';
14
+ /**
15
+ * Contact Information of VRM model author
16
+ */
17
+ contactInformation?: string;
18
+ /**
19
+ * License type
20
+ */
21
+ licenseName?: 'Redistribution_Prohibited' | 'CC0' | 'CC_BY' | 'CC_BY_NC' | 'CC_BY_SA' | 'CC_BY_NC_SA' | 'CC_BY_ND' | 'CC_BY_NC_ND' | 'Other';
22
+ /**
23
+ * If “Other” is selected, put the URL link of the license document here.
24
+ */
25
+ otherLicenseUrl?: string;
26
+ /**
27
+ * If there are any conditions not mentioned above, put the URL link of the license document
28
+ * here.
29
+ */
30
+ otherPermissionUrl?: string;
31
+ /**
32
+ * Reference of VRM model
33
+ */
34
+ reference?: string;
35
+ /**
36
+ * Permission to perform sexual acts with this avatar
37
+ */
38
+ sexualUssageName?: 'Disallow' | 'Allow';
39
+ /**
40
+ * Thumbnail of VRM model
41
+ */
42
+ texture?: number;
43
+ /**
44
+ * Title of VRM model
45
+ */
46
+ title?: string;
47
+ /**
48
+ * Version of VRM model
49
+ */
50
+ version?: string;
51
+ /**
52
+ * Permission to perform violent acts with this avatar
53
+ */
54
+ violentUssageName?: 'Disallow' | 'Allow';
55
+ }
@@ -1,9 +1,9 @@
1
- import type { SecondaryAnimationColliderGroup } from './SecondaryAnimationColliderGroup';
2
- import type { SecondaryAnimationSpring } from './SecondaryAnimationSpring';
3
- /**
4
- * The setting of automatic animation of string-like objects such as tails and hairs.
5
- */
6
- export interface SecondaryAnimation {
7
- boneGroups?: SecondaryAnimationSpring[];
8
- colliderGroups?: SecondaryAnimationColliderGroup[];
9
- }
1
+ import type { SecondaryAnimationColliderGroup } from './SecondaryAnimationColliderGroup';
2
+ import type { SecondaryAnimationSpring } from './SecondaryAnimationSpring';
3
+ /**
4
+ * The setting of automatic animation of string-like objects such as tails and hairs.
5
+ */
6
+ export interface SecondaryAnimation {
7
+ boneGroups?: SecondaryAnimationSpring[];
8
+ colliderGroups?: SecondaryAnimationColliderGroup[];
9
+ }
@@ -1,11 +1,11 @@
1
- import type { Vector3 } from './Vector3';
2
- export interface SecondaryAnimationCollider {
3
- /**
4
- * The local coordinate from the node of the collider group.
5
- */
6
- offset?: Vector3;
7
- /**
8
- * The radius of the collider.
9
- */
10
- radius?: number;
11
- }
1
+ import type { Vector3 } from './Vector3';
2
+ export interface SecondaryAnimationCollider {
3
+ /**
4
+ * The local coordinate from the node of the collider group.
5
+ */
6
+ offset?: Vector3;
7
+ /**
8
+ * The radius of the collider.
9
+ */
10
+ radius?: number;
11
+ }
@@ -1,8 +1,8 @@
1
- import type { SecondaryAnimationCollider } from './SecondaryAnimationCollider';
2
- export interface SecondaryAnimationColliderGroup {
3
- /**
4
- * The node of the collider group for setting up collision detections.
5
- */
6
- node?: number;
7
- colliders?: SecondaryAnimationCollider[];
8
- }
1
+ import type { SecondaryAnimationCollider } from './SecondaryAnimationCollider';
2
+ export interface SecondaryAnimationColliderGroup {
3
+ /**
4
+ * The node of the collider group for setting up collision detections.
5
+ */
6
+ node?: number;
7
+ colliders?: SecondaryAnimationCollider[];
8
+ }
@@ -1,42 +1,42 @@
1
- import type { Vector3 } from './Vector3';
2
- export interface SecondaryAnimationSpring {
3
- /**
4
- * Annotation comment
5
- */
6
- comment?: string;
7
- /**
8
- * The resilience of the swaying object (the power of returning to the initial pose).
9
- */
10
- stiffiness?: number;
11
- /**
12
- * The strength of gravity.
13
- */
14
- gravityPower?: number;
15
- /**
16
- * The direction of gravity. Set (0, -1, 0) for simulating the gravity. Set (1, 0, 0) for
17
- * simulating the wind.
18
- */
19
- gravityDir?: Vector3;
20
- /**
21
- * The resistance (deceleration) of automatic animation.
22
- */
23
- dragForce?: number;
24
- /**
25
- * The reference point of a swaying object can be set at any location except the origin.
26
- * When implementing UI moving with warp, the parent node to move with warp can be specified
27
- * if you don't want to make the object swaying with warp movement.
28
- */
29
- center?: number;
30
- /**
31
- * The radius of the sphere used for the collision detection with colliders.
32
- */
33
- hitRadius?: number;
34
- /**
35
- * Specify the node index of the root bone of the swaying object.
36
- */
37
- bones?: number[];
38
- /**
39
- * Specify the index of the collider group for collisions with swaying objects.
40
- */
41
- colliderGroups?: number[];
42
- }
1
+ import type { Vector3 } from './Vector3';
2
+ export interface SecondaryAnimationSpring {
3
+ /**
4
+ * Annotation comment
5
+ */
6
+ comment?: string;
7
+ /**
8
+ * The resilience of the swaying object (the power of returning to the initial pose).
9
+ */
10
+ stiffiness?: number;
11
+ /**
12
+ * The strength of gravity.
13
+ */
14
+ gravityPower?: number;
15
+ /**
16
+ * The direction of gravity. Set (0, -1, 0) for simulating the gravity. Set (1, 0, 0) for
17
+ * simulating the wind.
18
+ */
19
+ gravityDir?: Vector3;
20
+ /**
21
+ * The resistance (deceleration) of automatic animation.
22
+ */
23
+ dragForce?: number;
24
+ /**
25
+ * The reference point of a swaying object can be set at any location except the origin.
26
+ * When implementing UI moving with warp, the parent node to move with warp can be specified
27
+ * if you don't want to make the object swaying with warp movement.
28
+ */
29
+ center?: number;
30
+ /**
31
+ * The radius of the sphere used for the collision detection with colliders.
32
+ */
33
+ hitRadius?: number;
34
+ /**
35
+ * Specify the node index of the root bone of the swaying object.
36
+ */
37
+ bones?: number[];
38
+ /**
39
+ * Specify the index of the collider group for collisions with swaying objects.
40
+ */
41
+ colliderGroups?: number[];
42
+ }
package/types/VRM.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- import type { BlendShape } from './BlendShape';
2
- import type { FirstPerson } from './FirstPerson';
3
- import type { Humanoid } from './Humanoid';
4
- import type { Material } from './Material';
5
- import type { Meta } from './Meta';
6
- import type { SecondaryAnimation } from './SecondaryAnimation';
7
- /**
8
- * VRM extension is for 3d humanoid avatars (and models) in VR applications.
9
- */
10
- export interface VRM {
11
- /**
12
- * Version of exporter that vrm created. UniVRM-0.46
13
- */
14
- exporterVersion?: string;
15
- /**
16
- * Version of VRM specification. 0.0
17
- */
18
- specVersion?: '0.0';
19
- meta?: Meta;
20
- humanoid?: Humanoid;
21
- firstPerson?: FirstPerson;
22
- blendShapeMaster?: BlendShape;
23
- secondaryAnimation?: SecondaryAnimation;
24
- materialProperties?: Material[];
25
- }
1
+ import type { BlendShape } from './BlendShape';
2
+ import type { FirstPerson } from './FirstPerson';
3
+ import type { Humanoid } from './Humanoid';
4
+ import type { Material } from './Material';
5
+ import type { Meta } from './Meta';
6
+ import type { SecondaryAnimation } from './SecondaryAnimation';
7
+ /**
8
+ * VRM extension is for 3d humanoid avatars (and models) in VR applications.
9
+ */
10
+ export interface VRM {
11
+ /**
12
+ * Version of exporter that vrm created. UniVRM-0.46
13
+ */
14
+ exporterVersion?: string;
15
+ /**
16
+ * Version of VRM specification. 0.0
17
+ */
18
+ specVersion?: '0.0';
19
+ meta?: Meta;
20
+ humanoid?: Humanoid;
21
+ firstPerson?: FirstPerson;
22
+ blendShapeMaster?: BlendShape;
23
+ secondaryAnimation?: SecondaryAnimation;
24
+ materialProperties?: Material[];
25
+ }
@@ -1,5 +1,5 @@
1
- export interface Vector3 {
2
- x?: number;
3
- y?: number;
4
- z?: number;
5
- }
1
+ export interface Vector3 {
2
+ x?: number;
3
+ y?: number;
4
+ z?: number;
5
+ }
package/types/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- export type { BlendShape } from './BlendShape';
2
- export type { BlendShapeBind } from './BlendShapeBind';
3
- export type { BlendShapeGroup } from './BlendShapeGroup';
4
- export type { BlendShapeMaterialbind } from './BlendShapeMaterialBind';
5
- export type { BlendShapePresetName } from './BlendShapePresetName';
6
- export type { FirstPerson } from './FirstPerson';
7
- export type { FirstPersonDegreeMap } from './FirstPersonDegreeMap';
8
- export type { FirstPersonMeshAnnotation } from './FirstPersonMeshAnnotation';
9
- export type { Humanoid } from './Humanoid';
10
- export type { HumanoidBone } from './HumanoidBone';
11
- export type { HumanoidBoneName } from './HumanoidBoneName';
12
- export type { Material } from './Material';
13
- export type { Meta } from './Meta';
14
- export type { SecondaryAnimation } from './SecondaryAnimation';
15
- export type { SecondaryAnimationCollider } from './SecondaryAnimationCollider';
16
- export type { SecondaryAnimationColliderGroup } from './SecondaryAnimationColliderGroup';
17
- export type { SecondaryAnimationSpring } from './SecondaryAnimationSpring';
18
- export type { Vector3 } from './Vector3';
19
- export type { VRM } from './VRM';
1
+ export type { BlendShape } from './BlendShape';
2
+ export type { BlendShapeBind } from './BlendShapeBind';
3
+ export type { BlendShapeGroup } from './BlendShapeGroup';
4
+ export type { BlendShapeMaterialbind } from './BlendShapeMaterialBind';
5
+ export type { BlendShapePresetName } from './BlendShapePresetName';
6
+ export type { FirstPerson } from './FirstPerson';
7
+ export type { FirstPersonDegreeMap } from './FirstPersonDegreeMap';
8
+ export type { FirstPersonMeshAnnotation } from './FirstPersonMeshAnnotation';
9
+ export type { Humanoid } from './Humanoid';
10
+ export type { HumanoidBone } from './HumanoidBone';
11
+ export type { HumanoidBoneName } from './HumanoidBoneName';
12
+ export type { Material } from './Material';
13
+ export type { Meta } from './Meta';
14
+ export type { SecondaryAnimation } from './SecondaryAnimation';
15
+ export type { SecondaryAnimationCollider } from './SecondaryAnimationCollider';
16
+ export type { SecondaryAnimationColliderGroup } from './SecondaryAnimationColliderGroup';
17
+ export type { SecondaryAnimationSpring } from './SecondaryAnimationSpring';
18
+ export type { Vector3 } from './Vector3';
19
+ export type { VRM } from './VRM';