@babylonjs/lite-compat 1.26.0-preview → 1.28.0-preview
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 +27 -26
- package/index.d.ts +150 -34
- package/index.js +343 -42
- package/index.js.map +1 -1
- package/{meshes-nWGELV98.js → meshes-CgaKo90D.js} +10 -10
- package/meshes-CgaKo90D.js.map +1 -0
- package/navigation.d.ts +61 -10
- package/navigation.js +1 -1
- package/package.json +4 -4
- package/meshes-nWGELV98.js.map +0 -1
package/navigation.d.ts
CHANGED
|
@@ -115,20 +115,16 @@ declare abstract class AbstractEngine {
|
|
|
115
115
|
beginFrame(): never;
|
|
116
116
|
/** Babylon.js manual frame-pump exit point — unsupported (Lite's frame graph owns the frame). */
|
|
117
117
|
endFrame(): never;
|
|
118
|
+
/** Babylon.js `engine.currentSampleCount` — the active surface's MSAA sample count. */
|
|
119
|
+
get currentSampleCount(): number;
|
|
118
120
|
/**
|
|
119
|
-
* Babylon.js `engine.
|
|
120
|
-
*
|
|
121
|
-
* needs a tree-shakeable Lite core addition before it can report a real value.
|
|
122
|
-
*/
|
|
123
|
-
get currentSampleCount(): never;
|
|
124
|
-
/**
|
|
125
|
-
* Babylon.js `engine.getAlphaToCoverage()` — alpha-to-coverage state. Babylon Lite does not
|
|
126
|
-
* expose an engine-level alpha-to-coverage toggle, so this is unsupported.
|
|
121
|
+
* Babylon.js `engine.getAlphaToCoverage()` — alpha-to-coverage state. Lite's API is scoped to
|
|
122
|
+
* individual material/sprite/text pipeline owners, not the engine-wide state BJS exposes.
|
|
127
123
|
*/
|
|
128
124
|
getAlphaToCoverage(): never;
|
|
129
125
|
/**
|
|
130
|
-
* Babylon.js `engine.setAlphaToCoverage(enable)` — toggle alpha-to-coverage.
|
|
131
|
-
*
|
|
126
|
+
* Babylon.js `engine.setAlphaToCoverage(enable)` — toggle alpha-to-coverage. Lite's target-
|
|
127
|
+
* scoped API cannot reproduce the engine-wide state without a pipeline-owner lifecycle policy.
|
|
132
128
|
*/
|
|
133
129
|
setAlphaToCoverage(_enable: boolean): never;
|
|
134
130
|
/**
|
|
@@ -1186,6 +1182,14 @@ declare class PBRSheenConfiguration {
|
|
|
1186
1182
|
getActiveTextures(): BaseTexture[];
|
|
1187
1183
|
}
|
|
1188
1184
|
|
|
1185
|
+
declare class Physics6DoFLimit {
|
|
1186
|
+
axis: PhysicsConstraintAxis;
|
|
1187
|
+
minLimit?: number;
|
|
1188
|
+
maxLimit?: number;
|
|
1189
|
+
stiffness?: number;
|
|
1190
|
+
damping?: number;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1189
1193
|
/** Babylon.js-shaped rigid body backed by a Babylon Lite physics body. */
|
|
1190
1194
|
declare class PhysicsBody {
|
|
1191
1195
|
readonly transformNode: TransformNode;
|
|
1192
1196
|
private _disableSync;
|
|
@@ -1211,8 +1215,55 @@ declare class PhysicsBody {
|
|
|
1211
1215
|
readonly transformNode: TransformNode;
|
|
1212
1216
|
getAngularVelocityToRef(result: Vector3): void;
|
|
1213
1217
|
applyImpulse(impulse: Vec3Like_2, location: Vec3Like_2): void;
|
|
1214
1218
|
applyForce(force: Vec3Like_2, location: Vec3Like_2): void;
|
|
1219
|
+
addConstraint(childBody: PhysicsBody, constraint: PhysicsConstraint): void;
|
|
1215
1220
|
dispose(): void;
|
|
1216
1221
|
|
|
1222
|
+
/** Babylon.js-shaped Physics V2 constraint backed by Lite's native constraint factory. */
|
|
1223
|
+
declare class PhysicsConstraint {
|
|
1224
|
+
readonly type: PhysicsConstraintType;
|
|
1225
|
+
protected readonly _options: PhysicsConstraintParameters;
|
|
1226
|
+
protected readonly _scene: Scene;
|
|
1227
|
+
protected readonly _limits: readonly Physics6DoFLimit[];
|
|
1228
|
+
private readonly _lite;
|
|
1229
|
+
private readonly _world;
|
|
1230
|
+
constructor(type: PhysicsConstraintType, _options: PhysicsConstraintParameters, _scene: Scene, _limits?: readonly Physics6DoFLimit[]);
|
|
1231
|
+
get options(): PhysicsConstraintParameters;
|
|
1232
|
+
getClassName(): string;
|
|
1217
1233
|
dispose(): void;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/** Axis addressed by a Physics V2 constraint limit. */
|
|
1237
|
+
declare enum PhysicsConstraintAxis {
|
|
1238
|
+
LINEAR_X = 0,
|
|
1239
|
+
LINEAR_Y = 1,
|
|
1240
|
+
LINEAR_Z = 2,
|
|
1241
|
+
ANGULAR_X = 3,
|
|
1242
|
+
ANGULAR_Y = 4,
|
|
1243
|
+
ANGULAR_Z = 5,
|
|
1244
|
+
LINEAR_DISTANCE = 6
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
declare interface PhysicsConstraintParameters {
|
|
1248
|
+
pivotA?: Vec3Like_2;
|
|
1249
|
+
pivotB?: Vec3Like_2;
|
|
1250
|
+
axisA?: Vec3Like_2;
|
|
1251
|
+
axisB?: Vec3Like_2;
|
|
1252
|
+
perpAxisA?: Vec3Like_2;
|
|
1253
|
+
perpAxisB?: Vec3Like_2;
|
|
1254
|
+
maxDistance?: number;
|
|
1255
|
+
collision?: boolean;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/** Type of a Physics V2 constraint. Values match Babylon.js `PhysicsConstraintType`. */
|
|
1259
|
+
declare enum PhysicsConstraintType {
|
|
1260
|
+
BALL_AND_SOCKET = 1,
|
|
1261
|
+
DISTANCE = 2,
|
|
1262
|
+
HINGE = 3,
|
|
1263
|
+
SLIDER = 4,
|
|
1264
|
+
LOCK = 5,
|
|
1265
|
+
PRISMATIC = 6,
|
|
1266
|
+
SIX_DOF = 7
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1218
1269
|
/**
|
|
1219
1270
|
* Babylon.js-shaped Physics V2 engine wrapper returned by
|
|
1220
1271
|
* {@link Scene.getPhysicsEngine}. Holds the active {@link HavokPlugin} and the
|
package/navigation.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { createNavigationPluginAsync, updateNavCrowd, getAgentPosition, addAgent, agentGoto, createNavMesh, addCylinderObstacle, addBoxObstacle, removeObstacle, updateNavMeshObstacles, createDebugNavMeshGeometry, createMeshFromData, addToScene, getClosestPoint, computePath, raycast, createNavCrowd } from "@babylonjs/lite";
|
|
5
|
-
import { V as Vector3, c as Mesh } from "./meshes-
|
|
5
|
+
import { V as Vector3, c as Mesh } from "./meshes-CgaKo90D.js";
|
|
6
6
|
class RecastJSCrowd {
|
|
7
7
|
constructor(lite, plugin, scene) {
|
|
8
8
|
/** @internal */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/lite-compat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0-preview",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Opt-in Babylon.js-shaped compatibility layer implemented on top of the Babylon Lite public API. Provides a migration runway from Babylon.js to Babylon Lite.",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"babylonLiteRelease": {
|
|
50
|
-
"azureBuildId": "
|
|
51
|
-
"sourceVersion": "
|
|
52
|
-
"builtAgainstLite": "1.
|
|
50
|
+
"azureBuildId": "59051",
|
|
51
|
+
"sourceVersion": "64710b56f9dfe175d919c635812f84c8872d467c",
|
|
52
|
+
"builtAgainstLite": "1.28.0"
|
|
53
53
|
}
|
|
54
54
|
}
|