@3dverse/livelink.core 0.7.13 → 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/README.md +61 -17
- package/dist/_prebuild/EditorConnection.d.ts +1 -29
- package/dist/_prebuild/EditorMessageHandler.d.ts +1 -139
- package/dist/_prebuild/GatewayConnection.d.ts +1 -58
- package/dist/_prebuild/GatewayMessageHandler.d.ts +1 -194
- package/dist/_prebuild/engine_types/ComponentsHashes.d.ts +5 -0
- package/dist/_prebuild/engine_types/ComponentsRecord.d.ts +207 -0
- package/dist/_prebuild/engine_types/SceneSettingsRecord.d.ts +50 -0
- package/dist/_prebuild/engine_types/assets.d.ts +96 -0
- package/dist/_prebuild/{types → engine_types}/components.d.ts +221 -159
- package/dist/_prebuild/{types/settings.d.ts → engine_types/sceneSettings.d.ts} +85 -70
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +1 -70
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts +0 -25
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -7
- package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +1 -5
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +1 -6
- package/dist/_prebuild/messages/editor/index.d.ts +0 -1
- package/dist/_prebuild/messages/gateway/commands/AssignClientToScriptCommand.d.ts +9 -0
- package/dist/_prebuild/messages/gateway/commands/AuthenticationCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/{ClientConfig.d.ts → commands/ConfigureClientCommand.d.ts} +11 -13
- package/dist/_prebuild/messages/gateway/commands/FireEventCommand.d.ts +11 -0
- package/dist/_prebuild/messages/gateway/commands/HighlightEntitiesCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/InputStateCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveComponentsCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveFilterCommand.d.ts +7 -0
- package/dist/_prebuild/messages/gateway/commands/ResizeCommand.d.ts +13 -0
- package/dist/_prebuild/messages/gateway/commands/SendSkeletonPoseCommand.d.ts +25 -0
- package/dist/_prebuild/messages/gateway/commands/SetFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/ToggleFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromBytesCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromJsonCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/ViewportConfigCommand.d.ts +16 -0
- package/dist/_prebuild/messages/gateway/commands/index.d.ts +15 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts +4 -111
- package/dist/_prebuild/messages/gateway/events/AssetLoadingEvent.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/{FrameData.d.ts → events/FrameDataEvent.d.ts} +1 -17
- package/dist/_prebuild/messages/gateway/events/ScriptEvent.d.ts +10 -0
- package/dist/_prebuild/messages/gateway/events/index.d.ts +3 -0
- package/dist/_prebuild/messages/gateway/index.d.ts +16 -22
- package/dist/_prebuild/messages/gateway/queries/ScreenSpaceRayQuery.d.ts +18 -0
- package/dist/_prebuild/messages/gateway/queries/index.d.ts +1 -0
- package/dist/_prebuild/messages/index.d.ts +2 -0
- package/dist/library.cjs +1 -1
- package/dist/library.cjs.map +4 -4
- package/dist/library.mjs +1 -1
- package/dist/library.mjs.map +4 -4
- package/dist/sources/ActivityWatcher.d.ts +63 -0
- package/dist/sources/CoreEvents.d.ts +35 -0
- package/dist/sources/DynamicLoader.d.ts +38 -0
- package/dist/sources/EntityUtils.d.ts +117 -0
- package/dist/sources/LivelinkCore.d.ts +133 -128
- package/dist/sources/SessionInterface.d.ts +20 -0
- package/dist/sources/TypedEventTarget.d.ts +14 -0
- package/dist/sources/controllers/EditorController.d.ts +1 -21
- package/dist/sources/controllers/EditorEvents.d.ts +27 -0
- package/dist/sources/controllers/GatewayController.d.ts +1 -53
- package/dist/sources/controllers/GatewayEvents.d.ts +54 -0
- package/dist/sources/core.d.ts +29 -8
- package/dist/sources/internal/RequestHandler.d.ts +1 -0
- package/dist/sources/internal/Serializer.d.ts +1 -0
- package/dist/sources/library.d.ts +1 -1
- package/dist/sources/types/RTID.d.ts +6 -20
- package/dist/sources/types/UUID.d.ts +7 -17
- package/dist/sources/types/dataObjects.d.ts +52 -0
- package/dist/sources/types/index.d.ts +3 -5
- package/dist/sources/types/math.d.ts +8 -91
- package/dist/sources/types/nativeTypes.d.ts +25 -86
- package/dist/sources/types/utils.d.ts +19 -0
- package/package.json +13 -3
- package/dist/_prebuild/enums.d.ts +0 -3
- package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +0 -6
- package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +0 -21
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +0 -31
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/InputState.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +0 -18
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +0 -29
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +0 -17
- package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +0 -28
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +0 -8
- package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +0 -19
- package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +0 -19
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +0 -25
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +0 -30
- package/dist/_prebuild/types/assets.d.ts +0 -23
- package/dist/sources/LivelinkCoreModule.d.ts +0 -39
- package/dist/sources/RequestHandler.d.ts +0 -47
- package/dist/sources/Serializer.d.ts +0 -34
- package/dist/sources/controllers/ActivityWatcher.d.ts +0 -42
- package/dist/sources/interfaces/ClientInterface.d.ts +0 -7
- package/dist/sources/interfaces/EntityInterface.d.ts +0 -9
- package/dist/sources/interfaces/SessionInterface.d.ts +0 -19
- package/dist/sources/interfaces/index.d.ts +0 -3
- /package/dist/sources/{types/constants.d.ts → constants.d.ts} +0 -0
|
@@ -2,34 +2,25 @@
|
|
|
2
2
|
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
3
|
* This file has been generated automatically from ftl-schemas
|
|
4
4
|
*/
|
|
5
|
-
import type { RTID, UUID, Mat4, Quat, Vec3, Vec2, Int32, UInt32,
|
|
5
|
+
import type { EntityRef, AssetRef, AnimationGraphDataObject, RenderGraphDataObject, ShaderDataObject, ScriptDataObject, RTID, UUID, Mat4, Quat, Vec3, Vec2, Float, Int32, UInt32, Int8, UInt8 } from "../../sources/types";
|
|
6
6
|
import type * as Assets from "./assets";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export type ComponentType = keyof typeof ComponentHash;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export type AssetRef<T> = UUID;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export type EntityRef = {
|
|
19
|
-
originalEUID: UUID;
|
|
20
|
-
linkage: Array<UUID>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
8
|
+
* Unique identifier for an entity.
|
|
24
9
|
*/
|
|
25
10
|
export type Euid = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier value.
|
|
13
|
+
*/
|
|
26
14
|
value: UUID;
|
|
15
|
+
/**
|
|
16
|
+
* Runtime id of this entity, needed to differentiate between cloned entities.
|
|
17
|
+
*/
|
|
27
18
|
rtid: RTID;
|
|
28
19
|
};
|
|
29
20
|
/**
|
|
30
21
|
* Animation controller with reference to an animation graph and an animation set. Enables skeletal animation on its skinned mesh descendents whose skeleton is compatible with the animations in the animation set.
|
|
31
22
|
*/
|
|
32
|
-
export type AnimationController =
|
|
23
|
+
export type AnimationController = {
|
|
33
24
|
/**
|
|
34
25
|
* UUID of the referenced animation graph.
|
|
35
26
|
*/
|
|
@@ -41,20 +32,21 @@ export type AnimationController = Partial<{
|
|
|
41
32
|
/**
|
|
42
33
|
* Input values as described in the referenced animation graph in their original JSON format.
|
|
43
34
|
*/
|
|
44
|
-
dataJSON:
|
|
35
|
+
dataJSON: AnimationGraphDataObject;
|
|
45
36
|
/**
|
|
46
37
|
* Reference to the entity with the bone component that corresponds the root bone of the skeleton.
|
|
47
38
|
*/
|
|
48
39
|
rootBoneEntityRef: EntityRef;
|
|
49
40
|
/**
|
|
50
41
|
* Whether or not root motion is enabled.
|
|
42
|
+
* @defaultValue false
|
|
51
43
|
*/
|
|
52
44
|
rootMotionEnabled: boolean;
|
|
53
|
-
}
|
|
45
|
+
};
|
|
54
46
|
/**
|
|
55
47
|
* Animation sequence controller with reference to an animation sequence and assigned entities.
|
|
56
48
|
*/
|
|
57
|
-
export type AnimationSequenceController =
|
|
49
|
+
export type AnimationSequenceController = {
|
|
58
50
|
/**
|
|
59
51
|
* A reference to an animation sequence.
|
|
60
52
|
*/
|
|
@@ -65,276 +57,324 @@ export type AnimationSequenceController = Partial<{
|
|
|
65
57
|
entities: Record<UUID, EntityRef>;
|
|
66
58
|
/**
|
|
67
59
|
* The speed at which to play the animation sequence. The sequence will go in reverse if set to a value lower than 0.
|
|
60
|
+
* @defaultValue 1
|
|
68
61
|
*/
|
|
69
62
|
playbackSpeed: Float;
|
|
70
63
|
/**
|
|
71
64
|
* The normalized offset at which to start the playback.
|
|
65
|
+
* @defaultValue 0
|
|
72
66
|
*/
|
|
73
67
|
startOffset: Float;
|
|
74
68
|
/**
|
|
75
69
|
* The normalized offset at which to stop the playback (or loop back to start offset).
|
|
70
|
+
* @defaultValue 1
|
|
76
71
|
*/
|
|
77
72
|
stopOffset: Float;
|
|
78
73
|
/**
|
|
79
74
|
* Whether or not the animation loops when it reaches the end of the sequence.
|
|
75
|
+
* @defaultValue false
|
|
80
76
|
*/
|
|
81
77
|
loop: boolean;
|
|
82
78
|
/**
|
|
83
79
|
* The play state of the animation.
|
|
80
|
+
* @defaultValue 0
|
|
84
81
|
*/
|
|
85
82
|
playState: Int32;
|
|
86
83
|
/**
|
|
87
84
|
* The offset to seek at next frame. Must be in the [0, 1] range.
|
|
85
|
+
* @defaultValue -1
|
|
88
86
|
*/
|
|
89
87
|
seekOffset: Float;
|
|
90
|
-
}
|
|
88
|
+
};
|
|
91
89
|
/**
|
|
92
90
|
* Links entity to bone in skeleton.
|
|
93
91
|
*/
|
|
94
|
-
export type Bone =
|
|
92
|
+
export type Bone = {
|
|
95
93
|
/**
|
|
96
94
|
* Index of bone in skeleton.
|
|
97
95
|
*/
|
|
98
96
|
boneIndex: UInt32;
|
|
99
|
-
}
|
|
97
|
+
};
|
|
100
98
|
/**
|
|
101
99
|
* Box geometry.
|
|
102
100
|
*/
|
|
103
|
-
export type BoxGeometry =
|
|
101
|
+
export type BoxGeometry = {
|
|
104
102
|
/**
|
|
105
103
|
* Width, height and depth of the box.
|
|
104
|
+
* @defaultValue 1,1,1
|
|
106
105
|
*/
|
|
107
106
|
dimension: Vec3;
|
|
108
107
|
/**
|
|
109
108
|
* Geometry offset.
|
|
109
|
+
* @defaultValue 0,0,0
|
|
110
110
|
*/
|
|
111
111
|
offset: Vec3;
|
|
112
|
-
}
|
|
112
|
+
};
|
|
113
113
|
/**
|
|
114
114
|
* Virtual camera.
|
|
115
115
|
*/
|
|
116
|
-
export type Camera =
|
|
116
|
+
export type Camera = {
|
|
117
117
|
/**
|
|
118
118
|
* UUID of the referenced render graph this camera should use.
|
|
119
119
|
*/
|
|
120
120
|
renderGraphRef: AssetRef<Assets.RenderGraph>;
|
|
121
121
|
/**
|
|
122
122
|
* Index of the render target to blit.
|
|
123
|
+
* @defaultValue -1
|
|
123
124
|
*/
|
|
124
125
|
renderTargetIndex: Int32;
|
|
125
126
|
/**
|
|
126
127
|
* Input values as described in the referenced render graph in their original JSON format.
|
|
127
128
|
*/
|
|
128
|
-
dataJSON:
|
|
129
|
-
}
|
|
129
|
+
dataJSON: RenderGraphDataObject;
|
|
130
|
+
};
|
|
130
131
|
/**
|
|
131
132
|
* Capsule geometry.
|
|
132
133
|
*/
|
|
133
|
-
export type CapsuleGeometry =
|
|
134
|
+
export type CapsuleGeometry = {
|
|
134
135
|
/**
|
|
135
136
|
* Radius of the spheres at each end of the capsule.
|
|
137
|
+
* @defaultValue 0.5
|
|
136
138
|
*/
|
|
137
139
|
radius: Float;
|
|
138
140
|
/**
|
|
139
141
|
* Height of the cylindrical part of the capsule.
|
|
142
|
+
* @defaultValue 1
|
|
140
143
|
*/
|
|
141
144
|
height: Float;
|
|
142
145
|
/**
|
|
143
146
|
* Alignment axis. 0 for X, 1 for Y, 2 for Z.
|
|
147
|
+
* @defaultValue 1
|
|
144
148
|
*/
|
|
145
149
|
axis: Int32;
|
|
146
150
|
/**
|
|
147
151
|
* Geometry offset.
|
|
152
|
+
* @defaultValue 0,0,0
|
|
148
153
|
*/
|
|
149
154
|
offset: Vec3;
|
|
150
|
-
}
|
|
155
|
+
};
|
|
151
156
|
/**
|
|
152
157
|
* Character controller used for movement constrained by collisions without having to deal with a rigid body. A character controller is kinematic, and so is not affected by forces. It uses its own tweaked collision algorithm to give a good feeling while controlling the character.
|
|
153
158
|
*/
|
|
154
|
-
export type CharacterController =
|
|
159
|
+
export type CharacterController = {
|
|
155
160
|
/**
|
|
156
161
|
* Step offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck.
|
|
162
|
+
* @defaultValue 0
|
|
157
163
|
*/
|
|
158
164
|
stepOffset: Float;
|
|
159
165
|
/**
|
|
160
166
|
* Slope limit in degrees. A slope steeper than the slopeLimit will not be walkable by the controller.
|
|
167
|
+
* @defaultValue 45
|
|
161
168
|
*/
|
|
162
169
|
slopeLimit: Float;
|
|
163
170
|
/**
|
|
164
171
|
* The character's collision skin width.
|
|
172
|
+
* @defaultValue 0
|
|
165
173
|
*/
|
|
166
174
|
skinWidth: Float;
|
|
167
175
|
/**
|
|
168
176
|
* Displacement vector for current frame.
|
|
177
|
+
* @defaultValue 0,0,0
|
|
169
178
|
*/
|
|
170
179
|
displacement: Vec3;
|
|
171
|
-
}
|
|
180
|
+
};
|
|
172
181
|
/**
|
|
173
182
|
* Reference to a collision geometry.
|
|
174
183
|
*/
|
|
175
|
-
export type CollisionGeometryRef =
|
|
184
|
+
export type CollisionGeometryRef = {
|
|
176
185
|
/**
|
|
177
186
|
* UUID of the referenced collision geometry.
|
|
178
187
|
*/
|
|
179
188
|
collisionGeometryRef: AssetRef<Assets.CollisionGeometry>;
|
|
180
|
-
}
|
|
189
|
+
};
|
|
181
190
|
/**
|
|
182
191
|
* A physics constraint that can be configured along 6 degrees of freedom. In its default state it behaves as a fixed constraint - that is, it rigidly fixes the constraint frames of its two entities. However, individual degrees of freedom may be unlocked to permit any combination of rotation around the x-, y- and z- axes, and translation along these axes.
|
|
183
192
|
*/
|
|
184
|
-
export type Constraint =
|
|
193
|
+
export type Constraint = {
|
|
185
194
|
/**
|
|
186
195
|
* Motion along the X axis
|
|
196
|
+
* @defaultValue 0
|
|
187
197
|
*/
|
|
188
198
|
motionAlongX: Int32;
|
|
189
199
|
/**
|
|
190
200
|
* Motion along the Y axis
|
|
201
|
+
* @defaultValue 0
|
|
191
202
|
*/
|
|
192
203
|
motionAlongY: Int32;
|
|
193
204
|
/**
|
|
194
205
|
* Motion along the Z axis
|
|
206
|
+
* @defaultValue 0
|
|
195
207
|
*/
|
|
196
208
|
motionAlongZ: Int32;
|
|
197
209
|
/**
|
|
198
210
|
* Motion around the X axis
|
|
211
|
+
* @defaultValue 0
|
|
199
212
|
*/
|
|
200
213
|
motionAroundX: Int32;
|
|
201
214
|
/**
|
|
202
215
|
* Motion around the Y axis
|
|
216
|
+
* @defaultValue 0
|
|
203
217
|
*/
|
|
204
218
|
motionAroundY: Int32;
|
|
205
219
|
/**
|
|
206
220
|
* Motion around the Z axis
|
|
221
|
+
* @defaultValue 0
|
|
207
222
|
*/
|
|
208
223
|
motionAroundZ: Int32;
|
|
209
224
|
/**
|
|
210
225
|
* The lower distance of the limit.
|
|
226
|
+
* @defaultValue 0,0,0
|
|
211
227
|
*/
|
|
212
228
|
motionLowerLimit: Vec3;
|
|
213
229
|
/**
|
|
214
230
|
* The upper distance of the limit.
|
|
231
|
+
* @defaultValue 0,0,0
|
|
215
232
|
*/
|
|
216
233
|
motionUpperLimit: Vec3;
|
|
217
234
|
/**
|
|
218
235
|
* If greater than zero, the limit is soft, i.e. a spring pulls the joint back to the limit.
|
|
236
|
+
* @defaultValue 0,0,0
|
|
219
237
|
*/
|
|
220
238
|
motionLimitSpringStiffness: Vec3;
|
|
221
239
|
/**
|
|
222
240
|
* If greater than zero, this is the damping of the limit spring.
|
|
241
|
+
* @defaultValue 0,0,0
|
|
223
242
|
*/
|
|
224
243
|
motionLimitSpringDamping: Vec3;
|
|
225
244
|
/**
|
|
226
245
|
* The limit angle from the Y-axis and the Z-axis of the constraint frame. The cone limit is used if either or both swing axes are limited. The extents are symmetrical and measured in the frame of the parent. If only one swing degree of freedom is limited, the corresponding value from the cone limit defines the limit range.
|
|
246
|
+
* @defaultValue 0,0
|
|
227
247
|
*/
|
|
228
248
|
swingLimitAngle: Vec2;
|
|
229
249
|
/**
|
|
230
250
|
* If greater than zero, the limit is soft, i.e. a spring pulls the joint back to the limit.
|
|
251
|
+
* @defaultValue 0
|
|
231
252
|
*/
|
|
232
253
|
swingSpringStiffness: Float;
|
|
233
254
|
/**
|
|
234
255
|
* If greater than zero, this is the damping of the limit spring.
|
|
256
|
+
* @defaultValue 0
|
|
235
257
|
*/
|
|
236
258
|
swingSpringDamping: Float;
|
|
237
259
|
/**
|
|
238
260
|
* The twist limit controls the range of motion around the twist axis. The limit angle range is (-360, 360).
|
|
261
|
+
* @defaultValue 0,0
|
|
239
262
|
*/
|
|
240
263
|
twistLimitAngle: Vec2;
|
|
241
264
|
/**
|
|
242
265
|
* If greater than zero, the limit is soft, i.e. a spring pulls the joint back to the limit.
|
|
266
|
+
* @defaultValue 0
|
|
243
267
|
*/
|
|
244
268
|
twistSpringStiffness: Float;
|
|
245
269
|
/**
|
|
246
270
|
* If greater than zero, this is the damping of the limit spring.
|
|
271
|
+
* @defaultValue 0
|
|
247
272
|
*/
|
|
248
273
|
twistSpringDamping: Float;
|
|
249
274
|
/**
|
|
250
275
|
* If greater than zero, the limit is soft, i.e. a spring pulls the joint back to the limit.
|
|
276
|
+
* @defaultValue 0,0,0
|
|
251
277
|
*/
|
|
252
278
|
linearDriveStiffness: Vec3;
|
|
253
279
|
/**
|
|
254
280
|
* If greater than zero, this is the damping of the limit spring.
|
|
281
|
+
* @defaultValue 0,0,0
|
|
255
282
|
*/
|
|
256
283
|
linearDriveDamping: Vec3;
|
|
257
284
|
/**
|
|
258
285
|
* The maximum impulse or force that can be exerted by the drive. -1 for no limit.
|
|
286
|
+
* @defaultValue -1,-1,-1
|
|
259
287
|
*/
|
|
260
288
|
linearDriveForceLimit: Vec3;
|
|
261
289
|
/**
|
|
262
290
|
* If greater than zero, the limit is soft, i.e. a spring pulls the joint back to the limit.
|
|
291
|
+
* @defaultValue 0,0,0
|
|
263
292
|
*/
|
|
264
293
|
angularDriveStiffness: Vec3;
|
|
265
294
|
/**
|
|
266
295
|
* If greater than zero, this is the damping of the limit spring.
|
|
296
|
+
* @defaultValue 0,0,0
|
|
267
297
|
*/
|
|
268
298
|
angularDriveDamping: Vec3;
|
|
269
299
|
/**
|
|
270
300
|
* The maximum impulse or force that can be exerted by the drive. -1 for no limit.
|
|
301
|
+
* @defaultValue -1,-1,-1
|
|
271
302
|
*/
|
|
272
303
|
angularDriveForceLimit: Vec3;
|
|
273
304
|
/**
|
|
274
305
|
* The drive type
|
|
306
|
+
* @defaultValue 1
|
|
275
307
|
*/
|
|
276
308
|
driveType: Int8;
|
|
277
309
|
/**
|
|
278
310
|
* The goal velocity for linear drive.
|
|
311
|
+
* @defaultValue 0,0,0
|
|
279
312
|
*/
|
|
280
313
|
driveLinearVelocity: Vec3;
|
|
281
314
|
/**
|
|
282
315
|
* The goal velocity for angular drive.
|
|
316
|
+
* @defaultValue 0,0,0
|
|
283
317
|
*/
|
|
284
318
|
driveAngularVelocity: Vec3;
|
|
285
|
-
}
|
|
319
|
+
};
|
|
286
320
|
/**
|
|
287
321
|
* Culling geometry. Add this component in addition to another geometry component (e.g. box geometry, sphere geometry, etc.) to enable culling geometry.
|
|
288
322
|
*/
|
|
289
|
-
export type CullingGeometry =
|
|
323
|
+
export type CullingGeometry = {
|
|
290
324
|
/**
|
|
291
325
|
* Additive geometry will only display elements (vertices or voxels) inside the geometry. Subtractive will only display elements outside the geometry.
|
|
326
|
+
* @defaultValue true
|
|
292
327
|
*/
|
|
293
328
|
isAdditive: boolean;
|
|
294
|
-
}
|
|
329
|
+
};
|
|
295
330
|
/**
|
|
296
331
|
* Cylinder geometry.
|
|
297
332
|
*/
|
|
298
|
-
export type CylinderGeometry =
|
|
333
|
+
export type CylinderGeometry = {
|
|
299
334
|
/**
|
|
300
335
|
* Radius of the cylinder.
|
|
336
|
+
* @defaultValue 0.5
|
|
301
337
|
*/
|
|
302
338
|
radius: Float;
|
|
303
339
|
/**
|
|
304
340
|
* Height of the cylinder.
|
|
341
|
+
* @defaultValue 1
|
|
305
342
|
*/
|
|
306
343
|
height: Float;
|
|
307
344
|
/**
|
|
308
345
|
* Alignment axis. 0 for X, 1 for Y, 2 for Z.
|
|
346
|
+
* @defaultValue 1
|
|
309
347
|
*/
|
|
310
348
|
axis: Int32;
|
|
311
349
|
/**
|
|
312
350
|
* Geometry offset.
|
|
351
|
+
* @defaultValue 0,0,0
|
|
313
352
|
*/
|
|
314
353
|
offset: Vec3;
|
|
315
|
-
}
|
|
354
|
+
};
|
|
316
355
|
/**
|
|
317
356
|
* Name of the entity.
|
|
318
357
|
*/
|
|
319
|
-
export type DebugName =
|
|
358
|
+
export type DebugName = {
|
|
320
359
|
/**
|
|
321
360
|
* Entity name.
|
|
322
361
|
*/
|
|
323
362
|
value: string;
|
|
324
|
-
}
|
|
363
|
+
};
|
|
325
364
|
/**
|
|
326
365
|
* Decal Projector.
|
|
327
366
|
*/
|
|
328
|
-
export type DecalProjector =
|
|
367
|
+
export type DecalProjector = {
|
|
329
368
|
/**
|
|
330
369
|
* Z-Index order of the decal projection. The higher index will render on top of the lower ones.
|
|
370
|
+
* @defaultValue 0
|
|
331
371
|
*/
|
|
332
372
|
zIndex: Int32;
|
|
333
|
-
}
|
|
373
|
+
};
|
|
334
374
|
/**
|
|
335
375
|
* The environment of a scene. Used to give a scene a skybox.
|
|
336
376
|
*/
|
|
337
|
-
export type Environment =
|
|
377
|
+
export type Environment = {
|
|
338
378
|
/**
|
|
339
379
|
* UUID of the skybox cubemap.
|
|
340
380
|
*/
|
|
@@ -347,11 +387,11 @@ export type Environment = Partial<{
|
|
|
347
387
|
* Reference to the irradiance cubemap.
|
|
348
388
|
*/
|
|
349
389
|
irradianceUUID: AssetRef<Assets.Cubemap>;
|
|
350
|
-
}
|
|
390
|
+
};
|
|
351
391
|
/**
|
|
352
392
|
* Base component of all the other joint components (revolute_joint, etc.). By itself it will lock the orientations and distances of the constrainer and constrainee.
|
|
353
393
|
*/
|
|
354
|
-
export type Joint =
|
|
394
|
+
export type Joint = {
|
|
355
395
|
/**
|
|
356
396
|
* An entity that is a rigid body.
|
|
357
397
|
*/
|
|
@@ -362,21 +402,24 @@ export type Joint = Partial<{
|
|
|
362
402
|
constrainer: EntityRef;
|
|
363
403
|
/**
|
|
364
404
|
* The force that needs to be applied for this joint to break.
|
|
405
|
+
* @defaultValue 10
|
|
365
406
|
*/
|
|
366
407
|
breakForce: Float;
|
|
367
408
|
/**
|
|
368
409
|
* The torque that needs to be applied for this joint to break.
|
|
410
|
+
* @defaultValue 10
|
|
369
411
|
*/
|
|
370
412
|
breakTorque: Float;
|
|
371
413
|
/**
|
|
372
414
|
* Whether to enable collision between constrainer and constrainee.
|
|
415
|
+
* @defaultValue false
|
|
373
416
|
*/
|
|
374
417
|
enableCollision: boolean;
|
|
375
|
-
}
|
|
418
|
+
};
|
|
376
419
|
/**
|
|
377
420
|
* Lineage of the entity through linkers.
|
|
378
421
|
*/
|
|
379
|
-
export type Lineage =
|
|
422
|
+
export type Lineage = {
|
|
380
423
|
/**
|
|
381
424
|
* UUIDs of the hierarchy of linkers that brought this entity.
|
|
382
425
|
*/
|
|
@@ -387,13 +430,14 @@ export type Lineage = Partial<{
|
|
|
387
430
|
parentUUID: UUID;
|
|
388
431
|
/**
|
|
389
432
|
* Ordinal number of this entity in respect of its siblings.
|
|
433
|
+
* @defaultValue 0
|
|
390
434
|
*/
|
|
391
435
|
ordinal: Int32;
|
|
392
|
-
}
|
|
436
|
+
};
|
|
393
437
|
/**
|
|
394
438
|
* Local Axis Aligned Bounding Box of the entity.
|
|
395
439
|
*/
|
|
396
|
-
export type LocalAabb =
|
|
440
|
+
export type LocalAabb = {
|
|
397
441
|
/**
|
|
398
442
|
* Minimum point of the box.
|
|
399
443
|
*/
|
|
@@ -402,118 +446,134 @@ export type LocalAabb = Partial<{
|
|
|
402
446
|
* Maximum point of the box.
|
|
403
447
|
*/
|
|
404
448
|
max: Vec3;
|
|
405
|
-
}
|
|
449
|
+
};
|
|
406
450
|
/**
|
|
407
451
|
* Local transform of the entity.
|
|
408
452
|
*/
|
|
409
|
-
export type LocalTransform =
|
|
453
|
+
export type LocalTransform = {
|
|
410
454
|
/**
|
|
411
455
|
* x, y, z position of the entity.
|
|
456
|
+
* @defaultValue 0,0,0
|
|
412
457
|
*/
|
|
413
458
|
position: Vec3;
|
|
414
459
|
/**
|
|
415
460
|
* Orientation of the entity expressed as a quaternion.
|
|
461
|
+
* @defaultValue 0,0,0,1
|
|
416
462
|
*/
|
|
417
463
|
orientation: Quat;
|
|
418
464
|
/**
|
|
419
465
|
* x, y, z scale of the entity.
|
|
466
|
+
* @defaultValue 1,1,1
|
|
420
467
|
*/
|
|
421
468
|
scale: Vec3;
|
|
422
469
|
/**
|
|
423
470
|
* Orientation of the entity expressed as euler angles.
|
|
471
|
+
* @defaultValue 0,0,0
|
|
424
472
|
*/
|
|
425
473
|
eulerOrientation: Vec3;
|
|
426
474
|
/**
|
|
427
475
|
* Last global orientation of the entity expressed as euler angles submitted by a user. This value may not be valid, and should be checked.
|
|
476
|
+
* @defaultValue 0,0,0
|
|
428
477
|
*/
|
|
429
478
|
globalEulerOrientation: Vec3;
|
|
430
|
-
}
|
|
479
|
+
};
|
|
431
480
|
/**
|
|
432
481
|
* References a shader and specifies input values if needed.
|
|
433
482
|
*/
|
|
434
|
-
export type Material =
|
|
483
|
+
export type Material = {
|
|
435
484
|
/**
|
|
436
485
|
* UUID of the referenced shader.
|
|
437
486
|
*/
|
|
438
487
|
shaderRef: AssetRef<Assets.Shader>;
|
|
439
488
|
/**
|
|
440
489
|
* Whether the material is double sided or not.
|
|
490
|
+
* @defaultValue false
|
|
441
491
|
*/
|
|
442
492
|
isDoubleSided: boolean;
|
|
443
493
|
/**
|
|
444
494
|
* Input values as described in the referenced shader in their original JSON format.
|
|
445
495
|
*/
|
|
446
|
-
dataJSON:
|
|
496
|
+
dataJSON: ShaderDataObject;
|
|
447
497
|
/**
|
|
448
498
|
* Specialization constants values as described in the referenced shader in their original JSON format.
|
|
449
499
|
*/
|
|
450
|
-
constantsJSON:
|
|
451
|
-
}
|
|
500
|
+
constantsJSON: ShaderDataObject;
|
|
501
|
+
};
|
|
452
502
|
/**
|
|
453
503
|
* Reference to a material.
|
|
454
504
|
*/
|
|
455
|
-
export type MaterialRef =
|
|
505
|
+
export type MaterialRef = {
|
|
456
506
|
/**
|
|
457
507
|
* UUID of the referenced material.
|
|
458
508
|
*/
|
|
459
509
|
value: AssetRef<Assets.Material>;
|
|
460
510
|
/**
|
|
461
511
|
* Face culling mode. 0 to inherit from material, 1 for single sided, 2 for double sided.
|
|
512
|
+
* @defaultValue 0
|
|
462
513
|
*/
|
|
463
514
|
faceCulling: Int32;
|
|
464
|
-
}
|
|
515
|
+
};
|
|
465
516
|
/**
|
|
466
517
|
* Reference to a mesh.
|
|
467
518
|
*/
|
|
468
|
-
export type MeshRef =
|
|
519
|
+
export type MeshRef = {
|
|
469
520
|
/**
|
|
470
521
|
* UUID of the referenced mesh.
|
|
471
522
|
*/
|
|
472
523
|
value: AssetRef<Assets.Mesh>;
|
|
473
524
|
/**
|
|
474
525
|
* Index of the submesh inside the mesh's submesh array.
|
|
526
|
+
* @defaultValue 0
|
|
475
527
|
*/
|
|
476
528
|
submeshIndex: Int32;
|
|
477
529
|
/**
|
|
478
530
|
* Whether or not this mesh casts shadows.
|
|
531
|
+
* @defaultValue 1
|
|
479
532
|
*/
|
|
480
533
|
shadowCastingMode: UInt8;
|
|
481
|
-
}
|
|
534
|
+
};
|
|
482
535
|
/**
|
|
483
536
|
* A lens that applies an orthographic projection.
|
|
484
537
|
*/
|
|
485
|
-
export type OrthographicLens =
|
|
538
|
+
export type OrthographicLens = {
|
|
486
539
|
/**
|
|
487
540
|
* Left plane.
|
|
541
|
+
* @defaultValue -1
|
|
488
542
|
*/
|
|
489
543
|
left: Float;
|
|
490
544
|
/**
|
|
491
545
|
* Right plane.
|
|
546
|
+
* @defaultValue 1
|
|
492
547
|
*/
|
|
493
548
|
right: Float;
|
|
494
549
|
/**
|
|
495
550
|
* Top plane.
|
|
551
|
+
* @defaultValue -1
|
|
496
552
|
*/
|
|
497
553
|
top: Float;
|
|
498
554
|
/**
|
|
499
555
|
* Bottom plane.
|
|
556
|
+
* @defaultValue 1
|
|
500
557
|
*/
|
|
501
558
|
bottom: Float;
|
|
502
559
|
/**
|
|
503
560
|
* Near plane.
|
|
561
|
+
* @defaultValue -1
|
|
504
562
|
*/
|
|
505
563
|
zNear: Float;
|
|
506
564
|
/**
|
|
507
565
|
* Far plane.
|
|
566
|
+
* @defaultValue 1
|
|
508
567
|
*/
|
|
509
568
|
zFar: Float;
|
|
510
|
-
}
|
|
569
|
+
};
|
|
511
570
|
/**
|
|
512
571
|
* Overrides a given entity in a sub scene.
|
|
513
572
|
*/
|
|
514
|
-
export type Overrider =
|
|
573
|
+
export type Overrider = {
|
|
515
574
|
/**
|
|
516
575
|
* Mark the overridden entity as deleted.
|
|
576
|
+
* @defaultValue false
|
|
517
577
|
*/
|
|
518
578
|
deleter: boolean;
|
|
519
579
|
/**
|
|
@@ -524,187 +584,219 @@ export type Overrider = Partial<{
|
|
|
524
584
|
* Hashes of the components to detach from the overridden entity.
|
|
525
585
|
*/
|
|
526
586
|
componentsToDetach: Array<Int32>;
|
|
527
|
-
}
|
|
587
|
+
};
|
|
528
588
|
/**
|
|
529
589
|
* A lens that applies a perspective projection.
|
|
530
590
|
*/
|
|
531
|
-
export type PerspectiveLens =
|
|
591
|
+
export type PerspectiveLens = {
|
|
532
592
|
/**
|
|
533
593
|
* Aspect ratio of the viewport, usually equals width/height.
|
|
594
|
+
* @defaultValue 1.777
|
|
534
595
|
*/
|
|
535
596
|
aspectRatio: Float;
|
|
536
597
|
/**
|
|
537
598
|
* Field of view angle in the y direction.
|
|
599
|
+
* @defaultValue 60
|
|
538
600
|
*/
|
|
539
601
|
fovy: Float;
|
|
540
602
|
/**
|
|
541
603
|
* Distance from the viewer to the near clipping plane.
|
|
604
|
+
* @defaultValue 0.01
|
|
542
605
|
*/
|
|
543
606
|
nearPlane: Float;
|
|
544
607
|
/**
|
|
545
608
|
* Distance from the viewer to the far clipping plane.
|
|
609
|
+
* @defaultValue 0
|
|
546
610
|
*/
|
|
547
611
|
farPlane: Float;
|
|
548
612
|
/**
|
|
549
613
|
* Offset of the projection for stereoscopic rendering.
|
|
614
|
+
* @defaultValue 0,0
|
|
550
615
|
*/
|
|
551
616
|
offset: Vec2;
|
|
552
|
-
}
|
|
617
|
+
};
|
|
553
618
|
/**
|
|
554
619
|
* Physics material which represents a set of physical surface properties.
|
|
555
620
|
*/
|
|
556
|
-
export type PhysicsMaterial =
|
|
621
|
+
export type PhysicsMaterial = {
|
|
557
622
|
/**
|
|
558
623
|
* The friction coefficient applied between this surface and another surface if they are not moving lateral to each other. Usually a value from 0 to 1. A value of zero feels like ice, a value of 1 will make it very hard to get the object moving. Resulting static friction of a physics body colliding with another is determined by the average of both bodies' static friction coefficient.
|
|
624
|
+
* @defaultValue 0.5
|
|
559
625
|
*/
|
|
560
626
|
staticFriction: Float;
|
|
561
627
|
/**
|
|
562
628
|
* The friction coefficient applied between this surface and another surface if they are moving relative to each other. Usually a value from 0 to 1. A value of zero feels like ice, a value of 1 will make it very hard to get the object moving. If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Resulting dynamic friction of a physics body colliding with another is determined by the average of both bodies' dynamic friction coefficient.
|
|
629
|
+
* @defaultValue 0.5
|
|
563
630
|
*/
|
|
564
631
|
dynamicFriction: Float;
|
|
565
632
|
/**
|
|
566
633
|
* Restitution coefficient, or bounciness of surface. A coefficient of 0 indicates as little bounce as possible, higher values up to 1.0 result in more bounce. Should be in the range [0,1]. Resulting bounciness of a physics body colliding with another is determined by the average of both bodies' restitution.
|
|
634
|
+
* @defaultValue 0
|
|
567
635
|
*/
|
|
568
636
|
restitution: Float;
|
|
569
637
|
/**
|
|
570
638
|
* The velocity applied to the contact between this physics body and another body. Only applies if modifyContact is true.
|
|
639
|
+
* @defaultValue 0,0,0
|
|
571
640
|
*/
|
|
572
641
|
contactVelocity: Vec3;
|
|
573
642
|
/**
|
|
574
643
|
* Whether to modify the contact when this physics body collides with another body.
|
|
644
|
+
* @defaultValue false
|
|
575
645
|
*/
|
|
576
646
|
modifyContact: boolean;
|
|
577
647
|
/**
|
|
578
648
|
* Whether to consider the geometry associated to this physics material as a trigger or not.
|
|
649
|
+
* @defaultValue false
|
|
579
650
|
*/
|
|
580
651
|
isTrigger: boolean;
|
|
581
|
-
}
|
|
652
|
+
};
|
|
582
653
|
/**
|
|
583
654
|
* Plane geometry.
|
|
584
655
|
*/
|
|
585
|
-
export type PlaneGeometry =
|
|
656
|
+
export type PlaneGeometry = {
|
|
586
657
|
/**
|
|
587
658
|
* Distance from the origin in the plane's normal direction.
|
|
659
|
+
* @defaultValue 0
|
|
588
660
|
*/
|
|
589
661
|
distance: Float;
|
|
590
662
|
/**
|
|
591
663
|
* Normal of the plane.
|
|
664
|
+
* @defaultValue 0,1,0
|
|
592
665
|
*/
|
|
593
666
|
normal: Vec3;
|
|
594
|
-
}
|
|
667
|
+
};
|
|
595
668
|
/**
|
|
596
669
|
* Reference to a point cloud.
|
|
597
670
|
*/
|
|
598
|
-
export type PointCloudRef =
|
|
671
|
+
export type PointCloudRef = {
|
|
599
672
|
/**
|
|
600
673
|
* UUID of the referenced point cloud.
|
|
601
674
|
*/
|
|
602
675
|
value: AssetRef<Assets.PointCloud>;
|
|
603
|
-
}
|
|
676
|
+
};
|
|
604
677
|
/**
|
|
605
678
|
* A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
|
|
606
679
|
*/
|
|
607
|
-
export type PointLight =
|
|
680
|
+
export type PointLight = {
|
|
608
681
|
/**
|
|
609
682
|
* Light color.
|
|
683
|
+
* @defaultValue 1,1,1
|
|
610
684
|
*/
|
|
611
685
|
color: Vec3;
|
|
612
686
|
/**
|
|
613
687
|
* Light intensity.
|
|
688
|
+
* @defaultValue 1
|
|
614
689
|
*/
|
|
615
690
|
intensity: Float;
|
|
616
691
|
/**
|
|
617
692
|
* The range for the point light. If the range is 0, then physically correct point light attenuation function is used.
|
|
693
|
+
* @defaultValue 0
|
|
618
694
|
*/
|
|
619
695
|
range: Float;
|
|
620
696
|
/**
|
|
621
697
|
* Make this light directional, position is ignored in this case.
|
|
698
|
+
* @defaultValue false
|
|
622
699
|
*/
|
|
623
700
|
isDirectional: boolean;
|
|
624
701
|
/**
|
|
625
702
|
* Make this light direction control the atmosphere sun direction. If more than one light is marked to be a sun results are undefined.
|
|
703
|
+
* @defaultValue false
|
|
626
704
|
*/
|
|
627
705
|
isSun: boolean;
|
|
628
|
-
}
|
|
706
|
+
};
|
|
629
707
|
/**
|
|
630
708
|
* Omni directional reflection probe parameters, used for local cubemap reflection generation.
|
|
631
709
|
*/
|
|
632
|
-
export type ReflectionProbe =
|
|
710
|
+
export type ReflectionProbe = {
|
|
633
711
|
/**
|
|
634
712
|
* x, y, z offset of the probe reflection origin.
|
|
713
|
+
* @defaultValue 0,0,0
|
|
635
714
|
*/
|
|
636
715
|
offset: Vec3;
|
|
637
716
|
/**
|
|
638
717
|
* Distance to the near plane.
|
|
718
|
+
* @defaultValue 0.1
|
|
639
719
|
*/
|
|
640
720
|
nearDist: Float;
|
|
641
721
|
/**
|
|
642
722
|
* Distance to the far plane.
|
|
723
|
+
* @defaultValue 100
|
|
643
724
|
*/
|
|
644
725
|
farDist: Float;
|
|
645
726
|
/**
|
|
646
727
|
* Resolution of the reflection map.
|
|
728
|
+
* @defaultValue 128
|
|
647
729
|
*/
|
|
648
730
|
quality: Int32;
|
|
649
|
-
}
|
|
731
|
+
};
|
|
650
732
|
/**
|
|
651
733
|
* Rigid body parameters.
|
|
652
734
|
*/
|
|
653
|
-
export type RigidBody =
|
|
735
|
+
export type RigidBody = {
|
|
654
736
|
/**
|
|
655
737
|
* Mass of the rigid body. A value of 0 is interpreted as infinite mass.
|
|
738
|
+
* @defaultValue 1
|
|
656
739
|
*/
|
|
657
740
|
mass: Float;
|
|
658
741
|
/**
|
|
659
742
|
* Center of mass. Relative to the entity's transform.
|
|
743
|
+
* @defaultValue 0,0,0
|
|
660
744
|
*/
|
|
661
745
|
centerOfMass: Vec3;
|
|
662
746
|
/**
|
|
663
747
|
* Linear damping coefficient. Used to slow down the rigid body's linear velocity. Zero represents no damping. Must be non-negative.
|
|
748
|
+
* @defaultValue 0
|
|
664
749
|
*/
|
|
665
750
|
linearDamping: Float;
|
|
666
751
|
/**
|
|
667
752
|
* Angular damping coefficient. Used to slow down the rigid body's angular velocity, i.e. how much it rotates. Zero represents no damping. Must be non-negative.
|
|
753
|
+
* @defaultValue 0.05
|
|
668
754
|
*/
|
|
669
755
|
angularDamping: Float;
|
|
670
756
|
/**
|
|
671
757
|
*
|
|
758
|
+
* @defaultValue 0,0,0
|
|
672
759
|
*/
|
|
673
760
|
force: Vec3;
|
|
674
761
|
/**
|
|
675
762
|
*
|
|
763
|
+
* @defaultValue 0,0,0
|
|
676
764
|
*/
|
|
677
765
|
torque: Vec3;
|
|
678
766
|
/**
|
|
679
767
|
* The type of collision detection to use for this rigid body.
|
|
768
|
+
* @defaultValue 0
|
|
680
769
|
*/
|
|
681
770
|
collisionDetection: Int32;
|
|
682
771
|
/**
|
|
683
772
|
* Controls whether rigid body is affected by gravity.
|
|
773
|
+
* @defaultValue true
|
|
684
774
|
*/
|
|
685
775
|
useGravity: boolean;
|
|
686
776
|
/**
|
|
687
777
|
* Specifies if rigid body is kinematic. Kinematic rigid bodies are not affected by forces such as gravity.
|
|
778
|
+
* @defaultValue false
|
|
688
779
|
*/
|
|
689
780
|
isKinematic: boolean;
|
|
690
|
-
}
|
|
781
|
+
};
|
|
691
782
|
/**
|
|
692
783
|
* Reference to a scene.
|
|
693
784
|
*/
|
|
694
|
-
export type SceneRef =
|
|
785
|
+
export type SceneRef = {
|
|
695
786
|
/**
|
|
696
787
|
* UUID of the referenced scene.
|
|
697
788
|
*/
|
|
698
789
|
value: AssetRef<Assets.Scene>;
|
|
699
790
|
/**
|
|
700
791
|
* Maximum number of times a scene appears when it references itself.
|
|
792
|
+
* @defaultValue 1
|
|
701
793
|
*/
|
|
702
794
|
maxRecursionCount: UInt32;
|
|
703
|
-
}
|
|
795
|
+
};
|
|
704
796
|
/**
|
|
705
797
|
* References a script and specifies input values if needed.
|
|
706
798
|
*/
|
|
707
|
-
export type ScriptElement =
|
|
799
|
+
export type ScriptElement = {
|
|
708
800
|
/**
|
|
709
801
|
* UUID of the referenced script.
|
|
710
802
|
*/
|
|
@@ -712,132 +804,146 @@ export type ScriptElement = Partial<{
|
|
|
712
804
|
/**
|
|
713
805
|
* Input values as described in the referenced script in their original JSON format.
|
|
714
806
|
*/
|
|
715
|
-
dataJSON:
|
|
716
|
-
}
|
|
807
|
+
dataJSON: ScriptDataObject;
|
|
808
|
+
};
|
|
717
809
|
/**
|
|
718
810
|
* References multiple scripts.
|
|
719
811
|
*/
|
|
720
|
-
export type ScriptMap =
|
|
812
|
+
export type ScriptMap = {
|
|
721
813
|
/**
|
|
722
814
|
* List of scripts.
|
|
723
815
|
*/
|
|
724
816
|
elements: Record<UUID, ScriptElement>;
|
|
725
|
-
}
|
|
817
|
+
};
|
|
726
818
|
/**
|
|
727
819
|
* Enables a light to cast shadows.
|
|
728
820
|
*/
|
|
729
|
-
export type ShadowCaster =
|
|
821
|
+
export type ShadowCaster = {
|
|
730
822
|
/**
|
|
731
823
|
* Bias to apply to avoid self shadowing artifacts.
|
|
824
|
+
* @defaultValue 0.002
|
|
732
825
|
*/
|
|
733
826
|
bias: Float;
|
|
734
827
|
/**
|
|
735
828
|
* Distance to the near plane.
|
|
829
|
+
* @defaultValue 0.1
|
|
736
830
|
*/
|
|
737
831
|
nearDist: Float;
|
|
738
832
|
/**
|
|
739
833
|
* Distance to the far plane.
|
|
834
|
+
* @defaultValue 100
|
|
740
835
|
*/
|
|
741
836
|
farDist: Float;
|
|
742
837
|
/**
|
|
743
838
|
* Resolution of the shadow map.
|
|
839
|
+
* @defaultValue 1024
|
|
744
840
|
*/
|
|
745
841
|
quality: Int32;
|
|
746
842
|
/**
|
|
747
843
|
* For directional lights, adjusts the distribution of cascade splits in Cascaded Shadow Mapping for directional lights. A value of 0 results in uniform (linear) splits across the view frustum, while a value of 1 skews the splits toward the camera, providing higher shadow resolution near the viewer and lower resolution in the distance. Intermediate values blend linear and logarithmic distributions for a balanced result. The value ranges from 0 to 1.
|
|
844
|
+
* @defaultValue 0.94
|
|
748
845
|
*/
|
|
749
846
|
cascadeSplitLambda: Float;
|
|
750
847
|
/**
|
|
751
848
|
* For directional lights, number of cascades.
|
|
849
|
+
* @defaultValue 4
|
|
752
850
|
*/
|
|
753
851
|
cascadeCount: Int8;
|
|
754
852
|
/**
|
|
755
853
|
* For directional lights, accumulate all shadow cascades.
|
|
854
|
+
* @defaultValue true
|
|
756
855
|
*/
|
|
757
856
|
accumulateShadowCascades: boolean;
|
|
758
|
-
}
|
|
857
|
+
};
|
|
759
858
|
/**
|
|
760
859
|
* Reference to a skeleton.
|
|
761
860
|
*/
|
|
762
|
-
export type SkeletonRef =
|
|
861
|
+
export type SkeletonRef = {
|
|
763
862
|
/**
|
|
764
863
|
* UUID of the referenced skeleton.
|
|
765
864
|
*/
|
|
766
865
|
value: AssetRef<Assets.Skeleton>;
|
|
767
|
-
}
|
|
866
|
+
};
|
|
768
867
|
/**
|
|
769
868
|
* Reference to a sound.
|
|
770
869
|
*/
|
|
771
|
-
export type SoundRef =
|
|
870
|
+
export type SoundRef = {
|
|
772
871
|
/**
|
|
773
872
|
* UUID of the referenced sound.
|
|
774
873
|
*/
|
|
775
874
|
value: AssetRef<Assets.Sound>;
|
|
776
875
|
/**
|
|
777
876
|
* Volume from 0.0f to 1.0f.
|
|
877
|
+
* @defaultValue 1
|
|
778
878
|
*/
|
|
779
879
|
volume: Float;
|
|
780
880
|
/**
|
|
781
881
|
* Pan. -1.0f is left, 1.0f is right.
|
|
882
|
+
* @defaultValue 0
|
|
782
883
|
*/
|
|
783
884
|
pan: Float;
|
|
784
885
|
/**
|
|
785
886
|
* The speed at which the sound will play. 1.0f is normal.
|
|
887
|
+
* @defaultValue 1
|
|
786
888
|
*/
|
|
787
889
|
playSpeed: Float;
|
|
788
890
|
/**
|
|
789
891
|
* Whether or not the sound loops.
|
|
892
|
+
* @defaultValue false
|
|
790
893
|
*/
|
|
791
894
|
looping: boolean;
|
|
792
|
-
}
|
|
895
|
+
};
|
|
793
896
|
/**
|
|
794
897
|
* Sphere geometry.
|
|
795
898
|
*/
|
|
796
|
-
export type SphereGeometry =
|
|
899
|
+
export type SphereGeometry = {
|
|
797
900
|
/**
|
|
798
901
|
* Radius of the sphere.
|
|
902
|
+
* @defaultValue 0.5
|
|
799
903
|
*/
|
|
800
904
|
radius: Float;
|
|
801
905
|
/**
|
|
802
906
|
* Geometry offset.
|
|
907
|
+
* @defaultValue 0,0,0
|
|
803
908
|
*/
|
|
804
909
|
offset: Vec3;
|
|
805
|
-
}
|
|
910
|
+
};
|
|
806
911
|
/**
|
|
807
912
|
* Adds a cutoff to a point light to simulate a spot light.
|
|
808
913
|
*/
|
|
809
|
-
export type SpotLight =
|
|
914
|
+
export type SpotLight = {
|
|
810
915
|
/**
|
|
811
916
|
* Cutoff angle.
|
|
917
|
+
* @defaultValue 30
|
|
812
918
|
*/
|
|
813
919
|
cutoff: Float;
|
|
814
920
|
/**
|
|
815
921
|
* Reference to a IES 2d texture.
|
|
816
922
|
*/
|
|
817
923
|
IESProfile: AssetRef<Assets.Texture>;
|
|
818
|
-
}
|
|
924
|
+
};
|
|
819
925
|
/**
|
|
820
926
|
* A lens that applies a custom projection.
|
|
821
927
|
*/
|
|
822
|
-
export type StereoscopicLens =
|
|
928
|
+
export type StereoscopicLens = {
|
|
823
929
|
/**
|
|
824
930
|
* Projection matrix.
|
|
825
931
|
*/
|
|
826
932
|
cs_from_vs: Mat4;
|
|
827
|
-
}
|
|
933
|
+
};
|
|
828
934
|
/**
|
|
829
935
|
* Tags used to filter entities.
|
|
830
936
|
*/
|
|
831
|
-
export type Tags =
|
|
937
|
+
export type Tags = {
|
|
832
938
|
/**
|
|
833
939
|
* Tag list.
|
|
834
940
|
*/
|
|
835
941
|
value: Array<string>;
|
|
836
|
-
}
|
|
942
|
+
};
|
|
837
943
|
/**
|
|
838
944
|
* Vehicle Controller parameters.
|
|
839
945
|
*/
|
|
840
|
-
export type VehicleController =
|
|
946
|
+
export type VehicleController = {
|
|
841
947
|
/**
|
|
842
948
|
* The chassis.
|
|
843
949
|
*/
|
|
@@ -858,96 +964,52 @@ export type VehicleController = Partial<{
|
|
|
858
964
|
* The rear right wheel.
|
|
859
965
|
*/
|
|
860
966
|
rearRightWheel: EntityRef;
|
|
861
|
-
}
|
|
967
|
+
};
|
|
862
968
|
/**
|
|
863
969
|
* Filtering properties applied to the volume.
|
|
864
970
|
*/
|
|
865
|
-
export type VolumeFilter =
|
|
971
|
+
export type VolumeFilter = {
|
|
866
972
|
/**
|
|
867
973
|
* Voxel intensity range displayed, not applicable if outside volume material range.
|
|
974
|
+
* @defaultValue 0,1
|
|
868
975
|
*/
|
|
869
976
|
range: Vec2;
|
|
870
977
|
/**
|
|
871
978
|
* Apply gaussian filtering on voxels.
|
|
979
|
+
* @defaultValue false
|
|
872
980
|
*/
|
|
873
981
|
applyGaussianFiltering: boolean;
|
|
874
982
|
/**
|
|
875
983
|
* Are texel values from the voxel texture sampled unfiltered.
|
|
984
|
+
* @defaultValue false
|
|
876
985
|
*/
|
|
877
986
|
sampleUnfiltered: boolean;
|
|
878
987
|
/**
|
|
879
988
|
* Whether or not this volume is visible in the MPR view.
|
|
989
|
+
* @defaultValue true
|
|
880
990
|
*/
|
|
881
991
|
enableMPR: boolean;
|
|
882
992
|
/**
|
|
883
993
|
* Whether or not this volume is visible in the 3D view.
|
|
994
|
+
* @defaultValue true
|
|
884
995
|
*/
|
|
885
996
|
enable3D: boolean;
|
|
886
|
-
}
|
|
997
|
+
};
|
|
887
998
|
/**
|
|
888
999
|
* Reference to a material to use with a volume.
|
|
889
1000
|
*/
|
|
890
|
-
export type VolumeMaterialRef =
|
|
1001
|
+
export type VolumeMaterialRef = {
|
|
891
1002
|
/**
|
|
892
1003
|
* UUID of the referenced volume material.
|
|
893
1004
|
*/
|
|
894
1005
|
value: AssetRef<Assets.VolumeMaterial>;
|
|
895
|
-
}
|
|
1006
|
+
};
|
|
896
1007
|
/**
|
|
897
1008
|
* Reference to a volume made of voxels.
|
|
898
1009
|
*/
|
|
899
|
-
export type VolumeRef =
|
|
1010
|
+
export type VolumeRef = {
|
|
900
1011
|
/**
|
|
901
1012
|
* UUID of the referenced 3D texture.
|
|
902
1013
|
*/
|
|
903
1014
|
texture3dRef: AssetRef<Assets.Texture3D>;
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
*
|
|
907
|
-
*/
|
|
908
|
-
export declare enum ComponentHash {
|
|
909
|
-
animation_controller = 2978761622,
|
|
910
|
-
animation_sequence_controller = 1078130395,
|
|
911
|
-
bone = 1352454807,
|
|
912
|
-
box_geometry = 3718707752,
|
|
913
|
-
camera = 1515175333,
|
|
914
|
-
capsule_geometry = 3996568839,
|
|
915
|
-
character_controller = 304568171,
|
|
916
|
-
collision_geometry_ref = 3193374355,
|
|
917
|
-
constraint = 3735282166,
|
|
918
|
-
culling_geometry = 611599156,
|
|
919
|
-
cylinder_geometry = 2497701877,
|
|
920
|
-
debug_name = 2737255849,
|
|
921
|
-
decal_projector = 2842087135,
|
|
922
|
-
environment = 227427331,
|
|
923
|
-
joint = 2286235554,
|
|
924
|
-
lineage = 2698448560,
|
|
925
|
-
local_aabb = 4132624459,
|
|
926
|
-
local_transform = 64958624,
|
|
927
|
-
material = 4100970527,
|
|
928
|
-
material_ref = 2816861126,
|
|
929
|
-
mesh_ref = 1660697531,
|
|
930
|
-
orthographic_lens = 3326403741,
|
|
931
|
-
overrider = 2758112134,
|
|
932
|
-
perspective_lens = 1113360699,
|
|
933
|
-
physics_material = 1550394949,
|
|
934
|
-
plane_geometry = 4075752378,
|
|
935
|
-
point_cloud_ref = 457361603,
|
|
936
|
-
point_light = 3624222817,
|
|
937
|
-
reflection_probe = 3879689944,
|
|
938
|
-
rigid_body = 3452128059,
|
|
939
|
-
scene_ref = 371342060,
|
|
940
|
-
script_element = 3574396804,
|
|
941
|
-
script_map = 3291722836,
|
|
942
|
-
shadow_caster = 3403528636,
|
|
943
|
-
skeleton_ref = 36879215,
|
|
944
|
-
sound_ref = 369352309,
|
|
945
|
-
sphere_geometry = 1159992935,
|
|
946
|
-
spot_light = 1508811228,
|
|
947
|
-
stereoscopic_lens = 698679321,
|
|
948
|
-
tags = 163258925,
|
|
949
|
-
vehicle_controller = 1287796174,
|
|
950
|
-
volume_filter = 2625356468,
|
|
951
|
-
volume_material_ref = 3229245461,
|
|
952
|
-
volume_ref = 2808449574
|
|
953
|
-
}
|
|
1015
|
+
};
|