@3dverse/livelink.core 0.7.6 → 0.7.8
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/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +10 -2
- package/dist/_prebuild/types/settings.d.ts +12 -12
- package/dist/sources/controllers/ActivityWatcher.d.ts +4 -0
- package/dist/sources/controllers/GatewayController.d.ts +4 -2
- package/dist/sources/types/math.d.ts +5 -0
- package/dist/sources/types/nativeTypes.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { RTID, Quat } from "../../../sources/types";
|
|
1
|
+
import { RTID, Quat, Vec3 } from "../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type SkeletonPartialPose = {
|
|
6
|
+
positions?: Map<number, Vec3>;
|
|
7
|
+
orientations?: Map<number, Quat>;
|
|
8
|
+
scales?: Map<number, Vec3>;
|
|
9
|
+
};
|
|
2
10
|
/**
|
|
3
11
|
*
|
|
4
12
|
*/
|
|
5
13
|
export type SkeletonPoseMessage = {
|
|
6
14
|
controller_rtid: RTID;
|
|
7
|
-
|
|
15
|
+
partial_pose: SkeletonPartialPose;
|
|
8
16
|
};
|
|
9
17
|
/**
|
|
10
18
|
*
|
|
@@ -69,17 +69,9 @@ export type Display = Partial<{
|
|
|
69
69
|
*/
|
|
70
70
|
forceRedraw: boolean;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* When 'Force Redraw' is off, this setting controls the number of frames the renderer will draw before going back to idle
|
|
73
73
|
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Toggle camera frustum
|
|
77
|
-
*/
|
|
78
|
-
drawCameraFrustum: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Toggle bounding box
|
|
81
|
-
*/
|
|
82
|
-
drawBoundingBox: boolean;
|
|
74
|
+
framePersistence: UInt32;
|
|
83
75
|
/**
|
|
84
76
|
* Toggle frustum culling
|
|
85
77
|
*/
|
|
@@ -114,6 +106,10 @@ export type Misc = Partial<{
|
|
|
114
106
|
* The maximum number of time a linker can reference itself.
|
|
115
107
|
*/
|
|
116
108
|
maxLinkersRecursionCount: UInt32;
|
|
109
|
+
/**
|
|
110
|
+
* Plugins to load at startup
|
|
111
|
+
*/
|
|
112
|
+
plugins: Array<string>;
|
|
117
113
|
}>;
|
|
118
114
|
/**
|
|
119
115
|
* Settings for the physics engine.
|
|
@@ -131,6 +127,10 @@ export type Physics = Partial<{
|
|
|
131
127
|
* A frame-rate-independent interval that dictates when physics calculations are performed.
|
|
132
128
|
*/
|
|
133
129
|
timestepInS: Float;
|
|
130
|
+
/**
|
|
131
|
+
* The epsilon used to mark whether the transform of an entity has changed and so whether to notify the physics engine.
|
|
132
|
+
*/
|
|
133
|
+
epsilon: Float;
|
|
134
134
|
/**
|
|
135
135
|
* The approximate size of objects in the simulation. This is used to estimate certain length-related tolerances.
|
|
136
136
|
*/
|
|
@@ -140,9 +140,9 @@ export type Physics = Partial<{
|
|
|
140
140
|
*/
|
|
141
141
|
toleranceSpeed: Float;
|
|
142
142
|
/**
|
|
143
|
-
* The
|
|
143
|
+
* The bigger LMD Max is, the greater the area that is searched for future contacts, and so the greater time taken per iteration. Note that XDE resolves contacts pre-collision, not once collision has taken place, like the majority of physics engines. Displacement of any object per iteration should not exceed LMD Max.
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
lmdMax: Float;
|
|
146
146
|
}>;
|
|
147
147
|
/**
|
|
148
148
|
* Renderer settings
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GatewayMessageHandler } from "../../_prebuild/GatewayMessageHandler";
|
|
2
2
|
import { SessionInterface } from "../interfaces/SessionInterface";
|
|
3
3
|
import { ActivityWatcher } from "./ActivityWatcher";
|
|
4
|
-
import { UUID } from "../types";
|
|
4
|
+
import { GatewayDisconnectedReason, UUID } from "../types";
|
|
5
5
|
/**
|
|
6
6
|
* The gateway controller is the exposed interface of the Livelink gateway protocol.
|
|
7
7
|
*
|
|
@@ -43,7 +43,9 @@ export declare class GatewayController extends GatewayMessageHandler {
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
_onDisconnected(
|
|
46
|
+
_onDisconnected({ reason }: {
|
|
47
|
+
reason: GatewayDisconnectedReason;
|
|
48
|
+
}): void;
|
|
47
49
|
/**
|
|
48
50
|
*
|
|
49
51
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
4
|
export type Vec2 = [number, number];
|
|
5
|
+
export declare const VEC2_BYTE_SIZE: 8;
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
*/
|
|
@@ -14,6 +15,7 @@ export declare function serialize_Vec2({ data_view, offset, value, }: {
|
|
|
14
15
|
*
|
|
15
16
|
*/
|
|
16
17
|
export type Vec3 = [number, number, number];
|
|
18
|
+
export declare const VEC3_BYTE_SIZE: 12;
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
19
21
|
*/
|
|
@@ -33,6 +35,7 @@ export declare function deserialize_Vec3({ data_view, offset }: {
|
|
|
33
35
|
*
|
|
34
36
|
*/
|
|
35
37
|
export type Vec4 = [number, number, number, number];
|
|
38
|
+
export declare const VEC4_BYTE_SIZE: 16;
|
|
36
39
|
/**
|
|
37
40
|
*
|
|
38
41
|
*/
|
|
@@ -45,6 +48,7 @@ export declare function serialize_Vec4({ data_view, offset, value, }: {
|
|
|
45
48
|
*
|
|
46
49
|
*/
|
|
47
50
|
export type Vec2i = Vec2;
|
|
51
|
+
export declare const VEC2I_BYTE_SIZE: 8;
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
54
|
*/
|
|
@@ -56,6 +60,7 @@ export declare function deserialize_Vec2i({ data_view, offset }: {
|
|
|
56
60
|
*
|
|
57
61
|
*/
|
|
58
62
|
export type Vec2ui16 = Vec2;
|
|
63
|
+
export declare const VEC2UI16_BYTE_SIZE: 4;
|
|
59
64
|
/**
|
|
60
65
|
*
|
|
61
66
|
*/
|
|
@@ -8,6 +8,17 @@ export type Int32 = number;
|
|
|
8
8
|
export type Int64 = bigint;
|
|
9
9
|
export type Float = number;
|
|
10
10
|
export type Double = number;
|
|
11
|
+
export declare const BOOL_BYTE_SIZE: 1;
|
|
12
|
+
export declare const UINT8_BYTE_SIZE: 1;
|
|
13
|
+
export declare const UINT16_BYTE_SIZE: 2;
|
|
14
|
+
export declare const UINT32_BYTE_SIZE: 4;
|
|
15
|
+
export declare const UINT64_BYTE_SIZE: 8;
|
|
16
|
+
export declare const INT8_BYTE_SIZE: 1;
|
|
17
|
+
export declare const INT16_BYTE_SIZE: 2;
|
|
18
|
+
export declare const INT32_BYTE_SIZE: 4;
|
|
19
|
+
export declare const INT64_BYTE_SIZE: 8;
|
|
20
|
+
export declare const FLOAT_BYTE_SIZE: 4;
|
|
21
|
+
export declare const DOUBLE_BYTE_SIZE: 8;
|
|
11
22
|
/**
|
|
12
23
|
*
|
|
13
24
|
*/
|