@babylonjs/core 5.0.0-beta.9 → 5.0.0-rc.2
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/Actions/actionEvent.d.ts +3 -4
- package/Actions/actionEvent.js.map +1 -1
- package/Animations/animation.d.ts +4 -4
- package/Animations/animation.js +4 -4
- package/Animations/animation.js.map +1 -1
- package/Audio/sound.d.ts +12 -6
- package/Audio/sound.js +48 -24
- package/Audio/sound.js.map +1 -1
- package/BakedVertexAnimation/vertexAnimationBaker.js +0 -1
- package/BakedVertexAnimation/vertexAnimationBaker.js.map +1 -1
- package/Behaviors/Meshes/baseSixDofDragBehavior.js.map +1 -1
- package/Behaviors/Meshes/pointerDragBehavior.js +5 -0
- package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
- package/Bones/skeleton.js +20 -13
- package/Bones/skeleton.js.map +1 -1
- package/Cameras/Inputs/BaseCameraPointersInput.d.ts +1 -0
- package/Cameras/Inputs/BaseCameraPointersInput.js +4 -3
- package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js +10 -9
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
- package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
- package/Cameras/VR/vrExperienceHelper.js.map +1 -1
- package/Cameras/arcRotateCamera.d.ts +4 -2
- package/Cameras/arcRotateCamera.js +11 -6
- package/Cameras/arcRotateCamera.js.map +1 -1
- package/Cameras/targetCamera.d.ts +1 -0
- package/Cameras/targetCamera.js +1 -0
- package/Cameras/targetCamera.js.map +1 -1
- package/Culling/ray.js +4 -2
- package/Culling/ray.js.map +1 -1
- package/DeviceInput/Helpers/eventFactory.d.ts +6 -6
- package/DeviceInput/Helpers/eventFactory.js +34 -16
- package/DeviceInput/Helpers/eventFactory.js.map +1 -1
- package/DeviceInput/InputDevices/deviceEnums.d.ts +26 -3
- package/DeviceInput/InputDevices/deviceEnums.js +31 -7
- package/DeviceInput/InputDevices/deviceEnums.js.map +1 -1
- package/DeviceInput/InputDevices/deviceSource.d.ts +11 -3
- package/DeviceInput/InputDevices/deviceSource.js.map +1 -1
- package/DeviceInput/InputDevices/deviceSourceManager.d.ts +12 -9
- package/DeviceInput/InputDevices/deviceSourceManager.js +75 -12
- package/DeviceInput/InputDevices/deviceSourceManager.js.map +1 -1
- package/DeviceInput/InputDevices/deviceTypes.d.ts +1 -1
- package/DeviceInput/InputDevices/deviceTypes.js.map +1 -1
- package/DeviceInput/InputDevices/inputInterfaces.d.ts +3 -28
- package/DeviceInput/InputDevices/inputInterfaces.js.map +1 -1
- package/DeviceInput/InputDevices/internalDeviceSourceManager.d.ts +4 -24
- package/DeviceInput/InputDevices/internalDeviceSourceManager.js +27 -91
- package/DeviceInput/InputDevices/internalDeviceSourceManager.js.map +1 -1
- package/DeviceInput/InputDevices/nativeDeviceInputSystem.d.ts +3 -2
- package/DeviceInput/InputDevices/nativeDeviceInputSystem.js +7 -13
- package/DeviceInput/InputDevices/nativeDeviceInputSystem.js.map +1 -1
- package/DeviceInput/InputDevices/webDeviceInputSystem.d.ts +4 -2
- package/DeviceInput/InputDevices/webDeviceInputSystem.js +54 -77
- package/DeviceInput/InputDevices/webDeviceInputSystem.js.map +1 -1
- package/Engines/Extensions/engine.query.d.ts +7 -0
- package/Engines/Extensions/engine.query.js +12 -0
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/Extensions/engine.renderTarget.d.ts +5 -0
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/ICanvas.d.ts +4 -0
- package/Engines/ICanvas.js.map +1 -1
- package/Engines/Native/nativeInterfaces.d.ts +1 -1
- package/Engines/Native/nativeInterfaces.js.map +1 -1
- package/Engines/engine.d.ts +14 -2
- package/Engines/engine.js +25 -0
- package/Engines/engine.js.map +1 -1
- package/Engines/index.d.ts +1 -0
- package/Engines/index.js +1 -0
- package/Engines/index.js.map +1 -1
- package/Engines/nativeEngine.d.ts +8 -0
- package/Engines/nativeEngine.js +38 -10
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +2 -2
- package/Engines/webgpuEngine.js.map +1 -1
- package/Events/deviceInputEvents.d.ts +17 -18
- package/Events/deviceInputEvents.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Helpers/environmentHelper.js +2 -2
- package/Helpers/environmentHelper.js.map +1 -1
- package/Helpers/videoDome.d.ts +8 -0
- package/Helpers/videoDome.js +18 -4
- package/Helpers/videoDome.js.map +1 -1
- package/Inputs/scene.inputManager.js +50 -24
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Layers/effectLayer.d.ts +1 -0
- package/Layers/effectLayer.js +24 -0
- package/Layers/effectLayer.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.d.ts +6 -2
- package/Materials/Node/Blocks/Dual/textureBlock.js +50 -8
- package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
- package/Materials/Node/Blocks/elbowBlock.d.ts +6 -0
- package/Materials/Node/Blocks/elbowBlock.js +25 -0
- package/Materials/Node/Blocks/elbowBlock.js.map +1 -1
- package/Materials/Node/Blocks/simplexPerlin3DBlock.js +1 -0
- package/Materials/Node/Blocks/simplexPerlin3DBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.d.ts +1 -1
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.js +1 -0
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.d.ts +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/dynamicTexture.d.ts +1 -1
- package/Materials/Textures/dynamicTexture.js.map +1 -1
- package/Materials/materialPluginBase.d.ts +5 -0
- package/Materials/materialPluginBase.js +5 -0
- package/Materials/materialPluginBase.js.map +1 -1
- package/Materials/materialPluginEvent.d.ts +1 -0
- package/Materials/materialPluginEvent.js.map +1 -1
- package/Materials/materialPluginManager.d.ts +1 -0
- package/Materials/materialPluginManager.js +20 -15
- package/Materials/materialPluginManager.js.map +1 -1
- package/Materials/standardMaterial.js +1 -0
- package/Materials/standardMaterial.js.map +1 -1
- package/Maths/math.vector.d.ts +5 -0
- package/Maths/math.vector.js +20 -9
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Builders/polygonBuilder.js +2 -1
- package/Meshes/Builders/polygonBuilder.js.map +1 -1
- package/Meshes/Compression/dracoCompression.js +3 -7
- package/Meshes/Compression/dracoCompression.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +1 -1
- package/Meshes/abstractMesh.js +0 -1
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/geometry.js +5 -0
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/instancedMesh.js +7 -4
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/mesh.js +21 -22
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.d.ts +3 -2
- package/Meshes/mesh.vertexData.js +114 -85
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/transformNode.d.ts +3 -3
- package/Meshes/transformNode.js +9 -6
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/fileTools.js +23 -9
- package/Misc/fileTools.js.map +1 -1
- package/Misc/khronosTextureContainer2.d.ts +10 -15
- package/Misc/khronosTextureContainer2.js +31 -60
- package/Misc/khronosTextureContainer2.js.map +1 -1
- package/Misc/videoRecorder.d.ts +1 -1
- package/Misc/videoRecorder.js +1 -1
- package/Misc/videoRecorder.js.map +1 -1
- package/Misc/workerPool.d.ts +37 -3
- package/Misc/workerPool.js +91 -15
- package/Misc/workerPool.js.map +1 -1
- package/Morph/morphTarget.d.ts +2 -1
- package/Morph/morphTarget.js +5 -1
- package/Morph/morphTarget.js.map +1 -1
- package/Morph/morphTargetManager.js +1 -1
- package/Morph/morphTargetManager.js.map +1 -1
- package/Particles/particleSystem.d.ts +13 -1
- package/Particles/particleSystem.js +20 -0
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/pointsCloudSystem.d.ts +1 -1
- package/Particles/pointsCloudSystem.js +1 -1
- package/Particles/pointsCloudSystem.js.map +1 -1
- package/Rendering/prePassRenderer.js +12 -2
- package/Rendering/prePassRenderer.js.map +1 -1
- package/Rendering/subSurfaceConfiguration.js +1 -1
- package/Rendering/subSurfaceConfiguration.js.map +1 -1
- package/Rendering/utilityLayerRenderer.js +2 -0
- package/Rendering/utilityLayerRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/pointCloudVertex.js +1 -1
- package/Shaders/ShadersInclude/pointCloudVertex.js.map +1 -1
- package/Shaders/background.vertex.js +1 -1
- package/Shaders/background.vertex.js.map +1 -1
- package/Shaders/pbr.vertex.js +1 -1
- package/Shaders/pbr.vertex.js.map +1 -1
- package/XR/features/WebXRImageTracking.d.ts +2 -1
- package/XR/features/WebXRImageTracking.js +43 -64
- package/XR/features/WebXRImageTracking.js.map +1 -1
- package/XR/features/WebXRNearInteraction.js +4 -2
- package/XR/features/WebXRNearInteraction.js.map +1 -1
- package/XR/native/nativeXRFrame.d.ts +1 -0
- package/XR/native/nativeXRFrame.js +1 -0
- package/XR/native/nativeXRFrame.js.map +1 -1
- package/XR/webXRSessionManager.js +1 -0
- package/XR/webXRSessionManager.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +1 -10
- package/scene.js +36 -39
- package/scene.js.map +1 -1
- package/types.d.ts +1 -1
- package/types.js.map +1 -1
package/Actions/actionEvent.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Nullable } from "../types";
|
|
|
3
3
|
import { Sprite } from "../Sprites/sprite";
|
|
4
4
|
import { Scene } from "../scene";
|
|
5
5
|
import { Vector2 } from "../Maths/math.vector";
|
|
6
|
-
import { IEvent } from "../Events/deviceInputEvents";
|
|
7
6
|
/**
|
|
8
7
|
* Interface used to define ActionEvent
|
|
9
8
|
*/
|
|
@@ -66,7 +65,7 @@ export declare class ActionEvent implements IActionEvent {
|
|
|
66
65
|
* @param additionalData additional data for the event
|
|
67
66
|
* @returns the new ActionEvent
|
|
68
67
|
*/
|
|
69
|
-
static CreateNew(source: AbstractMesh, evt?:
|
|
68
|
+
static CreateNew(source: AbstractMesh, evt?: any, additionalData?: any): ActionEvent;
|
|
70
69
|
/**
|
|
71
70
|
* Helper function to auto-create an ActionEvent from a source sprite
|
|
72
71
|
* @param source The source sprite that triggered the event
|
|
@@ -75,14 +74,14 @@ export declare class ActionEvent implements IActionEvent {
|
|
|
75
74
|
* @param additionalData additional data for the event
|
|
76
75
|
* @returns the new ActionEvent
|
|
77
76
|
*/
|
|
78
|
-
static CreateNewFromSprite(source: Sprite, scene: Scene, evt?:
|
|
77
|
+
static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: any, additionalData?: any): ActionEvent;
|
|
79
78
|
/**
|
|
80
79
|
* Helper function to auto-create an ActionEvent from a scene. If triggered by a mesh use ActionEvent.CreateNew
|
|
81
80
|
* @param scene the scene where the event occurred
|
|
82
81
|
* @param evt The original (browser) event
|
|
83
82
|
* @returns the new ActionEvent
|
|
84
83
|
*/
|
|
85
|
-
static CreateNewFromScene(scene: Scene, evt:
|
|
84
|
+
static CreateNewFromScene(scene: Scene, evt: any): ActionEvent;
|
|
86
85
|
/**
|
|
87
86
|
* Helper function to auto-create an ActionEvent from a primitive
|
|
88
87
|
* @param prim defines the target primitive
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionEvent.js","sourceRoot":"","sources":["../../../sourceES6/core/Actions/actionEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actionEvent.js","sourceRoot":"","sources":["../../../sourceES6/core/Actions/actionEvent.ts"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH;IACI,mDAAmD;IAC5C,MAAW;IAClB,2DAA2D;IACpD,QAAgB;IACvB,2DAA2D;IACpD,QAAgB;IACvB,0DAA0D;IACnD,gBAAwC;IAC/C,kEAAkE;IAC3D,WAAiB;IACxB,oCAAoC;IAC7B,cAAoB;QAVpB,WAAM,GAAN,MAAM,CAAK;QAEX,aAAQ,GAAR,QAAQ,CAAQ;QAEhB,aAAQ,GAAR,QAAQ,CAAQ;QAEhB,qBAAgB,GAAhB,gBAAgB,CAAwB;QAExC,gBAAW,GAAX,WAAW,CAAM;QAEjB,mBAAc,GAAd,cAAc,CAAM;IAC/B,CAAC;IAED;;;;;;OAMG;IACW,qBAAS,GAAvB,UAAwB,MAAoB,EAAE,GAAS,EAAE,cAAoB;QACzE,IAAI,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,IAAI,MAAM,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IAC1H,CAAC;IAED;;;;;;;OAOG;IACW,+BAAmB,GAAjC,UAAkC,MAAc,EAAE,KAAY,EAAE,GAAS,EAAE,cAAoB;QAC3F,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IAChH,CAAC;IAED;;;;;OAKG;IACW,8BAAkB,GAAhC,UAAiC,KAAY,EAAE,GAAQ;QACnD,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;OAOG;IACW,kCAAsB,GAApC,UAAqC,IAAS,EAAE,UAAmB,EAAE,GAAW,EAAE,cAAoB;QAClG,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxF,CAAC;IACL,kBAAC;AAAD,CAAC,AAtED,IAsEC","sourcesContent":["import { AbstractMesh } from \"../Meshes/abstractMesh\";\r\nimport { Nullable } from \"../types\";\r\nimport { Sprite } from \"../Sprites/sprite\";\r\nimport { Scene } from \"../scene\";\r\nimport { Vector2 } from \"../Maths/math.vector\";\r\n\r\n/**\r\n * Interface used to define ActionEvent\r\n */\r\nexport interface IActionEvent {\r\n /** The mesh or sprite that triggered the action */\r\n source: any;\r\n /** The X mouse cursor position at the time of the event */\r\n pointerX: number;\r\n /** The Y mouse cursor position at the time of the event */\r\n pointerY: number;\r\n /** The mesh that is currently pointed at (can be null) */\r\n meshUnderPointer: Nullable<AbstractMesh>;\r\n /** the original (browser) event that triggered the ActionEvent */\r\n sourceEvent?: any;\r\n /** additional data for the event */\r\n additionalData?: any;\r\n}\r\n\r\n/**\r\n * ActionEvent is the event being sent when an action is triggered.\r\n */\r\nexport class ActionEvent implements IActionEvent {\r\n /**\r\n * Creates a new ActionEvent\r\n * @param source The mesh or sprite that triggered the action\r\n * @param pointerX The X mouse cursor position at the time of the event\r\n * @param pointerY The Y mouse cursor position at the time of the event\r\n * @param meshUnderPointer The mesh that is currently pointed at (can be null)\r\n * @param sourceEvent the original (browser) event that triggered the ActionEvent\r\n * @param additionalData additional data for the event\r\n */\r\n constructor(\r\n /** The mesh or sprite that triggered the action */\r\n public source: any,\r\n /** The X mouse cursor position at the time of the event */\r\n public pointerX: number,\r\n /** The Y mouse cursor position at the time of the event */\r\n public pointerY: number,\r\n /** The mesh that is currently pointed at (can be null) */\r\n public meshUnderPointer: Nullable<AbstractMesh>,\r\n /** the original (browser) event that triggered the ActionEvent */\r\n public sourceEvent?: any,\r\n /** additional data for the event */\r\n public additionalData?: any) {\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source mesh.\r\n * @param source The source mesh that triggered the event\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNew(source: AbstractMesh, evt?: any, additionalData?: any): ActionEvent {\r\n var scene = source.getScene();\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer || source, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a source sprite\r\n * @param source The source sprite that triggered the event\r\n * @param scene Scene associated with the sprite\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromSprite(source: Sprite, scene: Scene, evt?: any, additionalData?: any): ActionEvent {\r\n return new ActionEvent(source, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt, additionalData);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a scene. If triggered by a mesh use ActionEvent.CreateNew\r\n * @param scene the scene where the event occurred\r\n * @param evt The original (browser) event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromScene(scene: Scene, evt: any): ActionEvent {\r\n return new ActionEvent(null, scene.pointerX, scene.pointerY, scene.meshUnderPointer, evt);\r\n }\r\n\r\n /**\r\n * Helper function to auto-create an ActionEvent from a primitive\r\n * @param prim defines the target primitive\r\n * @param pointerPos defines the pointer position\r\n * @param evt The original (browser) event\r\n * @param additionalData additional data for the event\r\n * @returns the new ActionEvent\r\n */\r\n public static CreateNewFromPrimitive(prim: any, pointerPos: Vector2, evt?: Event, additionalData?: any): ActionEvent {\r\n return new ActionEvent(prim, pointerPos.x, pointerPos.y, null, evt, additionalData);\r\n }\r\n}"]}
|
|
@@ -297,7 +297,7 @@ export declare class Animation {
|
|
|
297
297
|
* Interpolates a Vector3 linearly
|
|
298
298
|
* @param startValue Start value of the animation curve
|
|
299
299
|
* @param endValue End value of the animation curve
|
|
300
|
-
* @param gradient Scalar amount to interpolate
|
|
300
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
301
301
|
* @returns Interpolated scalar value
|
|
302
302
|
*/
|
|
303
303
|
vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
|
|
@@ -307,7 +307,7 @@ export declare class Animation {
|
|
|
307
307
|
* @param outTangent End tangent of the animation
|
|
308
308
|
* @param endValue End value of the animation curve
|
|
309
309
|
* @param inTangent Start tangent of the animation curve
|
|
310
|
-
* @param gradient Scalar amount to interpolate
|
|
310
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
311
311
|
* @returns InterpolatedVector3 value
|
|
312
312
|
*/
|
|
313
313
|
vector3InterpolateFunctionWithTangents(startValue: Vector3, outTangent: Vector3, endValue: Vector3, inTangent: Vector3, gradient: number): Vector3;
|
|
@@ -315,7 +315,7 @@ export declare class Animation {
|
|
|
315
315
|
* Interpolates a Vector2 linearly
|
|
316
316
|
* @param startValue Start value of the animation curve
|
|
317
317
|
* @param endValue End value of the animation curve
|
|
318
|
-
* @param gradient Scalar amount to interpolate
|
|
318
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
319
319
|
* @returns Interpolated Vector2 value
|
|
320
320
|
*/
|
|
321
321
|
vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
|
|
@@ -325,7 +325,7 @@ export declare class Animation {
|
|
|
325
325
|
* @param outTangent End tangent of the animation
|
|
326
326
|
* @param endValue End value of the animation curve
|
|
327
327
|
* @param inTangent Start tangent of the animation curve
|
|
328
|
-
* @param gradient Scalar amount to interpolate
|
|
328
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
329
329
|
* @returns Interpolated Vector2 value
|
|
330
330
|
*/
|
|
331
331
|
vector2InterpolateFunctionWithTangents(startValue: Vector2, outTangent: Vector2, endValue: Vector2, inTangent: Vector2, gradient: number): Vector2;
|
package/Animations/animation.js
CHANGED
|
@@ -621,7 +621,7 @@ var Animation = /** @class */ (function () {
|
|
|
621
621
|
* Interpolates a Vector3 linearly
|
|
622
622
|
* @param startValue Start value of the animation curve
|
|
623
623
|
* @param endValue End value of the animation curve
|
|
624
|
-
* @param gradient Scalar amount to interpolate
|
|
624
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
625
625
|
* @returns Interpolated scalar value
|
|
626
626
|
*/
|
|
627
627
|
Animation.prototype.vector3InterpolateFunction = function (startValue, endValue, gradient) {
|
|
@@ -633,7 +633,7 @@ var Animation = /** @class */ (function () {
|
|
|
633
633
|
* @param outTangent End tangent of the animation
|
|
634
634
|
* @param endValue End value of the animation curve
|
|
635
635
|
* @param inTangent Start tangent of the animation curve
|
|
636
|
-
* @param gradient Scalar amount to interpolate
|
|
636
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
637
637
|
* @returns InterpolatedVector3 value
|
|
638
638
|
*/
|
|
639
639
|
Animation.prototype.vector3InterpolateFunctionWithTangents = function (startValue, outTangent, endValue, inTangent, gradient) {
|
|
@@ -643,7 +643,7 @@ var Animation = /** @class */ (function () {
|
|
|
643
643
|
* Interpolates a Vector2 linearly
|
|
644
644
|
* @param startValue Start value of the animation curve
|
|
645
645
|
* @param endValue End value of the animation curve
|
|
646
|
-
* @param gradient Scalar amount to interpolate
|
|
646
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
647
647
|
* @returns Interpolated Vector2 value
|
|
648
648
|
*/
|
|
649
649
|
Animation.prototype.vector2InterpolateFunction = function (startValue, endValue, gradient) {
|
|
@@ -655,7 +655,7 @@ var Animation = /** @class */ (function () {
|
|
|
655
655
|
* @param outTangent End tangent of the animation
|
|
656
656
|
* @param endValue End value of the animation curve
|
|
657
657
|
* @param inTangent Start tangent of the animation curve
|
|
658
|
-
* @param gradient Scalar amount to interpolate
|
|
658
|
+
* @param gradient Scalar amount to interpolate (value between 0 and 1)
|
|
659
659
|
* @returns Interpolated Vector2 value
|
|
660
660
|
*/
|
|
661
661
|
Animation.prototype.vector2InterpolateFunctionWithTangents = function (startValue, outTangent, endValue, inTangent, gradient) {
|