@dcl/ecs 7.21.1-22904194370.commit-34c867c → 7.21.1-22918726402.commit-ee210ee
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/components/extended/Tween.d.ts +48 -1
- package/dist/components/extended/Tween.js +66 -0
- package/dist/components/generated/PhysicsCombinedForce.gen.d.ts +1 -0
- package/dist/components/generated/PhysicsCombinedForce.gen.js +25 -0
- package/dist/components/generated/PhysicsCombinedImpulse.gen.d.ts +1 -0
- package/dist/components/generated/PhysicsCombinedImpulse.gen.js +25 -0
- package/dist/components/generated/component-names.gen.js +2 -0
- package/dist/components/generated/global.gen.d.ts +4 -0
- package/dist/components/generated/global.gen.js +2 -0
- package/dist/components/generated/index.gen.d.ts +8 -0
- package/dist/components/generated/index.gen.js +10 -0
- package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +2 -0
- package/dist/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +20 -0
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +25 -0
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +42 -0
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +28 -0
- package/dist/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +51 -0
- package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +21 -0
- package/dist/components/generated/pb/decentraland/sdk/components/tween.gen.js +99 -0
- package/dist/components/types.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/runtime/globals.d.ts +10 -1
- package/dist/runtime/globals.js +2 -2
- package/dist-cjs/components/extended/Tween.d.ts +48 -1
- package/dist-cjs/components/extended/Tween.js +66 -0
- package/dist-cjs/components/generated/PhysicsCombinedForce.gen.d.ts +1 -0
- package/dist-cjs/components/generated/PhysicsCombinedForce.gen.js +28 -0
- package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.d.ts +1 -0
- package/dist-cjs/components/generated/PhysicsCombinedImpulse.gen.js +28 -0
- package/dist-cjs/components/generated/component-names.gen.js +2 -0
- package/dist-cjs/components/generated/global.gen.d.ts +4 -0
- package/dist-cjs/components/generated/global.gen.js +3 -1
- package/dist-cjs/components/generated/index.gen.d.ts +8 -0
- package/dist-cjs/components/generated/index.gen.js +14 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts +2 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.js +20 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts +25 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.js +48 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.d.ts +28 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_impulse.gen.js +57 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.d.ts +21 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/tween.gen.js +100 -1
- package/dist-cjs/components/types.d.ts +1 -1
- package/dist-cjs/index.d.ts +1 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/runtime/globals.d.ts +10 -1
- package/dist-cjs/runtime/globals.js +2 -2
- package/package.json +2 -2
|
@@ -90,6 +90,9 @@ export var PBTween;
|
|
|
90
90
|
case "textureMoveContinuous":
|
|
91
91
|
TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
|
|
92
92
|
break;
|
|
93
|
+
case "moveRotateScale":
|
|
94
|
+
MoveRotateScale.encode(message.mode.moveRotateScale, writer.uint32(98).fork()).ldelim();
|
|
95
|
+
break;
|
|
93
96
|
}
|
|
94
97
|
if (message.playing !== undefined) {
|
|
95
98
|
writer.uint32(48).bool(message.playing);
|
|
@@ -167,6 +170,12 @@ export var PBTween;
|
|
|
167
170
|
textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
|
|
168
171
|
};
|
|
169
172
|
continue;
|
|
173
|
+
case 12:
|
|
174
|
+
if (tag !== 98) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
message.mode = { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.decode(reader, reader.uint32()) };
|
|
178
|
+
continue;
|
|
170
179
|
case 6:
|
|
171
180
|
if (tag !== 48) {
|
|
172
181
|
break;
|
|
@@ -339,6 +348,96 @@ export var Scale;
|
|
|
339
348
|
}
|
|
340
349
|
Scale.decode = decode;
|
|
341
350
|
})(Scale || (Scale = {}));
|
|
351
|
+
function createBaseMoveRotateScale() {
|
|
352
|
+
return {
|
|
353
|
+
positionStart: undefined,
|
|
354
|
+
positionEnd: undefined,
|
|
355
|
+
rotationStart: undefined,
|
|
356
|
+
rotationEnd: undefined,
|
|
357
|
+
scaleStart: undefined,
|
|
358
|
+
scaleEnd: undefined,
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @public
|
|
363
|
+
*/
|
|
364
|
+
export var MoveRotateScale;
|
|
365
|
+
(function (MoveRotateScale) {
|
|
366
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
367
|
+
if (message.positionStart !== undefined) {
|
|
368
|
+
Vector3.encode(message.positionStart, writer.uint32(10).fork()).ldelim();
|
|
369
|
+
}
|
|
370
|
+
if (message.positionEnd !== undefined) {
|
|
371
|
+
Vector3.encode(message.positionEnd, writer.uint32(18).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
if (message.rotationStart !== undefined) {
|
|
374
|
+
Quaternion.encode(message.rotationStart, writer.uint32(26).fork()).ldelim();
|
|
375
|
+
}
|
|
376
|
+
if (message.rotationEnd !== undefined) {
|
|
377
|
+
Quaternion.encode(message.rotationEnd, writer.uint32(34).fork()).ldelim();
|
|
378
|
+
}
|
|
379
|
+
if (message.scaleStart !== undefined) {
|
|
380
|
+
Vector3.encode(message.scaleStart, writer.uint32(42).fork()).ldelim();
|
|
381
|
+
}
|
|
382
|
+
if (message.scaleEnd !== undefined) {
|
|
383
|
+
Vector3.encode(message.scaleEnd, writer.uint32(50).fork()).ldelim();
|
|
384
|
+
}
|
|
385
|
+
return writer;
|
|
386
|
+
}
|
|
387
|
+
MoveRotateScale.encode = encode;
|
|
388
|
+
function decode(input, length) {
|
|
389
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
390
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
|
+
const message = createBaseMoveRotateScale();
|
|
392
|
+
while (reader.pos < end) {
|
|
393
|
+
const tag = reader.uint32();
|
|
394
|
+
switch (tag >>> 3) {
|
|
395
|
+
case 1:
|
|
396
|
+
if (tag !== 10) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
message.positionStart = Vector3.decode(reader, reader.uint32());
|
|
400
|
+
continue;
|
|
401
|
+
case 2:
|
|
402
|
+
if (tag !== 18) {
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
message.positionEnd = Vector3.decode(reader, reader.uint32());
|
|
406
|
+
continue;
|
|
407
|
+
case 3:
|
|
408
|
+
if (tag !== 26) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
message.rotationStart = Quaternion.decode(reader, reader.uint32());
|
|
412
|
+
continue;
|
|
413
|
+
case 4:
|
|
414
|
+
if (tag !== 34) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.rotationEnd = Quaternion.decode(reader, reader.uint32());
|
|
418
|
+
continue;
|
|
419
|
+
case 5:
|
|
420
|
+
if (tag !== 42) {
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
message.scaleStart = Vector3.decode(reader, reader.uint32());
|
|
424
|
+
continue;
|
|
425
|
+
case 6:
|
|
426
|
+
if (tag !== 50) {
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
message.scaleEnd = Vector3.decode(reader, reader.uint32());
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
reader.skipType(tag & 7);
|
|
436
|
+
}
|
|
437
|
+
return message;
|
|
438
|
+
}
|
|
439
|
+
MoveRotateScale.decode = decode;
|
|
440
|
+
})(MoveRotateScale || (MoveRotateScale = {}));
|
|
342
441
|
function createBaseTextureMove() {
|
|
343
442
|
return { start: undefined, end: undefined, movementType: undefined };
|
|
344
443
|
}
|
|
@@ -4,7 +4,7 @@ export type { AudioStreamComponentDefinitionExtended } from './extended/AudioStr
|
|
|
4
4
|
export type { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
|
|
5
5
|
export type { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
|
|
6
6
|
export type { TextureHelper, MaterialComponentDefinitionExtended, FlatTexture, ReadonlyFlatMaterial, ReadonlyFlatTexture, FlatMaterial } from './extended/Material';
|
|
7
|
-
export type { TweenHelper, TweenComponentDefinitionExtended } from './extended/Tween';
|
|
7
|
+
export type { TweenHelper, TweenComponentDefinitionExtended, SetMoveRotateScaleParams, MoveRotateScaleModeParams } from './extended/Tween';
|
|
8
8
|
export type { CameraTransitionHelper, VirtualCameraComponentDefinitionExtended } from './extended/VirtualCamera';
|
|
9
9
|
export type { TransformComponentExtended, TransformTypeWithOptionals } from './manual/Transform';
|
|
10
10
|
export type { NameComponent, NameType } from './manual/Name';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The order of the following imports matters. Please do not auto-sort
|
|
2
2
|
export * from './engine';
|
|
3
3
|
export * from './schemas';
|
|
4
|
+
export * from './runtime/globals';
|
|
4
5
|
export * from './runtime/initialization';
|
|
5
6
|
export * from './runtime/types';
|
|
6
7
|
export * from './runtime/helpers';
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal utilities for standardized globalThis access.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Type-safe globalThis property access.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare function getGlobal<T>(key: string): T | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare function setGlobalPolyfill<T>(key: string, value: T): void;
|
package/dist/runtime/globals.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Type-safe globalThis property access.
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
export function getGlobal(key) {
|
|
9
9
|
return globalThis[key];
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
13
|
-
* @
|
|
13
|
+
* @public
|
|
14
14
|
*/
|
|
15
15
|
export function setGlobalPolyfill(key, value) {
|
|
16
16
|
;
|
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
import { Entity, IEngine, LastWriteWinElementSetComponentDefinition } from '../../engine';
|
|
2
2
|
import { Quaternion, Vector2, Vector3 } from '../generated/pb/decentraland/common/vectors.gen';
|
|
3
3
|
import { EasingFunction, Move, MoveContinuous, PBTween, Rotate, RotateContinuous, Scale, TextureMove, TextureMoveContinuous, TextureMovementType } from '../generated/index.gen';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
* Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
|
|
7
|
+
* Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
|
|
8
|
+
*/
|
|
9
|
+
export interface MoveRotateScaleModeParams {
|
|
10
|
+
/** Position tween (start → end). Optional. */
|
|
11
|
+
position?: {
|
|
12
|
+
start: Vector3;
|
|
13
|
+
end: Vector3;
|
|
14
|
+
};
|
|
15
|
+
/** Rotation tween (start → end). Optional. */
|
|
16
|
+
rotation?: {
|
|
17
|
+
start: Quaternion;
|
|
18
|
+
end: Quaternion;
|
|
19
|
+
};
|
|
20
|
+
/** Scale tween (start → end). Optional. */
|
|
21
|
+
scale?: {
|
|
22
|
+
start: Vector3;
|
|
23
|
+
end: Vector3;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
|
|
29
|
+
*/
|
|
30
|
+
export interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
|
|
31
|
+
/** Duration of the tween in milliseconds. */
|
|
32
|
+
duration: number;
|
|
33
|
+
/** Easing function (defaults to EF_LINEAR). */
|
|
34
|
+
easingFunction?: EasingFunction;
|
|
35
|
+
}
|
|
4
36
|
/**
|
|
5
37
|
* @public
|
|
6
38
|
*/
|
|
@@ -33,13 +65,18 @@ export interface TweenHelper {
|
|
|
33
65
|
* @returns a texture-move-continuous mode tween
|
|
34
66
|
*/
|
|
35
67
|
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
|
68
|
+
/**
|
|
69
|
+
* @returns a move-rotate-scale mode tween
|
|
70
|
+
* @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
|
|
71
|
+
*/
|
|
72
|
+
MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
|
|
36
73
|
}
|
|
37
74
|
/**
|
|
38
75
|
* @public
|
|
39
76
|
*/
|
|
40
77
|
export interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
|
|
41
78
|
/**
|
|
42
|
-
*
|
|
79
|
+
* Helpers with constructor
|
|
43
80
|
*/
|
|
44
81
|
Mode: TweenHelper;
|
|
45
82
|
/**
|
|
@@ -118,5 +155,15 @@ export interface TweenComponentDefinitionExtended extends LastWriteWinElementSet
|
|
|
118
155
|
* @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
|
|
119
156
|
*/
|
|
120
157
|
setTextureMoveContinuous(entity: Entity, direction: Vector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*
|
|
161
|
+
* Creates or replaces a move-rotate-scale tween component that simultaneously animates
|
|
162
|
+
* an entity's position, rotation, and/or scale from start to end. Provide only the
|
|
163
|
+
* properties you need (at least one of position, rotation, or scale).
|
|
164
|
+
* @param entity - entity to apply the tween to
|
|
165
|
+
* @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
|
|
166
|
+
*/
|
|
167
|
+
setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
|
|
121
168
|
}
|
|
122
169
|
export declare function defineTweenComponent(engine: Pick<IEngine, 'defineComponentFromSchema'>): TweenComponentDefinitionExtended;
|
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defineTweenComponent = void 0;
|
|
4
4
|
const index_gen_1 = require("../generated/index.gen");
|
|
5
|
+
function assertDuration(duration, apiName) {
|
|
6
|
+
if (!Number.isFinite(duration) || duration < 0) {
|
|
7
|
+
throw new Error(`${apiName}: duration must be a non-negative finite number`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/** Shared validation for params that have optional position/rotation/scale with start & end. */
|
|
11
|
+
function assertMoveRotateScaleAxesStartEnd(params, apiName) {
|
|
12
|
+
if (!params.position && !params.rotation && !params.scale) {
|
|
13
|
+
throw new Error(`${apiName}: at least one of position, rotation, or scale must be provided`);
|
|
14
|
+
}
|
|
15
|
+
if (params.position) {
|
|
16
|
+
const pos = params.position;
|
|
17
|
+
if (!pos.start || !pos.end) {
|
|
18
|
+
throw new Error(`${apiName}: position must have both start and end`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (params.rotation) {
|
|
22
|
+
const rot = params.rotation;
|
|
23
|
+
if (!rot.start || !rot.end) {
|
|
24
|
+
throw new Error(`${apiName}: rotation must have both start and end`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (params.scale) {
|
|
28
|
+
const scl = params.scale;
|
|
29
|
+
if (!scl.start || !scl.end) {
|
|
30
|
+
throw new Error(`${apiName}: scale must have both start and end`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
5
34
|
const TweenHelper = {
|
|
6
35
|
Move(move) {
|
|
7
36
|
return {
|
|
@@ -44,6 +73,21 @@ const TweenHelper = {
|
|
|
44
73
|
$case: 'textureMoveContinuous',
|
|
45
74
|
textureMoveContinuous
|
|
46
75
|
};
|
|
76
|
+
},
|
|
77
|
+
MoveRotateScale(params) {
|
|
78
|
+
assertMoveRotateScaleAxesStartEnd(params, 'Tween.Mode.MoveRotateScale');
|
|
79
|
+
const moveRotateScale = {
|
|
80
|
+
positionStart: params.position ? params.position.start : undefined,
|
|
81
|
+
positionEnd: params.position ? params.position.end : undefined,
|
|
82
|
+
rotationStart: params.rotation ? params.rotation.start : undefined,
|
|
83
|
+
rotationEnd: params.rotation ? params.rotation.end : undefined,
|
|
84
|
+
scaleStart: params.scale ? params.scale.start : undefined,
|
|
85
|
+
scaleEnd: params.scale ? params.scale.end : undefined
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
$case: 'moveRotateScale',
|
|
89
|
+
moveRotateScale
|
|
90
|
+
};
|
|
47
91
|
}
|
|
48
92
|
};
|
|
49
93
|
function defineTweenComponent(engine) {
|
|
@@ -150,6 +194,28 @@ function defineTweenComponent(engine) {
|
|
|
150
194
|
easingFunction: 0 /* EasingFunction.EF_LINEAR */,
|
|
151
195
|
playing: true
|
|
152
196
|
});
|
|
197
|
+
},
|
|
198
|
+
setMoveRotateScale(entity, params) {
|
|
199
|
+
assertMoveRotateScaleAxesStartEnd(params, 'setMoveRotateScale');
|
|
200
|
+
assertDuration(params.duration, 'setMoveRotateScale');
|
|
201
|
+
const { position, rotation, scale, duration, easingFunction = 0 /* EasingFunction.EF_LINEAR */ } = params;
|
|
202
|
+
const moveRotateScale = {
|
|
203
|
+
positionStart: position ? position.start : undefined,
|
|
204
|
+
positionEnd: position ? position.end : undefined,
|
|
205
|
+
rotationStart: rotation ? rotation.start : undefined,
|
|
206
|
+
rotationEnd: rotation ? rotation.end : undefined,
|
|
207
|
+
scaleStart: scale ? scale.start : undefined,
|
|
208
|
+
scaleEnd: scale ? scale.end : undefined
|
|
209
|
+
};
|
|
210
|
+
theComponent.createOrReplace(entity, {
|
|
211
|
+
mode: {
|
|
212
|
+
$case: 'moveRotateScale',
|
|
213
|
+
moveRotateScale
|
|
214
|
+
},
|
|
215
|
+
duration,
|
|
216
|
+
easingFunction,
|
|
217
|
+
playing: true
|
|
218
|
+
});
|
|
153
219
|
}
|
|
154
220
|
};
|
|
155
221
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhysicsCombinedForceSchema = void 0;
|
|
4
|
+
const physics_combined_force_gen_1 = require("./pb/decentraland/sdk/components/physics_combined_force.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.PhysicsCombinedForceSchema = {
|
|
9
|
+
COMPONENT_ID: 1216,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = physics_combined_force_gen_1.PBPhysicsCombinedForce.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return physics_combined_force_gen_1.PBPhysicsCombinedForce.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return physics_combined_force_gen_1.PBPhysicsCombinedForce.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBPhysicsCombinedForce"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhysicsCombinedImpulseSchema = void 0;
|
|
4
|
+
const physics_combined_impulse_gen_1 = require("./pb/decentraland/sdk/components/physics_combined_impulse.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.PhysicsCombinedImpulseSchema = {
|
|
9
|
+
COMPONENT_ID: 1215,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = physics_combined_impulse_gen_1.PBPhysicsCombinedImpulse.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return physics_combined_impulse_gen_1.PBPhysicsCombinedImpulse.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return physics_combined_impulse_gen_1.PBPhysicsCombinedImpulse.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBPhysicsCombinedImpulse"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -33,6 +33,8 @@ exports.coreComponentMappings = {
|
|
|
33
33
|
"core::MeshCollider": 1019,
|
|
34
34
|
"core::MeshRenderer": 1018,
|
|
35
35
|
"core::NftShape": 1040,
|
|
36
|
+
"core::PhysicsCombinedForce": 1216,
|
|
37
|
+
"core::PhysicsCombinedImpulse": 1215,
|
|
36
38
|
"core::PlayerIdentityData": 1089,
|
|
37
39
|
"core::PointerEvents": 1062,
|
|
38
40
|
"core::PointerEventsResult": 1063,
|
|
@@ -22,6 +22,8 @@ import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier
|
|
|
22
22
|
import { PBLightSource } from './pb/decentraland/sdk/components/light_source.gen';
|
|
23
23
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
24
24
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
25
|
+
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
26
|
+
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
25
27
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
26
28
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
27
29
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -70,6 +72,8 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
70
72
|
/** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
|
|
71
73
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
72
74
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
75
|
+
/** @public */ export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
76
|
+
/** @public */ export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
73
77
|
/** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
|
|
74
78
|
/** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
75
79
|
/** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
29
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
30
30
|
const initialization_1 = require("../../runtime/initialization");
|
|
31
31
|
const components = __importStar(require("./index.gen"));
|
|
32
32
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -52,6 +52,8 @@ __exportStar(require("./index.gen"), exports);
|
|
|
52
52
|
/** @public */ exports.LightSource = components.LightSource(initialization_1.engine);
|
|
53
53
|
/** @public */ exports.MainCamera = components.MainCamera(initialization_1.engine);
|
|
54
54
|
/** @public */ exports.NftShape = components.NftShape(initialization_1.engine);
|
|
55
|
+
/** @public */ exports.PhysicsCombinedForce = components.PhysicsCombinedForce(initialization_1.engine);
|
|
56
|
+
/** @public */ exports.PhysicsCombinedImpulse = components.PhysicsCombinedImpulse(initialization_1.engine);
|
|
55
57
|
/** @public */ exports.PlayerIdentityData = components.PlayerIdentityData(initialization_1.engine);
|
|
56
58
|
/** @public */ exports.PointerEvents = components.PointerEvents(initialization_1.engine);
|
|
57
59
|
/** @public */ exports.PointerEventsResult = components.PointerEventsResult(initialization_1.engine);
|
|
@@ -26,6 +26,8 @@ import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
|
26
26
|
import { PBMeshCollider } from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
27
27
|
import { PBMeshRenderer } from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
28
28
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
29
|
+
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
30
|
+
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
29
31
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
30
32
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
31
33
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -79,6 +81,8 @@ export * from './pb/decentraland/sdk/components/material.gen';
|
|
|
79
81
|
export * from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
80
82
|
export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
81
83
|
export * from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
84
|
+
export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
85
|
+
export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
82
86
|
export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
83
87
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
84
88
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
@@ -134,6 +138,8 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
134
138
|
/** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
135
139
|
/** @public */ export declare const MeshRenderer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
136
140
|
/** @public */ export declare const NftShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
141
|
+
/** @public */ export declare const PhysicsCombinedForce: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
142
|
+
/** @public */ export declare const PhysicsCombinedImpulse: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
137
143
|
/** @public */ export declare const PlayerIdentityData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
138
144
|
/** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
139
145
|
/** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -189,6 +195,8 @@ export declare const componentDefinitionByName: {
|
|
|
189
195
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
190
196
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
191
197
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
198
|
+
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
199
|
+
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
192
200
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
193
201
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
194
202
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = void 0;
|
|
17
|
+
exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AssetLoadLoadingState = exports.AssetLoad = exports.Animator = void 0;
|
|
18
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = void 0;
|
|
19
19
|
const Animator_gen_1 = require("./Animator.gen");
|
|
20
20
|
const AssetLoad_gen_1 = require("./AssetLoad.gen");
|
|
21
21
|
const AssetLoadLoadingState_gen_1 = require("./AssetLoadLoadingState.gen");
|
|
@@ -42,6 +42,8 @@ const Material_gen_1 = require("./Material.gen");
|
|
|
42
42
|
const MeshCollider_gen_1 = require("./MeshCollider.gen");
|
|
43
43
|
const MeshRenderer_gen_1 = require("./MeshRenderer.gen");
|
|
44
44
|
const NftShape_gen_1 = require("./NftShape.gen");
|
|
45
|
+
const PhysicsCombinedForce_gen_1 = require("./PhysicsCombinedForce.gen");
|
|
46
|
+
const PhysicsCombinedImpulse_gen_1 = require("./PhysicsCombinedImpulse.gen");
|
|
45
47
|
const PlayerIdentityData_gen_1 = require("./PlayerIdentityData.gen");
|
|
46
48
|
const PointerEvents_gen_1 = require("./PointerEvents.gen");
|
|
47
49
|
const PointerEventsResult_gen_1 = require("./PointerEventsResult.gen");
|
|
@@ -95,6 +97,8 @@ __exportStar(require("./pb/decentraland/sdk/components/material.gen"), exports);
|
|
|
95
97
|
__exportStar(require("./pb/decentraland/sdk/components/mesh_collider.gen"), exports);
|
|
96
98
|
__exportStar(require("./pb/decentraland/sdk/components/mesh_renderer.gen"), exports);
|
|
97
99
|
__exportStar(require("./pb/decentraland/sdk/components/nft_shape.gen"), exports);
|
|
100
|
+
__exportStar(require("./pb/decentraland/sdk/components/physics_combined_force.gen"), exports);
|
|
101
|
+
__exportStar(require("./pb/decentraland/sdk/components/physics_combined_impulse.gen"), exports);
|
|
98
102
|
__exportStar(require("./pb/decentraland/sdk/components/player_identity_data.gen"), exports);
|
|
99
103
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events.gen"), exports);
|
|
100
104
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events_result.gen"), exports);
|
|
@@ -206,6 +210,12 @@ exports.MeshRenderer = MeshRenderer;
|
|
|
206
210
|
/** @public */ const NftShape = engine =>
|
|
207
211
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::NftShape", NftShape_gen_1.NftShapeSchema);
|
|
208
212
|
exports.NftShape = NftShape;
|
|
213
|
+
/** @public */ const PhysicsCombinedForce = engine =>
|
|
214
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedForce", PhysicsCombinedForce_gen_1.PhysicsCombinedForceSchema);
|
|
215
|
+
exports.PhysicsCombinedForce = PhysicsCombinedForce;
|
|
216
|
+
/** @public */ const PhysicsCombinedImpulse = engine =>
|
|
217
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedImpulse", PhysicsCombinedImpulse_gen_1.PhysicsCombinedImpulseSchema);
|
|
218
|
+
exports.PhysicsCombinedImpulse = PhysicsCombinedImpulse;
|
|
209
219
|
/** @public */ const PlayerIdentityData = engine =>
|
|
210
220
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PlayerIdentityData", PlayerIdentityData_gen_1.PlayerIdentityDataSchema);
|
|
211
221
|
exports.PlayerIdentityData = PlayerIdentityData;
|
|
@@ -321,6 +331,8 @@ exports.componentDefinitionByName = {
|
|
|
321
331
|
"core::MeshCollider": exports.MeshCollider,
|
|
322
332
|
"core::MeshRenderer": exports.MeshRenderer,
|
|
323
333
|
"core::NftShape": exports.NftShape,
|
|
334
|
+
"core::PhysicsCombinedForce": exports.PhysicsCombinedForce,
|
|
335
|
+
"core::PhysicsCombinedImpulse": exports.PhysicsCombinedImpulse,
|
|
324
336
|
"core::PlayerIdentityData": exports.PlayerIdentityData,
|
|
325
337
|
"core::PointerEvents": exports.PointerEvents,
|
|
326
338
|
"core::PointerEventsResult": exports.PointerEventsResult,
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/input_modifier.gen.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface PBInputModifier_StandardInput {
|
|
|
19
19
|
disableRun?: boolean | undefined;
|
|
20
20
|
disableJump?: boolean | undefined;
|
|
21
21
|
disableEmote?: boolean | undefined;
|
|
22
|
+
disableDoubleJump?: boolean | undefined;
|
|
23
|
+
disableGliding?: boolean | undefined;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* @public
|
|
@@ -55,6 +55,8 @@ function createBasePBInputModifier_StandardInput() {
|
|
|
55
55
|
disableRun: undefined,
|
|
56
56
|
disableJump: undefined,
|
|
57
57
|
disableEmote: undefined,
|
|
58
|
+
disableDoubleJump: undefined,
|
|
59
|
+
disableGliding: undefined,
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
@@ -81,6 +83,12 @@ var PBInputModifier_StandardInput;
|
|
|
81
83
|
if (message.disableEmote !== undefined) {
|
|
82
84
|
writer.uint32(48).bool(message.disableEmote);
|
|
83
85
|
}
|
|
86
|
+
if (message.disableDoubleJump !== undefined) {
|
|
87
|
+
writer.uint32(56).bool(message.disableDoubleJump);
|
|
88
|
+
}
|
|
89
|
+
if (message.disableGliding !== undefined) {
|
|
90
|
+
writer.uint32(64).bool(message.disableGliding);
|
|
91
|
+
}
|
|
84
92
|
return writer;
|
|
85
93
|
}
|
|
86
94
|
PBInputModifier_StandardInput.encode = encode;
|
|
@@ -127,6 +135,18 @@ var PBInputModifier_StandardInput;
|
|
|
127
135
|
}
|
|
128
136
|
message.disableEmote = reader.bool();
|
|
129
137
|
continue;
|
|
138
|
+
case 7:
|
|
139
|
+
if (tag !== 56) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.disableDoubleJump = reader.bool();
|
|
143
|
+
continue;
|
|
144
|
+
case 8:
|
|
145
|
+
if (tag !== 64) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.disableGliding = reader.bool();
|
|
149
|
+
continue;
|
|
130
150
|
}
|
|
131
151
|
if ((tag & 7) === 4 || tag === 0) {
|
|
132
152
|
break;
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/physics_combined_force.gen.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
/**
|
|
4
|
+
* This component applies a continuous physics force.
|
|
5
|
+
*
|
|
6
|
+
* @remarks Low-level component. Use Physics.applyForceToPlayer()/.removeForceToPlayer() instead.
|
|
7
|
+
* Direct manipulation will conflict with the force accumulation registry.
|
|
8
|
+
* Summary component: stores the accumulated result of all active forces registered by the scene in the current frame.
|
|
9
|
+
*
|
|
10
|
+
* State-like component: the force is applied every physics tick while the component is present on the entity.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface PBPhysicsCombinedForce {
|
|
16
|
+
/** Includes force direction and magnitude */
|
|
17
|
+
vector: Vector3 | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace PBPhysicsCombinedForce {
|
|
23
|
+
function encode(message: PBPhysicsCombinedForce, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedForce;
|
|
25
|
+
}
|