babylonjs-toolkit 9.12.1011 → 9.14.0
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/lib/babylon.toolkit.d.ts +11 -4
- package/lib/babylon.toolkit.js +1 -1
- package/lib/index.d.ts +11 -4
- package/package.json +15 -15
package/lib/babylon.toolkit.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare namespace TOOLKIT {
|
|
|
7
7
|
* @class SceneManager - All rights reserved (c) 2024 Mackey Kinard
|
|
8
8
|
*/
|
|
9
9
|
class SceneManager {
|
|
10
|
-
/** Gets the toolkit framework version string (9.
|
|
10
|
+
/** Gets the toolkit framework version string (9.14.0 - R1) */
|
|
11
11
|
static get Version(): string;
|
|
12
12
|
/** Gets the toolkit framework copyright notice */
|
|
13
13
|
static get Copyright(): string;
|
|
@@ -35,8 +35,6 @@ declare namespace TOOLKIT {
|
|
|
35
35
|
static AutoUpdateProgress: boolean;
|
|
36
36
|
/** Set the capsule collider shape type */
|
|
37
37
|
static PhysicsCapsuleShape: number;
|
|
38
|
-
/** Set the support srgb buffers flag */
|
|
39
|
-
static SupportSRGBBuffers: boolean;
|
|
40
38
|
/** The animation start mode. Defaults to NONE. */
|
|
41
39
|
static AnimationStartMode: number;
|
|
42
40
|
/** When loading glTF animations, which are defined in seconds, target them to this FPS. Defaults to 60 for new behavior. Set to 1 for old behavior */
|
|
@@ -8587,6 +8585,7 @@ declare namespace TOOLKIT {
|
|
|
8587
8585
|
class NavigationAgent extends TOOLKIT.ScriptComponent {
|
|
8588
8586
|
static TARGET_ANGLE_FACTOR: number;
|
|
8589
8587
|
static ANGULAR_SPEED_RATIO: number;
|
|
8588
|
+
static BRAKING_CUSHION_FACTOR: number;
|
|
8590
8589
|
static GLOBAL_CROWD_INSTANCE: boolean;
|
|
8591
8590
|
private crowd;
|
|
8592
8591
|
private type;
|
|
@@ -8615,6 +8614,7 @@ declare namespace TOOLKIT {
|
|
|
8615
8614
|
private m_reachObserver;
|
|
8616
8615
|
private m_navMeshDestroyObserver;
|
|
8617
8616
|
speed: number;
|
|
8617
|
+
reachRadius: number;
|
|
8618
8618
|
heightOffset: number;
|
|
8619
8619
|
angularSpeed: number;
|
|
8620
8620
|
updatePosition: boolean;
|
|
@@ -8623,8 +8623,10 @@ declare namespace TOOLKIT {
|
|
|
8623
8623
|
velocityEpsilon: number;
|
|
8624
8624
|
offMeshVelocity: number;
|
|
8625
8625
|
stoppingDistance: number;
|
|
8626
|
-
|
|
8626
|
+
minLookAtDistance: number;
|
|
8627
|
+
enableLookAtDistance: boolean;
|
|
8627
8628
|
stuckFrameThreshold: number;
|
|
8629
|
+
updateFlags: number;
|
|
8628
8630
|
isReady(): boolean;
|
|
8629
8631
|
isNavigating(): boolean;
|
|
8630
8632
|
isTeleporting(): boolean;
|
|
@@ -8669,7 +8671,9 @@ declare namespace TOOLKIT {
|
|
|
8669
8671
|
protected destroy(): void;
|
|
8670
8672
|
private awakeNavigationAgent;
|
|
8671
8673
|
private updateNavigationAgent;
|
|
8674
|
+
private getLookAtStopDistance;
|
|
8672
8675
|
private updateAgentParameters;
|
|
8676
|
+
private applyAgentUpdateFlags;
|
|
8673
8677
|
private destroyNavigationAgent;
|
|
8674
8678
|
/** Move agent relative to current position. */
|
|
8675
8679
|
move(offset: BABYLON.Vector3, closetPoint?: boolean): void;
|
|
@@ -8687,6 +8691,9 @@ declare namespace TOOLKIT {
|
|
|
8687
8691
|
setOptimizationRange(range: number): void;
|
|
8688
8692
|
/** Sets agent current collision query range (Defines how close a collision element must be before it is considered for steering behaviors). */
|
|
8689
8693
|
setCollisionQueryRange(range: number): void;
|
|
8694
|
+
/** Sets the Detour crowd update flags bitmask (ANTICIPATE_TURNS=1, OBSTACLE_AVOIDANCE=2,
|
|
8695
|
+
* SEPARATION=4, OPTIMIZE_VIS=8, OPTIMIZE_TOPO=16). Use 0 for a single agent to avoid doorway crawl/stall. */
|
|
8696
|
+
setUpdateFlags(flags: number): void;
|
|
8690
8697
|
/** Sets agent current radius. */
|
|
8691
8698
|
setAgentRadius(radius: number): void;
|
|
8692
8699
|
/** Sets agent current height. */
|