|
@@ -3806,134 +3806,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- class AxesViewer {
|
|
|
|
- private _xline;
|
|
|
|
- private _yline;
|
|
|
|
- private _zline;
|
|
|
|
- private _xmesh;
|
|
|
|
- private _ymesh;
|
|
|
|
- private _zmesh;
|
|
|
|
- scene: Scene;
|
|
|
|
- scaleLines: number;
|
|
|
|
- constructor(scene: Scene, scaleLines?: number);
|
|
|
|
- update(position: Vector3, xaxis: Vector3, yaxis: Vector3, zaxis: Vector3): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- class BoneAxesViewer extends Debug.AxesViewer {
|
|
|
|
- mesh: Mesh;
|
|
|
|
- bone: Bone;
|
|
|
|
- pos: Vector3;
|
|
|
|
- xaxis: Vector3;
|
|
|
|
- yaxis: Vector3;
|
|
|
|
- zaxis: Vector3;
|
|
|
|
- constructor(scene: Scene, bone: Bone, mesh: Mesh, scaleLines?: number);
|
|
|
|
- update(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class DebugLayer {
|
|
|
|
- private _scene;
|
|
|
|
- static InspectorURL: string;
|
|
|
|
- private _inspector;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- /** Creates the inspector window. */
|
|
|
|
- private _createInspector(config?);
|
|
|
|
- isVisible(): boolean;
|
|
|
|
- hide(): void;
|
|
|
|
- show(config?: {
|
|
|
|
- popup?: boolean;
|
|
|
|
- initialTab?: number;
|
|
|
|
- parentElement?: HTMLElement;
|
|
|
|
- newColors?: {
|
|
|
|
- backgroundColor?: string;
|
|
|
|
- backgroundColorLighter?: string;
|
|
|
|
- backgroundColorLighter2?: string;
|
|
|
|
- backgroundColorLighter3?: string;
|
|
|
|
- color?: string;
|
|
|
|
- colorTop?: string;
|
|
|
|
- colorBot?: string;
|
|
|
|
- };
|
|
|
|
- }): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- class PhysicsViewer {
|
|
|
|
- protected _impostors: Array<PhysicsImpostor>;
|
|
|
|
- protected _meshes: Array<AbstractMesh>;
|
|
|
|
- protected _scene: Scene;
|
|
|
|
- protected _numMeshes: number;
|
|
|
|
- protected _physicsEnginePlugin: IPhysicsEnginePlugin;
|
|
|
|
- private _renderFunction;
|
|
|
|
- private _debugBoxMesh;
|
|
|
|
- private _debugSphereMesh;
|
|
|
|
- private _debugMaterial;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- protected _updateDebugMeshes(): void;
|
|
|
|
- showImpostor(impostor: PhysicsImpostor): void;
|
|
|
|
- hideImpostor(impostor: PhysicsImpostor): void;
|
|
|
|
- private _getDebugMaterial(scene);
|
|
|
|
- private _getDebugBoxMesh(scene);
|
|
|
|
- private _getDebugSphereMesh(scene);
|
|
|
|
- private _getDebugMesh(impostor, scene);
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class RayHelper {
|
|
|
|
- ray: Ray;
|
|
|
|
- private _renderPoints;
|
|
|
|
- private _renderLine;
|
|
|
|
- private _renderFunction;
|
|
|
|
- private _scene;
|
|
|
|
- private _updateToMeshFunction;
|
|
|
|
- private _attachedToMesh;
|
|
|
|
- private _meshSpaceDirection;
|
|
|
|
- private _meshSpaceOrigin;
|
|
|
|
- static CreateAndShow(ray: Ray, scene: Scene, color: Color3): RayHelper;
|
|
|
|
- constructor(ray: Ray);
|
|
|
|
- show(scene: Scene, color: Color3): void;
|
|
|
|
- hide(): void;
|
|
|
|
- private _render();
|
|
|
|
- attachToMesh(mesh: AbstractMesh, meshSpaceDirection?: Vector3, meshSpaceOrigin?: Vector3, length?: number): void;
|
|
|
|
- detachFromMesh(): void;
|
|
|
|
- private _updateToMesh();
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- /**
|
|
|
|
- * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
|
|
|
|
- */
|
|
|
|
- class SkeletonViewer {
|
|
|
|
- skeleton: Skeleton;
|
|
|
|
- mesh: AbstractMesh;
|
|
|
|
- autoUpdateBonesMatrices: boolean;
|
|
|
|
- renderingGroupId: number;
|
|
|
|
- color: Color3;
|
|
|
|
- private _scene;
|
|
|
|
- private _debugLines;
|
|
|
|
- private _debugMesh;
|
|
|
|
- private _isEnabled;
|
|
|
|
- private _renderFunction;
|
|
|
|
- constructor(skeleton: Skeleton, mesh: AbstractMesh, scene: Scene, autoUpdateBonesMatrices?: boolean, renderingGroupId?: number);
|
|
|
|
- isEnabled: boolean;
|
|
|
|
- private _getBonePosition(position, bone, meshMat, x?, y?, z?);
|
|
|
|
- private _getLinesForBonesWithLength(bones, meshMat);
|
|
|
|
- private _getLinesForBonesNoLength(bones, meshMat);
|
|
|
|
- update(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class Collider {
|
|
class Collider {
|
|
radius: Vector3;
|
|
radius: Vector3;
|
|
@@ -4592,6 +4464,134 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ class AxesViewer {
|
|
|
|
+ private _xline;
|
|
|
|
+ private _yline;
|
|
|
|
+ private _zline;
|
|
|
|
+ private _xmesh;
|
|
|
|
+ private _ymesh;
|
|
|
|
+ private _zmesh;
|
|
|
|
+ scene: Scene;
|
|
|
|
+ scaleLines: number;
|
|
|
|
+ constructor(scene: Scene, scaleLines?: number);
|
|
|
|
+ update(position: Vector3, xaxis: Vector3, yaxis: Vector3, zaxis: Vector3): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ class BoneAxesViewer extends Debug.AxesViewer {
|
|
|
|
+ mesh: Mesh;
|
|
|
|
+ bone: Bone;
|
|
|
|
+ pos: Vector3;
|
|
|
|
+ xaxis: Vector3;
|
|
|
|
+ yaxis: Vector3;
|
|
|
|
+ zaxis: Vector3;
|
|
|
|
+ constructor(scene: Scene, bone: Bone, mesh: Mesh, scaleLines?: number);
|
|
|
|
+ update(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class DebugLayer {
|
|
|
|
+ private _scene;
|
|
|
|
+ static InspectorURL: string;
|
|
|
|
+ private _inspector;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ /** Creates the inspector window. */
|
|
|
|
+ private _createInspector(config?);
|
|
|
|
+ isVisible(): boolean;
|
|
|
|
+ hide(): void;
|
|
|
|
+ show(config?: {
|
|
|
|
+ popup?: boolean;
|
|
|
|
+ initialTab?: number;
|
|
|
|
+ parentElement?: HTMLElement;
|
|
|
|
+ newColors?: {
|
|
|
|
+ backgroundColor?: string;
|
|
|
|
+ backgroundColorLighter?: string;
|
|
|
|
+ backgroundColorLighter2?: string;
|
|
|
|
+ backgroundColorLighter3?: string;
|
|
|
|
+ color?: string;
|
|
|
|
+ colorTop?: string;
|
|
|
|
+ colorBot?: string;
|
|
|
|
+ };
|
|
|
|
+ }): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ class PhysicsViewer {
|
|
|
|
+ protected _impostors: Array<PhysicsImpostor>;
|
|
|
|
+ protected _meshes: Array<AbstractMesh>;
|
|
|
|
+ protected _scene: Scene;
|
|
|
|
+ protected _numMeshes: number;
|
|
|
|
+ protected _physicsEnginePlugin: IPhysicsEnginePlugin;
|
|
|
|
+ private _renderFunction;
|
|
|
|
+ private _debugBoxMesh;
|
|
|
|
+ private _debugSphereMesh;
|
|
|
|
+ private _debugMaterial;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ protected _updateDebugMeshes(): void;
|
|
|
|
+ showImpostor(impostor: PhysicsImpostor): void;
|
|
|
|
+ hideImpostor(impostor: PhysicsImpostor): void;
|
|
|
|
+ private _getDebugMaterial(scene);
|
|
|
|
+ private _getDebugBoxMesh(scene);
|
|
|
|
+ private _getDebugSphereMesh(scene);
|
|
|
|
+ private _getDebugMesh(impostor, scene);
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class RayHelper {
|
|
|
|
+ ray: Ray;
|
|
|
|
+ private _renderPoints;
|
|
|
|
+ private _renderLine;
|
|
|
|
+ private _renderFunction;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _updateToMeshFunction;
|
|
|
|
+ private _attachedToMesh;
|
|
|
|
+ private _meshSpaceDirection;
|
|
|
|
+ private _meshSpaceOrigin;
|
|
|
|
+ static CreateAndShow(ray: Ray, scene: Scene, color: Color3): RayHelper;
|
|
|
|
+ constructor(ray: Ray);
|
|
|
|
+ show(scene: Scene, color: Color3): void;
|
|
|
|
+ hide(): void;
|
|
|
|
+ private _render();
|
|
|
|
+ attachToMesh(mesh: AbstractMesh, meshSpaceDirection?: Vector3, meshSpaceOrigin?: Vector3, length?: number): void;
|
|
|
|
+ detachFromMesh(): void;
|
|
|
|
+ private _updateToMesh();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ /**
|
|
|
|
+ * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
|
|
|
|
+ */
|
|
|
|
+ class SkeletonViewer {
|
|
|
|
+ skeleton: Skeleton;
|
|
|
|
+ mesh: AbstractMesh;
|
|
|
|
+ autoUpdateBonesMatrices: boolean;
|
|
|
|
+ renderingGroupId: number;
|
|
|
|
+ color: Color3;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _debugLines;
|
|
|
|
+ private _debugMesh;
|
|
|
|
+ private _isEnabled;
|
|
|
|
+ private _renderFunction;
|
|
|
|
+ constructor(skeleton: Skeleton, mesh: AbstractMesh, scene: Scene, autoUpdateBonesMatrices?: boolean, renderingGroupId?: number);
|
|
|
|
+ isEnabled: boolean;
|
|
|
|
+ private _getBonePosition(position, bone, meshMat, x?, y?, z?);
|
|
|
|
+ private _getLinesForBonesWithLength(bones, meshMat);
|
|
|
|
+ private _getLinesForBonesNoLength(bones, meshMat);
|
|
|
|
+ update(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
interface ILoadingScreen {
|
|
interface ILoadingScreen {
|
|
displayLoadingUI: () => void;
|
|
displayLoadingUI: () => void;
|
|
@@ -8740,6 +8740,7 @@ declare module BABYLON {
|
|
showBoundingBox: boolean;
|
|
showBoundingBox: boolean;
|
|
showSubMeshesBoundingBox: boolean;
|
|
showSubMeshesBoundingBox: boolean;
|
|
isBlocker: boolean;
|
|
isBlocker: boolean;
|
|
|
|
+ enablePointerMoveEvents: boolean;
|
|
renderingGroupId: number;
|
|
renderingGroupId: number;
|
|
private _material;
|
|
private _material;
|
|
material: Material;
|
|
material: Material;
|