@babylonjs-toolkit/next 9.28.0 → 9.30.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/project.d.ts CHANGED
@@ -1,1125 +1,9 @@
1
1
  import type * as BABYLON from "@babylonjs/core/Legacy/legacy";
2
2
  declare const BABYLON: any;
3
- import { ScriptComponent, AudioSource, RigidbodyPhysics, AnimationState, ShurikenParticles, IUnityVector3, IUnityVector4, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterial, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader, CharacterController } from './scenemanager';
3
+ import { ScriptComponent, IUnityVector3, IUnityVector4, AudioSource, RigidbodyPhysics, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterial, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader } from './scenemanager';
4
4
  import { LocalMessageBus } from './localmessagebus';
5
5
  import { NoiseFunction2D } from './noisefunction2d';
6
6
  import { TouchJoystickHandler } from './touchjoystickhandler';
7
- export declare const KART_FINISH_LINE_TAG: string;
8
- export declare const KART_STOP_DRIFT_ROT_SECONDS: number;
9
- export declare const KART_STOP_DRIFT_ROT_RATE: number;
10
- export declare const KART_CHECKPOINT_RESPAWN_LIFT: number;
11
- export interface IKartCheckpoint {
12
- node: BABYLON.TransformNode;
13
- position?: {
14
- x: number;
15
- y: number;
16
- z: number;
17
- };
18
- respawnPosition?: {
19
- x: number;
20
- y: number;
21
- z: number;
22
- };
23
- heading?: number;
24
- }
25
- export declare class KartLapCounter extends ScriptComponent {
26
- LAPCOUNT: number;
27
- currentCheckpointVal: number;
28
- totalCheckpointVal: number;
29
- checkpointsVisited: boolean[];
30
- distanceToNextCheckpoint: number;
31
- Position: number;
32
- endPosition: number;
33
- isPlayer: boolean;
34
- protected checkpoints: IKartCheckpoint[];
35
- protected kart: any;
36
- race: any;
37
- protected awake(): void;
38
- protected start(): void;
39
- protected resolveKart(): any;
40
- setCheckpoints(checkpoints: IKartCheckpoint[]): void;
41
- getCheckpoints(): IKartCheckpoint[];
42
- checkAllPoints(): boolean;
43
- protected onTimingTrigger(other: BABYLON.TransformNode): void;
44
- protected applyRespawnPoint(checkpoint: IKartCheckpoint): void;
45
- protected checkpointPosition(checkpoint: IKartCheckpoint): BABYLON.Vector3;
46
- protected checkpointRespawnPosition(checkpoint: IKartCheckpoint): BABYLON.Vector3;
47
- protected checkpointRotation(checkpoint: IKartCheckpoint): BABYLON.Quaternion;
48
- protected update(): void;
49
- tick(dt: number): void;
50
- protected checkForFinish(): void;
51
- isStopDriftRotRunning(): boolean;
52
- protected calculateDist(): void;
53
- resetLaps(): void;
54
- }
55
- export declare class KartOutOfBounds extends ScriptComponent {
56
- FellInWater: boolean;
57
- outOfBounds: boolean;
58
- PlayerBeingMoved: boolean;
59
- private kart;
60
- protected awake(): void;
61
- protected start(): void;
62
- protected update(): void;
63
- private findKart;
64
- }
65
- export declare const COUNTDOWN_CLIP_SPEED: number;
66
- export declare enum EKartCountdownEvent {
67
- Beep = 0,
68
- Go = 1,
69
- Start = 2
70
- }
71
- export interface IKartCountdownBeat {
72
- kind: EKartCountdownEvent;
73
- at: number;
74
- }
75
- export declare const KART_COUNTDOWN_BEATS: IKartCountdownBeat[];
76
- export declare const KART_COUNTDOWN_LENGTH: number;
77
- export declare const KART_POSITION_SORT_INTERVAL: number;
78
- export declare class KartRaceManager extends ScriptComponent {
79
- RACE_STARTED: boolean;
80
- RACE_COMPLETED: boolean;
81
- countDownTime: number;
82
- RaceTime: number;
83
- MAXLAPS: number;
84
- lapCounters: any[];
85
- sortedRacers: any[];
86
- onCountdownBeep: ((index: number) => void) | null;
87
- onGoSound: (() => void) | null;
88
- onRaceStart: (() => void) | null;
89
- private countDownClockRunning;
90
- private countdownBeat;
91
- private sortTime;
92
- protected awake(): void;
93
- startCountdown(): void;
94
- isCountdownRunning(): boolean;
95
- getCountdownBeat(): number;
96
- getBeepCount(): number;
97
- tick(dt: number): void;
98
- private fireCountdownBeats;
99
- private dispatchBeat;
100
- calculateRacerPosition(): void;
101
- getSortedRacers(): any[];
102
- resetRace(): void;
103
- }
104
- declare abstract class KartVolume extends ScriptComponent {
105
- protected readProperties(names: string[]): void;
106
- }
107
- export declare class KartAntiGravityVolume extends KartVolume {
108
- rotateCam: boolean;
109
- rotAmountX: number;
110
- rotAmountZ: number;
111
- canUseBullet: boolean;
112
- protected awake(): void;
113
- }
114
- export declare class KartAntiGravityExitVolume extends KartVolume {
115
- rotateX: boolean;
116
- rotateY: boolean;
117
- rotateZ: boolean;
118
- newRotation: BABYLON.Vector3;
119
- protected awake(): void;
120
- }
121
- export declare class KartGliderVolume extends KartVolume {
122
- glideAngle: number;
123
- glideAngleX: number;
124
- protected awake(): void;
125
- }
126
- export declare class KartGliderPanel extends KartVolume {
127
- }
128
- export declare class KartJumpPanel extends KartVolume {
129
- upforce: number;
130
- downforce: number;
131
- protected awake(): void;
132
- }
133
- export declare class KartJumpPanelRotate extends KartVolume {
134
- rotateY: number;
135
- rotateZ: number;
136
- protected awake(): void;
137
- }
138
- export declare class KartTrickVolume extends KartVolume {
139
- }
140
- export declare class KartAirForceVolume extends KartVolume {
141
- force: number;
142
- relativeForce: boolean;
143
- isForAir: boolean;
144
- isForRaceEnd: boolean;
145
- isONLYforRaceEnd: boolean;
146
- protected awake(): void;
147
- }
148
- export declare class KartBoostPad extends KartVolume {
149
- duration: number;
150
- protected awake(): void;
151
- }
152
- export declare class KartCancelDownForce extends KartVolume {
153
- }
154
- export declare class KartDirtSurface extends KartVolume {
155
- maxSpeed: number;
156
- protected awake(): void;
157
- }
158
- export type KartAudioGroup = "engine" | "drift" | "boost" | "hop" | "trick" | "glider" | "impact" | "start" | "item" | "race" | "hover" | "results";
159
- export interface IKartVoiceSlot {
160
- id: string;
161
- unity: string;
162
- group: KartAudioGroup;
163
- sourceName: string;
164
- volume: number;
165
- looping: boolean;
166
- waveform: string;
167
- frequency: number;
168
- gain: number;
169
- attack: number;
170
- release: number;
171
- }
172
- export declare const KART_VOICE_SLOTS: IKartVoiceSlot[];
173
- export interface IKartVoiceRota {
174
- prefix: string;
175
- count: number;
176
- unity: string;
177
- group: KartAudioGroup;
178
- sourceName: string;
179
- volume: number;
180
- waveform: string;
181
- frequency: number;
182
- spread: number;
183
- gain: number;
184
- attack: number;
185
- release: number;
186
- }
187
- export declare const KART_VOICE_ROTAS: IKartVoiceRota[];
188
- export declare function buildKartVoiceSlots(counts?: any): IKartVoiceSlot[];
189
- export interface IKartAudioVoice {
190
- play(): void;
191
- playDelayed(delaySeconds: number): void;
192
- stop(): void;
193
- isPlaying(): boolean;
194
- setPitch(value: number): void;
195
- setVolume(value: number): void;
196
- advance(dt: number): void;
197
- dispose(): void;
198
- getPlayCount(): number;
199
- getLastDelay(): number;
200
- }
201
- export declare class KartSynthVoice implements IKartAudioVoice {
202
- private static SharedContext;
203
- private static ContextUnavailable;
204
- private remaining;
205
- private readonly waveform;
206
- private readonly frequency;
207
- private readonly baseGain;
208
- private readonly looping;
209
- private readonly attack;
210
- private readonly release;
211
- private oscillator;
212
- private gainNode;
213
- private playing;
214
- private pitch;
215
- private volume;
216
- private playCount;
217
- private lastDelay;
218
- constructor(waveform: string, frequency: number, gain: number, looping: boolean, attack?: number, release?: number);
219
- private static GetContext;
220
- static ResetContext(): void;
221
- play(): void;
222
- playDelayed(delaySeconds: number): void;
223
- stop(): void;
224
- isPlaying(): boolean;
225
- advance(dt: number): void;
226
- setPitch(value: number): void;
227
- setVolume(value: number): void;
228
- dispose(): void;
229
- getPlayCount(): number;
230
- getLastDelay(): number;
231
- private startNodes;
232
- private stopNodes;
233
- }
234
- export declare class KartClipVoice implements IKartAudioVoice {
235
- private readonly source;
236
- private readonly duration;
237
- private remaining;
238
- private playing;
239
- private playCount;
240
- private lastDelay;
241
- constructor(source: any, duration?: number);
242
- play(): void;
243
- playDelayed(delaySeconds: number): void;
244
- stop(): void;
245
- isPlaying(): boolean;
246
- advance(dt: number): void;
247
- setPitch(value: number): void;
248
- setVolume(value: number): void;
249
- dispose(): void;
250
- getPlayCount(): number;
251
- getLastDelay(): number;
252
- }
253
- export declare class KartManagedVoice implements IKartAudioVoice {
254
- private readonly soundName;
255
- private readonly duration;
256
- private playing;
257
- private remaining;
258
- private playCount;
259
- private lastDelay;
260
- constructor(soundName: string, duration?: number);
261
- play(): void;
262
- playDelayed(delaySeconds: number): void;
263
- stop(): void;
264
- isPlaying(): boolean;
265
- setPitch(_value: number): void;
266
- setVolume(_value: number): void;
267
- advance(dt: number): void;
268
- dispose(): void;
269
- getPlayCount(): number;
270
- getLastDelay(): number;
271
- getSoundName(): string;
272
- }
273
- export interface IKartAudioTarget {
274
- getDriftState(): number;
275
- getDriftTime(): number;
276
- getDriftTierTimes?(): number[];
277
- getDriftDirection(): number;
278
- getCurrentSpeed(): number;
279
- isBoosting(): boolean;
280
- getBoostTime(): number;
281
- getBoostGrantCount?(): number;
282
- getLastBoostSource?(): number;
283
- isGliding(): boolean;
284
- isJumpPanelling?(): boolean;
285
- isTricking?(): boolean;
286
- isTrickPending?(): boolean;
287
- isGrounded?(): boolean;
288
- getGlidingTime?(): number;
289
- isGliderTrick?(): boolean;
290
- getLaunchCharge?(): number;
291
- isRaceCompleted?(): boolean;
292
- }
293
- export declare class StandardKartAudio extends ScriptComponent {
294
- kart: IKartAudioTarget;
295
- audioEnabled: boolean;
296
- playKartSounds: boolean;
297
- driftAudioEnabled: boolean;
298
- engineAudioEnabled: boolean;
299
- boostAudioEnabled: boolean;
300
- hopAudioEnabled: boolean;
301
- trickAudioEnabled: boolean;
302
- gliderAudioEnabled: boolean;
303
- impactAudioEnabled: boolean;
304
- startAudioEnabled: boolean;
305
- masterVolume: number;
306
- boostVoiceCount: number;
307
- tierTonePitchStep: boolean;
308
- trickVoiceCount: number;
309
- driftSteerSourceName: string;
310
- driftChargeSourceName: string;
311
- engineSourceName: string;
312
- idleSourceName: string;
313
- boostSourceNamePrefix: string;
314
- hopSourceName: string;
315
- landSkidSourceName: string;
316
- chassisSourceName: string;
317
- jumpPanelSourceName: string;
318
- gliderStartSourceName: string;
319
- gliderFlutterSourceName: string;
320
- gliderCloseSourceName: string;
321
- startRevSourceName: string;
322
- startDashSourceName: string;
323
- gliderVoiceSourceName: string;
324
- trickVoiceNamePrefix: string;
325
- protected driftSteerVoice: IKartAudioVoice;
326
- protected driftChargeVoice: IKartAudioVoice;
327
- protected engineVoice: IKartAudioVoice;
328
- protected idleVoice: IKartAudioVoice;
329
- protected boostVoices: IKartAudioVoice[];
330
- protected hopVoice: IKartAudioVoice;
331
- protected landSkidVoice: IKartAudioVoice;
332
- protected chassisVoice: IKartAudioVoice;
333
- protected jumpPanelVoice: IKartAudioVoice;
334
- protected gliderStartVoice: IKartAudioVoice;
335
- protected gliderFlutterVoice: IKartAudioVoice;
336
- protected gliderCloseVoice: IKartAudioVoice;
337
- protected startRevVoice: IKartAudioVoice;
338
- protected startDashVoice: IKartAudioVoice;
339
- protected gliderTrickVoice: IKartAudioVoice;
340
- protected trickVoices: IKartAudioVoice[];
341
- protected voices: Map<string, IKartAudioVoice>;
342
- protected slots: Map<string, IKartVoiceSlot>;
343
- protected mutedVoices: Set<string>;
344
- protected mutedGroups: Set<string>;
345
- voiceSourceNames: any;
346
- voiceClips: any;
347
- voiceSoundNames: any;
348
- voiceTunings: any;
349
- voiceVolumes: any;
350
- protected rotaCursors: any;
351
- protected soundCount: number;
352
- protected lastBoostTime: number;
353
- protected lastBoostGrantCount: number;
354
- protected lastChargeTier: number;
355
- protected engineTime: number;
356
- protected enginePitch: number;
357
- protected chargeRetriggerCount: number;
358
- protected lastDriftState: number;
359
- protected lastJumpPanel: boolean;
360
- protected lastTricking: boolean;
361
- protected lastGrounded: boolean;
362
- protected lastGliding: boolean;
363
- protected lastGliderTrick: boolean;
364
- protected trickAnimCounter: number;
365
- protected hopCount: number;
366
- protected trickVoiceCountFired: number;
367
- protected landCount: number;
368
- protected awake(): void;
369
- protected start(): void;
370
- protected update(): void;
371
- protected destroy(): void;
372
- protected awakeAudioState(): void;
373
- protected initAudioState(): void;
374
- protected seedEdgeLedger(): void;
375
- protected destroyAudioState(): void;
376
- static SlotDuration(slot: IKartVoiceSlot): number;
377
- protected tuneSlot(slot: IKartVoiceSlot): IKartVoiceSlot;
378
- protected resolveSlot(slot: IKartVoiceSlot): IKartAudioVoice;
379
- protected buildClipSource(slot: IKartVoiceSlot, clip: any): IKartAudioVoice;
380
- protected loadClipSource(source: any, filename: string): void;
381
- protected bindVoiceAliases(): void;
382
- protected collectRota(prefix: string): IKartAudioVoice[];
383
- protected findChildNode(name: string): BABYLON.TransformNode;
384
- protected forEachVoice(callback: (voice: IKartAudioVoice) => void): void;
385
- protected updateAudioState(): void;
386
- protected tickHopAudio(): void;
387
- protected tickJumpPanelAudio(): void;
388
- protected tickTrickAudio(): void;
389
- static VoiceForCounter(counter: number, length: number): number;
390
- protected tickImpactAudio(): void;
391
- protected tickGliderAudio(): void;
392
- protected tickStartAudio(): void;
393
- protected tickDriftAudio(): void;
394
- protected tickBoostAudio(): void;
395
- static SourceSpeaks(source: number): boolean;
396
- protected checkIfPlaying(): boolean;
397
- protected tickEngineAudio(dt: number): void;
398
- static EngineBandTime(speed: number, current: number): number;
399
- getDriftSteerVoice(): IKartAudioVoice;
400
- getDriftChargeVoice(): IKartAudioVoice;
401
- getEngineVoice(): IKartAudioVoice;
402
- getIdleVoice(): IKartAudioVoice;
403
- getBoostVoices(): IKartAudioVoice[];
404
- getChargeRetriggerCount(): number;
405
- getSoundCount(): number;
406
- getEngineTime(): number;
407
- getEnginePitch(): number;
408
- getHopVoice(): IKartAudioVoice;
409
- getLandSkidVoice(): IKartAudioVoice;
410
- getChassisVoice(): IKartAudioVoice;
411
- getJumpPanelVoice(): IKartAudioVoice;
412
- getGliderStartVoice(): IKartAudioVoice;
413
- getGliderFlutterVoice(): IKartAudioVoice;
414
- getGliderCloseVoice(): IKartAudioVoice;
415
- getStartRevVoice(): IKartAudioVoice;
416
- getStartDashVoice(): IKartAudioVoice;
417
- getGliderTrickVoice(): IKartAudioVoice;
418
- getTrickVoices(): IKartAudioVoice[];
419
- getTrickAnimCounter(): number;
420
- getHopCount(): number;
421
- getTrickVoiceFiredCount(): number;
422
- getLandCount(): number;
423
- getVoiceIds(): string[];
424
- getVoice(id: string): IKartAudioVoice;
425
- getVoiceSlot(id: string): IKartVoiceSlot;
426
- setVoice(id: string, voice: IKartAudioVoice): void;
427
- setVoiceSource(id: string, source: any, duration?: number): void;
428
- setVoiceEnabled(id: string, enabled: boolean): void;
429
- isVoiceEnabled(id: string): boolean;
430
- setGroupEnabled(group: KartAudioGroup, enabled: boolean): void;
431
- isGroupEnabled(group: KartAudioGroup): boolean;
432
- playVoice(id: string, volumeScale?: number): boolean;
433
- stopVoice(id: string): void;
434
- isVoicePlaying(id: string): boolean;
435
- playRota(prefix: string, volumeScale?: number): boolean;
436
- playCoin(volumeScale?: number): boolean;
437
- playBump(volumeScale?: number): boolean;
438
- playItemHit(volumeScale?: number): boolean;
439
- playObstacleHit(volumeScale?: number): boolean;
440
- playHurt(volumeScale?: number): boolean;
441
- playStar(volumeScale?: number): boolean;
442
- playBullet(phase: number, volumeScale?: number): boolean;
443
- playHoverEnter(volumeScale?: number): boolean;
444
- playHoverCharge(volumeScale?: number): boolean;
445
- playHoverFinish(volumeScale?: number): boolean;
446
- playFinish(volumeScale?: number): boolean;
447
- playResults(position: number): void;
448
- setSurfaceDrift(active: boolean): void;
449
- }
450
- export interface IKartCameraTarget {
451
- isPlayerBeingMoved(): boolean;
452
- isAntiGravity(): boolean;
453
- getAntiGravityRotAmountX?(): number;
454
- getAntiGravityRotAmountZ?(): number;
455
- isAntiGravityCamRotate?(): boolean;
456
- isGliding(): boolean;
457
- getGlideAngleX?(): number;
458
- getGlideAngleZ?(): number;
459
- isBoosting(): boolean;
460
- isJumpPanelling(): boolean;
461
- isTrickPending?(): boolean;
462
- }
463
- export declare class StandardKartCamera extends ScriptComponent {
464
- player: BABYLON.TransformNode;
465
- playerNodeName: string;
466
- kart: IKartCameraTarget;
467
- camera: any;
468
- race: any;
469
- raceStarted: boolean;
470
- raceCompleted: boolean;
471
- raceEndFOV: number;
472
- followRate: number;
473
- jumpPanelRate: number;
474
- glideRate: number;
475
- trickLevelRate: number;
476
- childRate: number;
477
- boostDollyRate: number;
478
- raceEndReturnRate: number;
479
- heightOffset: number;
480
- orig_pos: BABYLON.Vector3;
481
- boost_pos: BABYLON.Vector3;
482
- defaultChildPitch: number;
483
- antiGravityPosY: number;
484
- antiGravityTailSeconds: number;
485
- rotAmountX: number;
486
- rotAmountZ: number;
487
- rotateCamAntiGravity: boolean;
488
- glideAngleX: number;
489
- glideAngleZ: number;
490
- protected child: BABYLON.TransformNode;
491
- protected antiGravityTail: number;
492
- private readonly targetRotation;
493
- private readonly childTarget;
494
- private readonly rigPosition;
495
- private readonly childPosition;
496
- protected awake(): void;
497
- protected start(): void;
498
- protected late(): void;
499
- protected destroy(): void;
500
- protected awakeCameraState(): void;
501
- protected initCameraState(): void;
502
- protected lateCameraState(): void;
503
- protected applyRaceEndFraming(raceCompleted: boolean): void;
504
- protected destroyCameraState(): void;
505
- protected updateRigPosition(antiGravity: boolean, gliding: boolean, raceCompleted: boolean): void;
506
- protected playerYaw(): number;
507
- protected isTrickPending(): boolean;
508
- protected updateRigRotation(dt: number, gliding: boolean, jumpPanel: boolean, trickPending: boolean, antiGravity: boolean, raceStarted: boolean): void;
509
- protected copyPlayerRotationTo(out: BABYLON.Quaternion): void;
510
- protected volumeRotAmountX(): number;
511
- protected isRaceStarted(): boolean;
512
- protected isRaceCompleted(): boolean;
513
- protected volumeRotAmountZ(): number;
514
- protected volumeGlideAngleX(): number;
515
- protected volumeGlideAngleZ(): number;
516
- protected isAntiGravityCamRotate(): boolean;
517
- protected updateChildRotation(dt: number, leaning: boolean): void;
518
- protected lerpChildTo(target: BABYLON.Vector3, k: number, leaning: boolean): void;
519
- protected updateChildPosition(dt: number, boosting: boolean, trickPending: boolean, leaning: boolean, raceCompleted: boolean): void;
520
- protected writeCamera(): void;
521
- getChild(): BABYLON.TransformNode;
522
- getAntiGravityTail(): number;
523
- getChildTargetY(boosting: boolean, trickPending?: boolean, dt?: number, raceCompleted?: boolean): number;
524
- isLeaning(): boolean;
525
- isUsingLocalUp(): boolean;
526
- getLeanAngle(): number;
527
- getHorizonTilt(): number;
528
- }
529
- export declare const UNITY_FIXED_STEP: number;
530
- export declare function approachRate(current: number, target: number, ratePerSecond: number, dt: number): number;
531
- export declare function approachPerStep(current: number, target: number, fractionPerStep: number, dt: number): number;
532
- export declare function dampPerStep(value: number, factorPerStep: number, dt: number): number;
533
- export declare const DRIFT_LATERAL_SLIP: number;
534
- export declare const JUMP_PANEL_DECAY_RATE: number;
535
- export declare const JUMP_PANEL_THRUST: number;
536
- export declare const JUMP_PANEL_ROTATE_SECONDS: number;
537
- export declare const JUMP_PANEL_ROTATE_RATE: number;
538
- export declare const TRICK_MIN_SPEED: number;
539
- export declare const TRICK_SECONDS: number;
540
- export declare const TRICK_FORCE_START: number;
541
- export declare const TRICK_FORCE_DECAY: number;
542
- export declare const TRICK_DECAY_STEP: number;
543
- export declare const TRICK_FORCE_FLOOR: number;
544
- export declare const TRICK_LANDING_BOOST: number;
545
- export declare const GLIDER_TRICK_SPEED: number;
546
- export declare const GLIDER_TRICK_OPEN_DELAY: number;
547
- export declare const GLIDER_TRICK_PAYOUT_DELAY: number;
548
- export declare const GLIDER_TRICK_BOOST: number;
549
- export declare const GLIDER_ROTATE_STRENGTH: number;
550
- export declare const COAST_MODEL_SETTLE_RATE: number;
551
- export declare const UNITY_ACCEL_RATE: number;
552
- export declare const KART_BOOST_ACCEL_RATE: number;
553
- export declare const KART_DRIFT_TIERS_UNITY: number[];
554
- export declare const KART_DRIFT_TIERS_TUNED: number[];
555
- export declare const GLIDER_PITCH_RANGE: number;
556
- export declare const GLIDER_PITCH_CLAMP: number;
557
- export declare const GLIDER_PITCH_RATE: number;
558
- export declare const GLIDER_DIVE_FORCE: number;
559
- export declare const GLIDER_LIFT_FORCE: number;
560
- export declare const GLIDER_LIFT_SECONDS: number;
561
- export declare const GLIDER_ROLL_RANGE: number;
562
- export declare const GLIDER_ROLL_RATE: number;
563
- export declare const GLIDER_ROLL_SMOOTH_RATE: number;
564
- export declare const GLIDER_CLOSE_CONFIRM: number;
565
- export declare const GLIDER_LANDING_SECONDS: number;
566
- export declare const GLIDER_PANEL_BOOST: number;
567
- export declare const GLIDER_IMPULSE_SECONDS: number;
568
- export declare const GLIDER_IMPULSE_START: number;
569
- export declare const GLIDER_IMPULSE_END: number;
570
- export declare const GLIDER_ARCADE_SLOPE_MIN: number;
571
- export declare const GLIDER_ARCADE_SLOPE_FLOOR: number;
572
- export declare const GLIDER_ARCADE_SLOPE_SCALE: number;
573
- export declare const GLIDER_ARCADE_SINK_RATE: number;
574
- export declare const WHEEL_STEER_ANGLE: number;
575
- export declare const WHEEL_STEER_RATE: number;
576
- export declare const ANTIGRAVITY_SURFACE_TAIL: number;
577
- export declare const WHEEL_STEER_FREEZE_RATE: number;
578
- export declare const WHEEL_SPIN_SPEED_SWITCH: number;
579
- export declare const WHEEL_ANTIGRAVITY_RATE: number;
580
- export declare const WHEEL_ANTIGRAVITY_ANGLE: number;
581
- export declare const WHEEL_ANTIGRAVITY_SPREAD: number;
582
- export declare const WHEEL_POSE_SIGN: number[];
583
- export declare const WHEEL_SPIN_AXIS: BABYLON.Vector3;
584
- export declare const WHEEL_STEER_AXIS: BABYLON.Vector3;
585
- export declare const WHEEL_POSE_AXIS: BABYLON.Vector3;
586
- export declare const ARM_ANTIGRAVITY_SCALE: number[];
587
- export declare const WHEEL_ANIMATOR_TRIGGER: string;
588
- export declare const DEG_TO_RAD: number;
589
- export declare const EXIT_ROTATE_EPSILON: number;
590
- export declare function wrapAngle(radians: number): number;
591
- export declare function approachAngle(current: number, target: number, fraction: number): number;
592
- export interface IKartKeyframe {
593
- time: number;
594
- value: number;
595
- }
596
- export declare function sampleTrack(track: IKartKeyframe[], time: number): number;
597
- export declare const KART_HOP_TRACK: IKartKeyframe[];
598
- export declare const KART_SHAKE_TRACK: IKartKeyframe[];
599
- export declare const KART_ANTIGRAVITY_TRACK: IKartKeyframe[];
600
- export declare const KART_IDLE_TRACK: IKartKeyframe[];
601
- export declare const KART_UNDERWATER_ROLL_DEGREES: number;
602
- export declare const KART_UNDERWATER_OFFSET: number;
603
- export declare const KART_UNDERWATER_LIFT: number;
604
- export declare const KART_UNDERWATER_BLEND: number;
605
- export declare const KART_ANIMATOR_TRIGGERS: string[];
606
- export interface IKartSpeedCapState {
607
- grounded: boolean;
608
- boost: boolean;
609
- star: boolean;
610
- desiredMaxSpeed: number;
611
- boostSpeed: number;
612
- }
613
- export declare function selectMaxSpeed(state: IKartSpeedCapState): number;
614
- export declare function clampAssignedVerticalVelocity(noseY: number, bodyY: number, antiGravity: boolean, jumpPanel?: boolean): number;
615
- export interface IKartSteerState {
616
- realCurrentSpeed: number;
617
- drifting: boolean;
618
- throttleHeld: boolean;
619
- }
620
- export declare function selectSpeedRotateRate(state: IKartSteerState): number;
621
- export declare function computeYawRate(rotateStrength: number, direction: number, speedRotateRate: number): number;
622
- export declare enum EKartBoostSource {
623
- None = 0,
624
- RocketStart = 1,
625
- BoostPad = 2,
626
- TrickLanding = 3,
627
- JumpPanel = 4,
628
- GliderExit = 5,
629
- GliderTrick = 6,
630
- DriftPayout = 7
631
- }
632
- export declare enum EKartDriftState {
633
- None = 0,
634
- Hop = 1,
635
- Drift = 2,
636
- Boost = 3
637
- }
638
- export interface IKartVehicleProfile {
639
- hopEnabled: boolean;
640
- gliderEnabled: boolean;
641
- antiGravityEnabled: boolean;
642
- tricksEnabled: boolean;
643
- jumpPanelsEnabled: boolean;
644
- }
645
- export type KartVehicleProfileName = "kart" | "arcadeCar";
646
- export declare class StandardKartController extends ScriptComponent {
647
- static readonly CHASSIS_MEMBERSHIP_MASK: number;
648
- protected rayCollideMask: number;
649
- desiredMaxSpeed: number;
650
- boost_speed: number;
651
- boostAccelRate: number;
652
- driftTierTimes: number[];
653
- desired_rotate_strength: number;
654
- sphereRadius: number;
655
- sphereCenter: BABYLON.Vector3;
656
- chassisMass: number;
657
- chassisFriction: number;
658
- modelNodeName: string;
659
- wheelNodeNames: string[];
660
- steeringWheelNodeName: string;
661
- armNodeNames: string[];
662
- raycastOffset: BABYLON.Vector3;
663
- groundRayDist: number;
664
- groundAlignRate: number;
665
- modelYawRate: number;
666
- driftYawAngle: number;
667
- driftLatchDelay: number;
668
- driftLatchThreshold: number;
669
- vehicleProfile: KartVehicleProfileName | null;
670
- hopEnabled: boolean;
671
- gliderEnabled: boolean;
672
- enableGliderPhysics: boolean;
673
- gliderSlopeMin: number;
674
- gliderSlopeFloor: number;
675
- gliderSinkRate: number;
676
- antiGravityEnabled: boolean;
677
- tricksEnabled: boolean;
678
- jumpPanelsEnabled: boolean;
679
- bodyLeanAngle: number;
680
- antiGravityExitRateX: number;
681
- antiGravityExitRateYZ: number;
682
- correctArrowKeyGate: boolean;
683
- correctNeutralSteer: boolean;
684
- sparkTier1Color: string;
685
- sparkTier2Color: string;
686
- sparkTier3Color: string;
687
- rayIncludeLayers: string[];
688
- static readonly UNITY_LAYERS: string[];
689
- static readonly KART_PROFILE: Readonly<IKartVehicleProfile>;
690
- static readonly ARCADE_CAR_PROFILE: Readonly<IKartVehicleProfile>;
691
- static readonly VEHICLE_PROFILES: Readonly<Record<KartVehicleProfileName, Readonly<IKartVehicleProfile>>>;
692
- private static readonly PROFILE_GATED_TAGS;
693
- protected currentspeed: number;
694
- protected REALCURRENTSPEED: number;
695
- protected rotate_strength: number;
696
- protected Drift_time: number;
697
- protected Boost_time: number;
698
- protected drift_direction: number;
699
- protected drift_right: boolean;
700
- protected drift_left: boolean;
701
- protected drifting: boolean;
702
- protected direction: number;
703
- protected driftState: EKartDriftState;
704
- protected grounded: boolean;
705
- protected antiGravity: boolean;
706
- protected antiGravityVolumes: BABYLON.TransformNode[];
707
- protected antiGravityRotAmountX: number;
708
- protected antiGravityRotAmountZ: number;
709
- protected antiGravityRotateCam: boolean;
710
- protected exitRotateActive: boolean;
711
- protected exitRotateX: boolean;
712
- protected exitRotateY: boolean;
713
- protected exitRotateZ: boolean;
714
- protected exitRotateTarget: BABYLON.Vector3;
715
- private exitEuler;
716
- private exitQuaternion;
717
- private jumpRotation;
718
- private gliderEuler;
719
- protected GLIDER_FLY: boolean;
720
- protected groundNormal: BABYLON.Vector3;
721
- protected yawRate: number;
722
- protected slipAngle: number;
723
- protected inputThrottle: number;
724
- protected inputSteering: number;
725
- protected inputDrifting: boolean;
726
- protected inputTrick: boolean;
727
- protected trickTime: number;
728
- protected trickArmed: boolean;
729
- protected trickPerformed: boolean;
730
- protected trickPressed: boolean;
731
- protected verticalAccumulates: boolean;
732
- protected inputPitch: number;
733
- protected chassisBody: BABYLON.PhysicsBody;
734
- protected raycastNode: BABYLON.TransformNode;
735
- protected JUMP_PANEL: boolean;
736
- protected upForce: number;
737
- protected downForce: number;
738
- protected jumpPanelRotateTime: number;
739
- protected jumpPanelRotateTarget: BABYLON.Quaternion;
740
- protected glidingTime: number;
741
- protected glideAngleX: number;
742
- protected glideAngleZ: number;
743
- protected gliderOpenDelay: number;
744
- protected gliderTrick: boolean;
745
- protected gliderTrickPayout: number;
746
- protected gliderPitch: number;
747
- protected gliderSlope: number;
748
- protected sceneGravityY: number;
749
- protected gliderRoll: number;
750
- protected gliderRollVelocity: number;
751
- protected gliderImpulseTime: number;
752
- protected probeGrounded: boolean;
753
- protected driftEntryGrounded: boolean;
754
- protected groundDistance: number;
755
- protected activeGroundRayDist: number;
756
- protected gliderLandingTimer: number;
757
- protected gliderLanded: boolean;
758
- protected max_speed: number;
759
- protected Boost: boolean;
760
- protected StarPowerUp: boolean;
761
- protected cancelAddforceDown: boolean;
762
- protected airForceVolume: BABYLON.TransformNode;
763
- private airForceDirection;
764
- protected wheelNodes: BABYLON.TransformNode[];
765
- protected wheelRestPositions: BABYLON.Vector3[];
766
- protected wheelRestRotations: BABYLON.Quaternion[];
767
- protected antiGravityTirePositions: BABYLON.Vector3[];
768
- protected antiGravityTireTargets: BABYLON.Vector3[];
769
- antiGravityTireColor: string;
770
- protected steeringWheelRest: BABYLON.Quaternion;
771
- protected armNodes: BABYLON.TransformNode[];
772
- protected armRestScales: BABYLON.Vector3[];
773
- protected steeringWheelNode: BABYLON.TransformNode;
774
- protected wheelSteer: number;
775
- protected wheelSpin: number;
776
- protected wheelAntiGravity: number;
777
- private wheelSpinRotation;
778
- private wheelSteerRotation;
779
- private wheelPoseRotation;
780
- private wheelCompose;
781
- protected spunOut: boolean;
782
- protected onDirt: boolean;
783
- protected awake(): void;
784
- protected start(): void;
785
- protected update(): void;
786
- protected step(): void;
787
- protected fixed(): void;
788
- protected destroy(): void;
789
- protected awakeKartState(): void;
790
- protected initKartState(): void;
791
- private attachCollisionEvents;
792
- protected onVolumeEnter(other: BABYLON.TransformNode): void;
793
- protected onVolumeExit(other: BABYLON.TransformNode): void;
794
- isVolumeEnabled(tag: string): boolean;
795
- applyVehicleProfile(profile: KartVehicleProfileName | Partial<IKartVehicleProfile>): void;
796
- getVehicleProfile(): IKartVehicleProfile;
797
- getVehicleProfileName(): KartVehicleProfileName | null;
798
- protected enterAntiGravityVolume(volume: BABYLON.TransformNode): void;
799
- protected exitAntiGravity(volume: BABYLON.TransformNode): void;
800
- protected tickAntiGravity(dt: number): void;
801
- protected applyAntiGravityExitRotation(dt: number): void;
802
- private readVolumeField;
803
- private hasJumpPanelRotatePayload;
804
- private readVectorArray;
805
- private buildAntiGravityTireTargets;
806
- private readUnityColor;
807
- private readVolumeNumber;
808
- private readVolumeFlag;
809
- private readVolumeVector;
810
- protected enterJumpPanel(volume: BABYLON.TransformNode): void;
811
- protected enterJumpPanelRotate(volume: BABYLON.TransformNode): void;
812
- protected tickJumpPanel(dt: number): void;
813
- protected addLocalStepVelocity(x: number, y: number, z: number): void;
814
- protected addLocalVerticalPush(accel: number, canRunGrounded?: boolean): void;
815
- protected tickJumpPanelRotate(dt: number): void;
816
- protected endJumpPanel(): void;
817
- protected tryTrick(): boolean;
818
- protected tickTrick(dt: number): void;
819
- protected landTrick(): void;
820
- protected enterGliderSection(volume: BABYLON.TransformNode): void;
821
- protected openGlider(): void;
822
- protected tickGlider(dt: number): void;
823
- protected gliderSinkTarget(): number;
824
- protected gliderVerticalFor(bodyY: number, dt: number): number;
825
- protected applyGliderAttitude(dt: number): void;
826
- protected closeGlider(): void;
827
- protected closeGliderImmediate(): void;
828
- protected exitGliderPanel(): void;
829
- protected tickGliderImpulse(dt: number): void;
830
- protected onBoostPad(volume: BABYLON.TransformNode): void;
831
- protected setCancelDownForce(active: boolean): void;
832
- protected applyAirForce(dt: number): void;
833
- protected updateWheels(dt: number): void;
834
- protected applyWheelPose(): void;
835
- setWheelNodes(wheels: BABYLON.TransformNode[], steeringWheel?: BABYLON.TransformNode): void;
836
- setArmNodes(arms: BABYLON.TransformNode[]): void;
837
- protected findRigNode(name: string): BABYLON.TransformNode;
838
- protected onSurfaceContact(other: BABYLON.TransformNode): void;
839
- private ensureChassisBody;
840
- protected updateKartState(): void;
841
- private readonly rayResult;
842
- protected overAntiGravitySurface: boolean;
843
- protected overOrdinarySurface: boolean;
844
- surfaceAntiGravity: boolean;
845
- protected antiGravityFromSurface: boolean;
846
- protected antiGravitySurfaceTail: number;
847
- private readonly driftRayResult;
848
- private readonly rayEnd;
849
- private readonly rayDirection;
850
- private readonly rayExtent;
851
- private readonly alignRotation;
852
- private readonly alignTarget;
853
- private rayQuery;
854
- private readonly pendingAcceleration;
855
- private readonly assignedVelocity;
856
- private readonly bodyVelocity;
857
- private readonly localAccel;
858
- private readonly speedCapState;
859
- protected addWorldAcceleration(x: number, y: number, z: number): void;
860
- protected addLocalAcceleration(x: number, y: number, z: number): void;
861
- protected addStepVelocity(x: number, y: number, z: number): void;
862
- private move;
863
- protected endDriftOnCoast(dt: number): void;
864
- private readonly yawAxis;
865
- private readonly yawRotation;
866
- private readonly steerState;
867
- protected steer(dt: number): void;
868
- protected applyDriftModelYaw(hand: number, dt: number): void;
869
- protected applyDriftLateralForce(hand: number): void;
870
- protected applyDriftDownforce(): void;
871
- protected releaseDriftModelYaw(dt: number): void;
872
- protected raceStopDriftRotTimer: number;
873
- raceStopDriftRot(seconds: number): void;
874
- isRaceStopDriftRotRunning(): boolean;
875
- protected tickRaceStopDriftRot(dt: number): void;
876
- protected beforeStartAccelTime: number;
877
- protected tickBoost(dt: number): void;
878
- protected boostGrantCount: number;
879
- protected lastBoostSource: EKartBoostSource;
880
- protected recordBoostGrant(source: EKartBoostSource): void;
881
- grantBoost(seconds: number, source?: EKartBoostSource): void;
882
- floorBoost(seconds: number, source?: EKartBoostSource): void;
883
- protected payDriftBoost(tier: number): void;
884
- chargeLaunch(dt: number): void;
885
- releaseLaunch(): boolean;
886
- protected previousDrifting: boolean;
887
- protected driftPressLatched: boolean;
888
- protected driftLatchTimer: number;
889
- protected drift(dt: number): void;
890
- protected canEnterDrift(): boolean;
891
- protected canHoldDrift(): boolean;
892
- protected enterDrift(): void;
893
- protected stopDrift(payout: boolean): void;
894
- protected onDriftEntry(): void;
895
- protected onDriftExit(): void;
896
- protected modelNode: BABYLON.TransformNode;
897
- private readonly modelRestPosition;
898
- protected animator: any;
899
- protected animatorOwnsDriftPose(): boolean;
900
- protected animatorOwnsWheels(): boolean;
901
- protected driftYaw: number;
902
- protected hopTime: number;
903
- protected shakeTime: number;
904
- protected antiGravityLiftTime: number;
905
- protected idleTime: number;
906
- protected underwaterBlend: number;
907
- protected underwaterHand: number;
908
- protected wasAtRest: boolean;
909
- protected wasAntiGravity: boolean;
910
- private readonly modelRotation;
911
- protected fireTrigger(name: string): boolean;
912
- protected updateModelMotion(dt: number): void;
913
- private tickModelTriggers;
914
- getDriftYaw(): number;
915
- getModelLift(): number;
916
- getModelNode(): BABYLON.TransformNode;
917
- protected FellInWater: boolean;
918
- protected outOfBounds: boolean;
919
- PlayerBeingMoved: boolean;
920
- RACE_STARTED: boolean;
921
- RACE_COMPLETED: boolean;
922
- raceStopDrift(): void;
923
- private respawnTimer;
924
- private respawnStage;
925
- private readonly respawnPosition;
926
- private readonly respawnRotation;
927
- respawnTo(position: BABYLON.Vector3, rotation: BABYLON.Quaternion, immediate?: boolean): void;
928
- isRespawning(): boolean;
929
- stuckRecoveryDelay: number;
930
- stuckRecoveryLift: number;
931
- protected stuckTimer: number;
932
- private readonly stuckRecoveryPosition;
933
- private readonly stuckRecoveryRotation;
934
- protected hasGroundlessExcuse(): boolean;
935
- protected tickStuckRecovery(dt: number): void;
936
- protected recoverFromStuck(): void;
937
- protected onStuckRecovery(): void;
938
- getStuckTime(): number;
939
- clearTransientState(): void;
940
- isPlayerBeingMoved(): boolean;
941
- private performRespawnTeleport;
942
- private tickRespawn;
943
- protected onRecoveryVolume(tag: string): void;
944
- setRespawnPoint(position: BABYLON.Vector3, rotation: BABYLON.Quaternion): void;
945
- private commitVelocity;
946
- private updateGroundRayDistance;
947
- private probeGround;
948
- private probeDriftEntryGround;
949
- private alignToGroundNormal;
950
- protected stepKartState(): void;
951
- protected fixedKartState(): void;
952
- protected destroyKartState(): void;
953
- drive(throttle: number, steering: number, drifting: boolean, trick?: boolean, pitch?: number): void;
954
- getCurrentSpeed(): number;
955
- getRealCurrentSpeed(): number;
956
- getDriftState(): EKartDriftState;
957
- getDriftTime(): number;
958
- getDriftTier(): number;
959
- getDriftTierTimes(): number[];
960
- getRotateStrength(): number;
961
- getBoostTime(): number;
962
- isBoosting(): boolean;
963
- getMaxSpeed(): number;
964
- getLaunchCharge(): number;
965
- getSparkColor(): string | null;
966
- getYawRate(): number;
967
- getSlipAngle(): number;
968
- getGroundNormal(): BABYLON.Vector3;
969
- isGrounded(): boolean;
970
- isAirborne(): boolean;
971
- isProbeGrounded(): boolean;
972
- getGroundDistance(): number;
973
- getGroundRayDistance(): number;
974
- isDrifting(): boolean;
975
- getDriftDirection(): number;
976
- getDriftLatchTime(): number;
977
- isDriftLatched(): boolean;
978
- isGliding(): boolean;
979
- getGlidingTime(): number;
980
- isGliderTrick(): boolean;
981
- getGliderOpenDelay(): number;
982
- getGliderPitch(): number;
983
- getGliderRoll(): number;
984
- isArcadeGlider(): boolean;
985
- getGliderSlope(): number;
986
- getGliderSinkTarget(): number;
987
- getGlideAngles(): {
988
- x: number;
989
- z: number;
990
- };
991
- getGlideAngleX(): number;
992
- getGlideAngleZ(): number;
993
- getGliderImpulseTime(): number;
994
- isAntiGravity(): boolean;
995
- getAntiGravityRotAmountX(): number;
996
- getAntiGravityRotAmountZ(): number;
997
- isAntiGravityCamRotate(): boolean;
998
- isAntiGravityExiting(): boolean;
999
- getAntiGravityVolumeCount(): number;
1000
- isJumpPanelling(): boolean;
1001
- getJumpPanelForce(): number;
1002
- getJumpPanelRotateTime(): number;
1003
- isTricking(): boolean;
1004
- getTrickTime(): number;
1005
- isTrickArmed(): boolean;
1006
- isTrickPending(): boolean;
1007
- getWheelSteer(): number;
1008
- getWheelSpin(): number;
1009
- getWheelAntiGravity(): number;
1010
- isOnDirt(): boolean;
1011
- getBoostGrantCount(): number;
1012
- getLastBoostSource(): EKartBoostSource;
1013
- isFellInWater(): boolean;
1014
- isRaceCompleted(): boolean;
1015
- }
1016
- export interface IKartEffectsTarget {
1017
- getDriftState(): number;
1018
- getDriftTime(): number;
1019
- getDriftTierTimes?(): number[];
1020
- isDriftLatched(): boolean;
1021
- getDriftDirection(): number;
1022
- getBoostTime(): number;
1023
- getBoostGrantCount?(): number;
1024
- getLastBoostSource?(): number;
1025
- isBoosting(): boolean;
1026
- isAntiGravity(): boolean;
1027
- isTricking(): boolean;
1028
- isGrounded(): boolean;
1029
- sparkTier1Color?: string;
1030
- sparkTier2Color?: string;
1031
- sparkTier3Color?: string;
1032
- isFellInWater?(): boolean;
1033
- }
1034
- export interface IKartEmitterGroup {
1035
- name: string;
1036
- mount: BABYLON.TransformNode | null;
1037
- systems: ShurikenParticles[];
1038
- playing: boolean;
1039
- placeholder: boolean;
1040
- simulationSpace: number;
1041
- }
1042
- export declare class StandardKartEffects extends ScriptComponent {
1043
- kart: IKartEffectsTarget;
1044
- mountNode: BABYLON.TransformNode;
1045
- modelNodeName: string;
1046
- effectsEnabled: boolean;
1047
- sparksEnabled: boolean;
1048
- driftDustEnabled: boolean;
1049
- boostBurstEnabled: boolean;
1050
- boostFlamesEnabled: boolean;
1051
- antiGravSpinEnabled: boolean;
1052
- trickParticlesEnabled: boolean;
1053
- groundLandEnabled: boolean;
1054
- createPlaceholderEmitters: boolean;
1055
- driftPSNodeName: string;
1056
- rightWheelDriftNodeName: string;
1057
- leftWheelDriftNodeName: string;
1058
- driftDustLeftNodeName: string;
1059
- driftDustRightNodeName: string;
1060
- boostBurstNodeName: string;
1061
- boostPSNodeName: string;
1062
- antiGravSpinNodeName: string;
1063
- trickParticlesNodeName: string;
1064
- groundLandNodeName: string;
1065
- sparkTier1Color: string;
1066
- sparkTier2Color: string;
1067
- sparkTier3Color: string;
1068
- protected readonly groups: Map<string, IKartEmitterGroup>;
1069
- protected activeSparkColor: string;
1070
- protected lastBoostTime: number;
1071
- protected lastBoostGrantCount: number;
1072
- protected boostBurstCount: number;
1073
- protected antiGravSpinTimer: number;
1074
- protected antiGravSpinArmed: boolean;
1075
- protected lastAntiGravity: boolean;
1076
- protected lastTricking: boolean;
1077
- protected lastGrounded: boolean;
1078
- private readonly scratchColor;
1079
- protected awake(): void;
1080
- protected start(): void;
1081
- protected update(): void;
1082
- protected destroy(): void;
1083
- protected awakeEffectsState(): void;
1084
- protected initEffectsState(): void;
1085
- protected destroyEffectsState(): void;
1086
- protected updateEffectsState(): void;
1087
- protected tickDriftEffects(): void;
1088
- protected tickBoostEffects(): void;
1089
- protected tickAntiGravSpin(dt: number): void;
1090
- protected tickOneShots(): void;
1091
- protected playGroup(name: string): void;
1092
- protected stopGroup(name: string): void;
1093
- protected restartGroup(name: string): void;
1094
- protected stopAllGroups(): void;
1095
- protected applySparkColor(hex: string): void;
1096
- protected writeGroupColor(name: string, hex: string): void;
1097
- protected resolveMountNode(): BABYLON.TransformNode;
1098
- protected resolveSimulationSpace(group: IKartEmitterGroup, kind: string): number;
1099
- protected findChildNode(name: string): BABYLON.TransformNode;
1100
- protected buildGroups(): void;
1101
- protected registerGroup(key: string, nodeName: string, parent: BABYLON.TransformNode, count: number, offset: BABYLON.Vector3, kind: string): void;
1102
- protected findNamedChildOf(parent: BABYLON.TransformNode, name: string): BABYLON.TransformNode;
1103
- protected collectParticleComponents(node: BABYLON.TransformNode): ShurikenParticles[];
1104
- protected createMountNode(name: string, offset: BABYLON.Vector3): BABYLON.TransformNode;
1105
- protected createPlaceholderSystems(mount: BABYLON.TransformNode, nodeName: string, count: number, kind: string): ShurikenParticles[];
1106
- protected static Curve(value: number): any;
1107
- protected static PlaceholderProperties(kind: string, index: number): any;
1108
- protected static SparkProperties(index: number): any;
1109
- protected static DustProperties(): any;
1110
- protected static BurstProperties(): any;
1111
- protected static FlameProperties(): any;
1112
- protected static SpinProperties(): any;
1113
- isGroupPlaying(name: string): boolean;
1114
- getGroupSystemCount(name: string): number;
1115
- isGroupPlaceholder(name: string): boolean;
1116
- getGroupNames(): string[];
1117
- getActiveSparkColor(): string;
1118
- getBoostBurstCount(): number;
1119
- getAntiGravSpinTimer(): number;
1120
- static SourceBursts(source: number): boolean;
1121
- static HexToColor4(hex: string, result: BABYLON.Color4): BABYLON.Color4;
1122
- }
1123
7
  export declare class CheckpointManager extends ScriptComponent {
1124
8
  private checkPointList;
1125
9
  private checkPointCount;
@@ -2182,102 +1066,6 @@ export declare class VertexSplatPlugin extends CustomShaderMaterialPlugin {
2182
1066
  prepareDefines(defines: BABYLON.MaterialDefines, scene: BABYLON.Scene, mesh: BABYLON.AbstractMesh): void;
2183
1067
  bindForSubMesh(uniformBuffer: BABYLON.UniformBuffer, scene: BABYLON.Scene, engine: BABYLON.AbstractEngine, subMesh: BABYLON.SubMesh): void;
2184
1068
  }
2185
- export declare class DefaultCameraSystem extends ScriptComponent {
2186
- protected static PlayerOneCamera: BABYLON.FreeCamera;
2187
- protected static PlayerTwoCamera: BABYLON.FreeCamera;
2188
- protected static PlayerThreeCamera: BABYLON.FreeCamera;
2189
- protected static PlayerFourCamera: BABYLON.FreeCamera;
2190
- protected static XRExperienceHelper: BABYLON.WebXRDefaultExperience;
2191
- private static multiPlayerView;
2192
- private static multiPlayerCount;
2193
- private static multiPlayerCameras;
2194
- private static stereoCameras;
2195
- private static startupMode;
2196
- private static cameraReady;
2197
- private static cameraInstance;
2198
- static IsCameraSystemReady(): boolean;
2199
- static OnXRExperienceHelperObservable: any;
2200
- static FOLLOW_SPEED: number;
2201
- private mainCamera;
2202
- private cameraType;
2203
- private cameraInertia;
2204
- private cameraController;
2205
- private immersiveOptions;
2206
- private arcRotateConfig;
2207
- private multiPlayerSetup;
2208
- private fullScreenToggle;
2209
- private setPointerLock;
2210
- private setCameraTarget;
2211
- private setSpatialAudio;
2212
- protected m_cameraRig: BABYLON.TargetCamera;
2213
- isMainCamera(): boolean;
2214
- getCameraType(): number;
2215
- getTargetTransform(): BABYLON.TransformNode;
2216
- setTargetTransform(target: BABYLON.TransformNode): void;
2217
- enableSpatialAudio(value: boolean): void;
2218
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2219
- protected awake(): void;
2220
- protected start(): void;
2221
- protected update(): void;
2222
- protected destroy(): void;
2223
- protected awakeCameraSystemState(): void;
2224
- protected startCameraSystemState(): Promise<void>;
2225
- protected updateCameraSystemState(): void;
2226
- protected cleanCameraSystemState(): void;
2227
- protected destroyCameraSystemState(): void;
2228
- targetCameraOffset: BABYLON.Vector3;
2229
- getCameraPivotPosition(): BABYLON.Vector3;
2230
- getCameraPivotRotation(): BABYLON.Quaternion;
2231
- getCameraBoomNode(): BABYLON.TransformNode;
2232
- getCameraTransform(): BABYLON.TransformNode;
2233
- private cameraNode;
2234
- private cameraPivot;
2235
- private cameraDistance;
2236
- private cameraPivotOffset;
2237
- private cameraBoomPosition;
2238
- private dollyDirection;
2239
- private rotationEulers;
2240
- private scaledCamDirection;
2241
- private scaledMaxDirection;
2242
- private parentNodePosition;
2243
- private maximumCameraPos;
2244
- private cameraRaycastShape;
2245
- private targetRotationVector;
2246
- private resetCameraRotation;
2247
- private updateCameraController;
2248
- getBoomArmMaxDistance(): number;
2249
- setBoomArmMaxDistance(distance: number): void;
2250
- setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
2251
- private smoothBoomArmLength;
2252
- private smoothBoomArmSpeed;
2253
- private updateSmoothBoomArmLength;
2254
- static EnableTracking(value: boolean): void;
2255
- static IsTrackingEnabled(): boolean;
2256
- static SetAutoUpdate(value: boolean): void;
2257
- static IsAutoUpdateEnabled(): boolean;
2258
- static GetFollowTarget(): BABYLON.TransformNode;
2259
- static SetFollowTarget(target: BABYLON.TransformNode): void;
2260
- static ResetFollowTarget(): void;
2261
- static UpdateFollowTarget(): void;
2262
- static GetWebXR(): BABYLON.WebXRDefaultExperience;
2263
- static IsInWebXR(): boolean;
2264
- private static SetupNavigationWebXR;
2265
- static GetMainCamera(scene: BABYLON.Scene, detach?: boolean): BABYLON.FreeCamera;
2266
- static GetPlayerCamera(scene: BABYLON.Scene, player?: PlayerNumber, detach?: boolean): BABYLON.FreeCamera;
2267
- static GetCameraTransform(scene: BABYLON.Scene, player?: PlayerNumber): BABYLON.TransformNode;
2268
- static IsStereoCameras(): boolean;
2269
- static IsMultiPlayerView(): boolean;
2270
- static GetMultiPlayerCount(): number;
2271
- static ActivateMultiPlayerCameras(scene: BABYLON.Scene): boolean;
2272
- static DisposeMultiPlayerCameras(): void;
2273
- static SetMultiPlayerViewLayout(scene: BABYLON.Scene, totalNumPlayers: number): boolean;
2274
- }
2275
- export interface IEditorArcRtotate {
2276
- alpha: number;
2277
- beta: number;
2278
- radius: number;
2279
- target: IUnityVector3;
2280
- }
2281
1069
  export declare class DebugInformation extends ScriptComponent {
2282
1070
  static GetVersion(): string;
2283
1071
  private keys;
@@ -2314,53 +1102,6 @@ export declare class AssetPreloader extends ScriptComponent implements IAssetPre
2314
1102
  protected destroy(): void;
2315
1103
  addPreloaderTasks(assetsManager: PreloadAssetsManager): void;
2316
1104
  }
2317
- export declare class NodeMaterialInstance extends ScriptComponent {
2318
- private nodeMaterialData;
2319
- private setCustomRootUrl;
2320
- getMaterialInstance(): BABYLON.NodeMaterial;
2321
- protected m_nodeMaterial: BABYLON.NodeMaterial;
2322
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2323
- protected awake(): void;
2324
- protected destroy(): void;
2325
- }
2326
- export declare class NodeMaterialParticle extends ScriptComponent {
2327
- private nodeMaterialEditor;
2328
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2329
- protected awake(): void;
2330
- protected start(): void;
2331
- protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
2332
- protected update(): void;
2333
- protected late(): void;
2334
- protected after(): void;
2335
- protected fixed(): void;
2336
- protected ready(): void;
2337
- protected destroy(): void;
2338
- }
2339
- export declare class NodeMaterialProcess extends ScriptComponent {
2340
- private nodeMaterialEditor;
2341
- private numberOfSamples;
2342
- private samplingMode;
2343
- private textureType;
2344
- private textureFormat;
2345
- private sizeRatio;
2346
- private resuable;
2347
- getPostProcess(): BABYLON.PostProcess;
2348
- protected m_postProcess: BABYLON.PostProcess;
2349
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2350
- protected start(): void;
2351
- protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
2352
- protected destroy(): void;
2353
- }
2354
- export declare class NodeMaterialTexture extends ScriptComponent {
2355
- private nodeMaterialEditor;
2356
- private textureSize;
2357
- getProceduralTexture(): BABYLON.ProceduralTexture;
2358
- protected m_proceduralTexture: BABYLON.ProceduralTexture;
2359
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2360
- protected start(): void;
2361
- protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
2362
- protected destroy(): void;
2363
- }
2364
1105
  export declare class MobileInputController extends ScriptComponent {
2365
1106
  static get Instance(): MobileInputController;
2366
1107
  private static StaticInstance;
@@ -2441,768 +1182,6 @@ export declare class MobileShadowMaterial extends ScriptComponent {
2441
1182
  protected awake(): void;
2442
1183
  protected destroy(): void;
2443
1184
  }
2444
- export declare class BallSocketJoint extends ScriptComponent {
2445
- bodyA: BABYLON.TransformNode;
2446
- bodyB: BABYLON.TransformNode;
2447
- pivotA: BABYLON.Vector3;
2448
- pivotB: BABYLON.Vector3;
2449
- axisA: BABYLON.Vector3;
2450
- axisB: BABYLON.Vector3;
2451
- constraint: BABYLON.BallAndSocketConstraint;
2452
- collisionsEnabled: boolean;
2453
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2454
- protected awake(): void;
2455
- protected destroy(): void;
2456
- }
2457
- export declare class DistanceJoint extends ScriptComponent {
2458
- bodyA: BABYLON.TransformNode;
2459
- bodyB: BABYLON.TransformNode;
2460
- maxDistance: number;
2461
- constraint: BABYLON.DistanceConstraint;
2462
- collisionsEnabled: boolean;
2463
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2464
- protected awake(): void;
2465
- protected destroy(): void;
2466
- }
2467
- export declare class FixedHingeJoint extends ScriptComponent {
2468
- bodyA: BABYLON.TransformNode;
2469
- bodyB: BABYLON.TransformNode;
2470
- pivotA: BABYLON.Vector3;
2471
- pivotB: BABYLON.Vector3;
2472
- constraint: BABYLON.HingeConstraint;
2473
- collisionsEnabled: boolean;
2474
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2475
- protected awake(): void;
2476
- protected destroy(): void;
2477
- }
2478
- export declare class LockedJoint extends ScriptComponent {
2479
- bodyA: BABYLON.TransformNode;
2480
- bodyB: BABYLON.TransformNode;
2481
- pivotA: BABYLON.Vector3;
2482
- pivotB: BABYLON.Vector3;
2483
- axisA: BABYLON.Vector3;
2484
- axisB: BABYLON.Vector3;
2485
- constraint: BABYLON.LockConstraint;
2486
- collisionsEnabled: boolean;
2487
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2488
- protected awake(): void;
2489
- protected destroy(): void;
2490
- }
2491
- export declare class PrismaticJoint extends ScriptComponent {
2492
- bodyA: BABYLON.TransformNode;
2493
- bodyB: BABYLON.TransformNode;
2494
- pivotA: BABYLON.Vector3;
2495
- pivotB: BABYLON.Vector3;
2496
- axisA: BABYLON.Vector3;
2497
- axisB: BABYLON.Vector3;
2498
- constraint: BABYLON.PrismaticConstraint;
2499
- collisionsEnabled: boolean;
2500
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2501
- protected awake(): void;
2502
- protected destroy(): void;
2503
- }
2504
- export declare class SixdofJoint extends ScriptComponent {
2505
- bodyA: BABYLON.TransformNode;
2506
- bodyB: BABYLON.TransformNode;
2507
- pivotA: BABYLON.Vector3;
2508
- pivotB: BABYLON.Vector3;
2509
- perpAxisA: BABYLON.Vector3;
2510
- perpAxisB: BABYLON.Vector3;
2511
- axisLimits: BABYLON.Physics6DoFLimit[];
2512
- constraint: BABYLON.Physics6DoFConstraint;
2513
- collisionsEnabled: boolean;
2514
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2515
- protected awake(): void;
2516
- protected destroy(): void;
2517
- }
2518
- export declare class SliderJoint extends ScriptComponent {
2519
- bodyA: BABYLON.TransformNode;
2520
- bodyB: BABYLON.TransformNode;
2521
- pivotA: BABYLON.Vector3;
2522
- pivotB: BABYLON.Vector3;
2523
- axisA: BABYLON.Vector3;
2524
- axisB: BABYLON.Vector3;
2525
- constraint: BABYLON.SliderConstraint;
2526
- collisionsEnabled: boolean;
2527
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2528
- protected awake(): void;
2529
- protected destroy(): void;
2530
- }
2531
- export declare class RemotePlayerController extends ScriptComponent {
2532
- updateStateParams: boolean;
2533
- smoothMotionTime: number;
2534
- smoothInputVectors: boolean;
2535
- private animationState;
2536
- private animationStateParams;
2537
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2538
- protected awake(): void;
2539
- protected update(): void;
2540
- protected destroy(): void;
2541
- private attachAnimationController;
2542
- private validateAnimationStateParams;
2543
- }
2544
- export declare class StandardPlayerController extends ScriptComponent {
2545
- static MIN_VERTICAL_VELOCITY: number;
2546
- static MIN_GROUND_DISTANCE: number;
2547
- static MIN_MOVE_EPSILON: number;
2548
- static MIN_TIMER_OFFSET: number;
2549
- static MIN_SLOPE_LIMIT: number;
2550
- static PLAYER_HEIGHT: string;
2551
- enableInput: boolean;
2552
- attachCamera: boolean;
2553
- rotateCamera: boolean;
2554
- mouseWheel: boolean;
2555
- toggleView: boolean;
2556
- freeLooking: boolean;
2557
- requireSprintButton: boolean;
2558
- gravitationalForce: number;
2559
- minFallVelocity: number;
2560
- verticalStepSpeed: number;
2561
- minStepUpHeight: number;
2562
- rigidBodyMass: number;
2563
- airbornTimeout: number;
2564
- maxAngle: number;
2565
- speedFactor: number;
2566
- rootMotion: boolean;
2567
- moveSpeed: number;
2568
- walkSpeed: number;
2569
- lookSpeed: number;
2570
- jumpSpeed: number;
2571
- jumpDelay: number;
2572
- eyesHeight: number;
2573
- pivotHeight: number;
2574
- maxDistance: number;
2575
- scrollSpeed: number;
2576
- topLookLimit: number;
2577
- downLookLimit: number;
2578
- lowTurnSpeed: number;
2579
- highTurnSpeed: number;
2580
- smoothDampTime: number;
2581
- smoothInputVectors: boolean;
2582
- smoothAcceleration: boolean;
2583
- accelerationSpeed: number;
2584
- decelerationSpeed: number;
2585
- avatarSkinTag: string;
2586
- climbVolumeTag: string;
2587
- vaultVolumeTag: string;
2588
- maxHeightRanges: any;
2589
- useClimbSystem: boolean;
2590
- distanceFactor: number;
2591
- cameraSmoothing: number;
2592
- cameraCollisions: boolean;
2593
- inputMagnitude: number;
2594
- landingEpsilon: number;
2595
- minimumDistance: number;
2596
- movementAllowed: boolean;
2597
- playerInputX: number;
2598
- playerInputZ: number;
2599
- playerMouseX: number;
2600
- playerMouseY: number;
2601
- runKeyRequired: boolean;
2602
- buttonRun: number;
2603
- keyboardRun: number;
2604
- buttonJump: number;
2605
- keyboardJump: number;
2606
- buttonCamera: number;
2607
- keyboardCamera: number;
2608
- postNetworkAttributes: boolean;
2609
- playerNumber: PlayerNumber;
2610
- boomPosition: BABYLON.Vector3;
2611
- airbornVelocity: BABYLON.Vector3;
2612
- movementVelocity: BABYLON.Vector3;
2613
- targetCameraOffset: BABYLON.Vector3;
2614
- isAnimationEnabled(): boolean;
2615
- isRunButtonPressed(): boolean;
2616
- isJumpButtonPressed(): boolean;
2617
- getPlayerJumped(): boolean;
2618
- getPlayerJumping(): boolean;
2619
- getPlayerFalling(): boolean;
2620
- getPlayerSliding(): boolean;
2621
- getPlayerGrounded(): boolean;
2622
- getFallTriggered(): boolean;
2623
- getMovementSpeed(): number;
2624
- getCameraBoomNode(): BABYLON.TransformNode;
2625
- getCameraTransform(): BABYLON.TransformNode;
2626
- getAnimationState(): AnimationState;
2627
- getVerticalVelocity(): number;
2628
- getCharacterController(): CharacterController;
2629
- getPlayerLookRotation(): BABYLON.Vector3;
2630
- getPlayerMoveDirection(): PlayerMoveDirection;
2631
- getInputMovementVector(): BABYLON.Vector3;
2632
- getInputMagnitudeValue(): number;
2633
- getCameraPivotPosition(): BABYLON.Vector3;
2634
- getCameraPivotRotation(): BABYLON.Quaternion;
2635
- rayClimbOffset: number;
2636
- rayClimbLength: number;
2637
- getClimbContact(): boolean;
2638
- getClimbContactNode(): BABYLON.TransformNode;
2639
- getClimbContactPoint(): BABYLON.Vector3;
2640
- getClimbContactAngle(): number;
2641
- getClimbContactNormal(): BABYLON.Vector3;
2642
- getClimbContactDistance(): number;
2643
- canClimbObstaclePredicate: (action: number) => boolean;
2644
- rayHeightOffset: number;
2645
- rayHeightLength: number;
2646
- getHeightContact(): boolean;
2647
- getHeightContactNode(): BABYLON.TransformNode;
2648
- getHeightContactPoint(): BABYLON.Vector3;
2649
- getHeightContactAngle(): number;
2650
- getHeightContactNormal(): BABYLON.Vector3;
2651
- getHeightContactDistance(): number;
2652
- private abstractMesh;
2653
- private cameraDistance;
2654
- private forwardCamera;
2655
- private avatarRadius;
2656
- private groundingObject;
2657
- private groundingCallback;
2658
- private dollyDirection;
2659
- private cameraEulers;
2660
- private rotationEulers;
2661
- private cameraPivotOffset;
2662
- private cameraForwardVector;
2663
- private cameraRightVector;
2664
- private desiredForwardVector;
2665
- private desiredRightVector;
2666
- private lastRotationQuaternion;
2667
- private scaledCamDirection;
2668
- private scaledMaxDirection;
2669
- private parentNodePosition;
2670
- private maximumCameraPos;
2671
- private tempWorldPosition;
2672
- private cameraRaycastShape;
2673
- private defaultRaycastGroup;
2674
- private defaultRaycastMask;
2675
- private cameraRaycastMask;
2676
- private avatarSkins;
2677
- private cameraNode;
2678
- private cameraPivot;
2679
- private navigationAgent;
2680
- private characterController;
2681
- private verticalVelocity;
2682
- private smoothMotionSpeed;
2683
- private movementSpeed;
2684
- private isRunPressed;
2685
- private isJumpPressed;
2686
- private isCharacterSliding;
2687
- private isCharacterFalling;
2688
- private isCharacterGrounded;
2689
- private isCharacterFallTriggered;
2690
- private isCharacterJumpFrame;
2691
- private isCharacterJumping;
2692
- private isCharacterLanding;
2693
- private isCharacterRising;
2694
- private isCharacterNavigating;
2695
- private navigationAngularSpeed;
2696
- private updateStateParams;
2697
- private animationStateParams;
2698
- private sphereCollisionShape;
2699
- private hasGroundedContact;
2700
- private showDebugColliders;
2701
- private colliderVisibility;
2702
- private colliderRenderGroup;
2703
- private groundCheckDistance;
2704
- private deltaTime;
2705
- private minJumpTimer;
2706
- private delayJumpTimer;
2707
- private playerControl;
2708
- private canPlayerJump;
2709
- private animationState;
2710
- private lastJumpVelocity;
2711
- private inputMovementVector;
2712
- private playerLookRotation;
2713
- private playerRotationVector;
2714
- private playerMovementVelocity;
2715
- private playerRotationQuaternion;
2716
- private playerMoveDirection;
2717
- private forwardDirection;
2718
- private downDirection;
2719
- private climbContact;
2720
- private climbContactNode;
2721
- private climbContactAngle;
2722
- private climbContactPoint;
2723
- private climbContactNormal;
2724
- private climbContactDistance;
2725
- private climbSensorLine;
2726
- private offsetClimbRaycastPosition;
2727
- private startClimbRaycastPosition;
2728
- private endClimbRaycastPosition;
2729
- private heightContact;
2730
- private heightContactNode;
2731
- private heightContactAngle;
2732
- private heightContactPoint;
2733
- private heightContactNormal;
2734
- private heightContactDistance;
2735
- private heightSensorLine;
2736
- private offsetHeightRaycastPosition;
2737
- private startHeightRaycastPosition;
2738
- private endHeightRaycastPosition;
2739
- protected m_velocityOffset: BABYLON.Vector3;
2740
- protected m_actualVelocity: BABYLON.Vector3;
2741
- protected m_linearVelocity: BABYLON.Vector3;
2742
- protected m_lastPosition: BABYLON.Vector3;
2743
- protected m_positionCenter: BABYLON.Vector3;
2744
- protected m_scaledVelocity: number;
2745
- protected playerDrawVelocity: number;
2746
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
2747
- protected awake(): void;
2748
- protected start(): void;
2749
- protected after(): void;
2750
- protected update(): void;
2751
- protected destroy(): void;
2752
- onPreUpdateObservable: any;
2753
- onBeforeMoveObservable: any;
2754
- onPostUpdateObservable: any;
2755
- onPlayerInputObservable: any;
2756
- onPlayerPositionObservable: any;
2757
- onUpdateActionObservable: any;
2758
- private _deltaMotionPosition;
2759
- getDeltaMotionPosition(): BABYLON.Vector3;
2760
- private _deltaMotionRotation;
2761
- getDeltaMotionRotation(): BABYLON.Quaternion;
2762
- private isPerformingAction;
2763
- private isRootMotionAction;
2764
- private isActionInterruptable;
2765
- private afterActionHandler;
2766
- private performActionTimer;
2767
- private performActionNumber;
2768
- private playerRotationSpeed;
2769
- private rotatePlayerTowards;
2770
- private matchStartTime;
2771
- private matchTargetTime;
2772
- private matchTargetOffset;
2773
- private matchTargetHeight;
2774
- private lockTargetHeight;
2775
- private lastStartHeight;
2776
- private lastTargetHeight;
2777
- private lastTargetNormal;
2778
- private lastTargetRotation;
2779
- private lastDeltaPosition;
2780
- private lastDeltaRotation;
2781
- getIsPerformingAction(): boolean;
2782
- getIsRootMotionAction(): boolean;
2783
- getIsActionInterruptable(): boolean;
2784
- playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
2785
- resetActionAnimationState(): void;
2786
- private updateAnimationActionState;
2787
- setWorldPosition(x: number, y: number, z: number): void;
2788
- setPlayerControl(mode: PlayerInputControl): void;
2789
- togglePlayerControl(): void;
2790
- private showAvatarSkins;
2791
- attachPlayerCamera(player: PlayerNumber): void;
2792
- private ikLeftFootTarget;
2793
- private ikLeftPoleTarget;
2794
- private ikRightFootTarget;
2795
- private ikRightPoleTarget;
2796
- private abstractSkinMesh;
2797
- private rootBoneTransform;
2798
- private leftFootTransform;
2799
- private leftFootPoleOffset;
2800
- private leftFootMaxAngle;
2801
- private rightFootTransform;
2802
- private rightFootPoleOffset;
2803
- private rightFootMaxAngle;
2804
- private ikLeftController;
2805
- private ikRightController;
2806
- onAnimatorIK: () => void;
2807
- getPlayerMesh(): BABYLON.AbstractMesh;
2808
- getRootHipBone(): BABYLON.Bone;
2809
- getLeftFootBone(): BABYLON.Bone;
2810
- getRightFootBone(): BABYLON.Bone;
2811
- getLeftFootTarget(): BABYLON.Mesh;
2812
- getRightFootTarget(): BABYLON.Mesh;
2813
- getLeftFootPoleTarget(): BABYLON.Mesh;
2814
- getRightFootPoleTarget(): BABYLON.Mesh;
2815
- getRootBoneTransform(): BABYLON.TransformNode;
2816
- getLeftFootTransform(): BABYLON.TransformNode;
2817
- getRightFootTransform(): BABYLON.TransformNode;
2818
- getLeftFootController(): BABYLON.BoneIKController;
2819
- getRightFootController(): BABYLON.BoneIKController;
2820
- isGroundedFootIKActive(): boolean;
2821
- setupBoneControllers(): void;
2822
- private attachAnimationController;
2823
- private updateAnimatorTargetMeshes;
2824
- enableCharacterController(state: boolean): void;
2825
- resetPlayerRotation(): void;
2826
- resetPlayerJumpingState(): void;
2827
- private awakePlayerController;
2828
- private startPlayerController;
2829
- private updatePlayerPosition;
2830
- private updatePlayerController;
2831
- private afterPlayerController;
2832
- private updateCharacterController;
2833
- private updateCameraController;
2834
- getBoomArmMaxDistance(): number;
2835
- setBoomArmMaxDistance(distance: number): void;
2836
- setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
2837
- private smoothBoomArmLength;
2838
- private smoothBoomArmSpeed;
2839
- private updateSmoothBoomArmLength;
2840
- private castPhysicsClimbingVolumeRay;
2841
- private castPhysicsHeightCheckVolumeRay;
2842
- private getCheckedVerticalVelocity;
2843
- private destroyPlayerController;
2844
- private validateAnimationStateParams;
2845
- }
2846
- export interface AnimationStateParams {
2847
- moveDirection: string;
2848
- inputMagnitude: string;
2849
- horizontalInput: string;
2850
- verticalInput: string;
2851
- mouseXInput: string;
2852
- mouseYInput: string;
2853
- heightInput: string;
2854
- speedInput: string;
2855
- jumpFrame: string;
2856
- jumpState: string;
2857
- actionState: string;
2858
- fallingState: string;
2859
- slidingState: string;
2860
- groundedState: string;
2861
- }
2862
- export declare enum PlayerInputControl {
2863
- FirstPersonStrafing = 0,
2864
- ThirdPersonStrafing = 1
2865
- }
2866
- export declare enum PlayerMoveDirection {
2867
- Stationary = 0,
2868
- Forward = 1,
2869
- ForwardLeft = 2,
2870
- ForwardRight = 3,
2871
- Backward = 4,
2872
- BackwardLeft = 5,
2873
- BackwardRight = 6,
2874
- StrafingLeft = 7,
2875
- StrafingRight = 8
2876
- }
2877
- export declare enum ActionAnimationType {
2878
- Neutral = 0,
2879
- StepUp = 1,
2880
- JumpUp = 2,
2881
- ClimbUp = 3,
2882
- VaultOver = 4
2883
- }
2884
- export declare class ThirdPersonPlayerController extends ScriptComponent {
2885
- static MIN_VERTICAL_VELOCITY: number;
2886
- static MIN_GROUND_DISTANCE: number;
2887
- static MIN_MOVE_EPSILON: number;
2888
- static MIN_TIMER_OFFSET: number;
2889
- static MIN_SLOPE_LIMIT: number;
2890
- static PLAYER_HEIGHT: string;
2891
- enableInput: boolean;
2892
- attachCamera: boolean;
2893
- mouseWheel: boolean;
2894
- requireSprintButton: boolean;
2895
- gravitationalForce: number;
2896
- minFallVelocity: number;
2897
- verticalStepSpeed: number;
2898
- minStepUpHeight: number;
2899
- rigidBodyMass: number;
2900
- airbornTimeout: number;
2901
- maxAngle: number;
2902
- speedFactor: number;
2903
- rootMotion: boolean;
2904
- moveSpeed: number;
2905
- walkSpeed: number;
2906
- jumpSpeed: number;
2907
- jumpDelay: number;
2908
- lowTurnSpeed: number;
2909
- highTurnSpeed: number;
2910
- smoothDampTime: number;
2911
- smoothInputVectors: boolean;
2912
- smoothAcceleration: boolean;
2913
- accelerationSpeed: number;
2914
- decelerationSpeed: number;
2915
- climbVolumeTag: string;
2916
- vaultVolumeTag: string;
2917
- maxHeightRanges: any;
2918
- useClimbSystem: boolean;
2919
- distanceFactor: number;
2920
- inputMagnitude: number;
2921
- landingEpsilon: number;
2922
- minimumDistance: number;
2923
- movementAllowed: boolean;
2924
- playerInputX: number;
2925
- playerInputZ: number;
2926
- playerMouseX: number;
2927
- playerMouseY: number;
2928
- runKeyRequired: boolean;
2929
- buttonRun: number;
2930
- keyboardRun: number;
2931
- buttonJump: number;
2932
- keyboardJump: number;
2933
- buttonCamera: number;
2934
- keyboardCamera: number;
2935
- postNetworkAttributes: boolean;
2936
- playerNumber: PlayerNumber;
2937
- airbornVelocity: BABYLON.Vector3;
2938
- movementVelocity: BABYLON.Vector3;
2939
- isAnimationEnabled(): boolean;
2940
- isRunButtonPressed(): boolean;
2941
- isJumpButtonPressed(): boolean;
2942
- getPlayerJumped(): boolean;
2943
- getPlayerJumping(): boolean;
2944
- getPlayerFalling(): boolean;
2945
- getPlayerSliding(): boolean;
2946
- getPlayerGrounded(): boolean;
2947
- getFallTriggered(): boolean;
2948
- getMovementSpeed(): number;
2949
- getAnimationState(): AnimationState;
2950
- getVerticalVelocity(): number;
2951
- getCharacterController(): CharacterController;
2952
- getPlayerLookRotation(): BABYLON.Vector3;
2953
- getPlayerMoveDirection(): PlayerMoveDirection;
2954
- getInputMovementVector(): BABYLON.Vector3;
2955
- getInputMagnitudeValue(): number;
2956
- rayClimbOffset: number;
2957
- rayClimbLength: number;
2958
- getClimbContact(): boolean;
2959
- getClimbContactNode(): BABYLON.TransformNode;
2960
- getClimbContactPoint(): BABYLON.Vector3;
2961
- getClimbContactAngle(): number;
2962
- getClimbContactNormal(): BABYLON.Vector3;
2963
- getClimbContactDistance(): number;
2964
- canClimbObstaclePredicate: (action: number) => boolean;
2965
- rayHeightOffset: number;
2966
- rayHeightLength: number;
2967
- getHeightContact(): boolean;
2968
- getHeightContactNode(): BABYLON.TransformNode;
2969
- getHeightContactPoint(): BABYLON.Vector3;
2970
- getHeightContactAngle(): number;
2971
- getHeightContactNormal(): BABYLON.Vector3;
2972
- getHeightContactDistance(): number;
2973
- private freeCamera;
2974
- private cameraForwardVector;
2975
- private cameraRightVector;
2976
- private desiredForwardVector;
2977
- private desiredRightVector;
2978
- private lastRotationQuaternion;
2979
- private avatarSkins;
2980
- private avatarRadius;
2981
- private navigationAgent;
2982
- private characterController;
2983
- private verticalVelocity;
2984
- private smoothMotionSpeed;
2985
- private movementSpeed;
2986
- private isRunPressed;
2987
- private isJumpPressed;
2988
- private isCharacterSliding;
2989
- private isCharacterFalling;
2990
- private isCharacterGrounded;
2991
- private isCharacterFallTriggered;
2992
- private isCharacterJumpFrame;
2993
- private isCharacterJumping;
2994
- private isCharacterRising;
2995
- private isCharacterLanding;
2996
- private isCharacterNavigating;
2997
- private navigationAngularSpeed;
2998
- private updateStateParams;
2999
- private animationStateParams;
3000
- private sphereCollisionShape;
3001
- private hasGroundedContact;
3002
- private showDebugColliders;
3003
- private colliderVisibility;
3004
- private colliderRenderGroup;
3005
- private groundCheckDistance;
3006
- private deltaTime;
3007
- private delayJumpTimer;
3008
- private canPlayerJump;
3009
- private animationState;
3010
- private lastJumpVelocity;
3011
- private inputMovementVector;
3012
- private playerLookRotation;
3013
- private playerMovementVelocity;
3014
- private playerRotationQuaternion;
3015
- private playerMoveDirection;
3016
- private forwardDirection;
3017
- private downDirection;
3018
- private climbContact;
3019
- private climbContactNode;
3020
- private climbContactAngle;
3021
- private climbContactPoint;
3022
- private climbContactNormal;
3023
- private climbContactDistance;
3024
- private climbSensorLine;
3025
- private offsetClimbRaycastPosition;
3026
- private startClimbRaycastPosition;
3027
- private endClimbRaycastPosition;
3028
- private heightContact;
3029
- private heightContactNode;
3030
- private heightContactAngle;
3031
- private heightContactPoint;
3032
- private heightContactNormal;
3033
- private heightContactDistance;
3034
- private heightSensorLine;
3035
- private offsetHeightRaycastPosition;
3036
- private startHeightRaycastPosition;
3037
- private endHeightRaycastPosition;
3038
- protected m_velocityOffset: BABYLON.Vector3;
3039
- protected m_actualVelocity: BABYLON.Vector3;
3040
- protected m_linearVelocity: BABYLON.Vector3;
3041
- protected m_lastPosition: BABYLON.Vector3;
3042
- protected m_positionCenter: BABYLON.Vector3;
3043
- protected m_scaledVelocity: number;
3044
- protected playerDrawVelocity: number;
3045
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
3046
- protected awake(): void;
3047
- protected start(): void;
3048
- protected after(): void;
3049
- protected update(): void;
3050
- protected destroy(): void;
3051
- boomPosition: BABYLON.Vector3;
3052
- onPreUpdateObservable: any;
3053
- onBeforeMoveObservable: any;
3054
- onPostUpdateObservable: any;
3055
- onPlayerInputObservable: any;
3056
- onPlayerPositionObservable: any;
3057
- onUpdateActionObservable: any;
3058
- onAnimationStateObservable: any;
3059
- private _deltaMotionPosition;
3060
- getDeltaMotionPosition(): BABYLON.Vector3;
3061
- private _deltaMotionRotation;
3062
- getDeltaMotionRotation(): BABYLON.Quaternion;
3063
- private isPerformingAction;
3064
- private isRootMotionAction;
3065
- private isActionInterruptable;
3066
- private afterActionHandler;
3067
- private performActionTimer;
3068
- private performActionNumber;
3069
- private playerRotationSpeed;
3070
- private rotatePlayerTowards;
3071
- private matchStartTime;
3072
- private matchTargetTime;
3073
- private matchTargetOffset;
3074
- private matchTargetHeight;
3075
- private lockTargetHeight;
3076
- private lastStartHeight;
3077
- private lastTargetHeight;
3078
- private lastTargetNormal;
3079
- private lastTargetRotation;
3080
- private lastDeltaPosition;
3081
- private lastDeltaRotation;
3082
- getIsPerformingAction(): boolean;
3083
- getIsRootMotionAction(): boolean;
3084
- getIsActionInterruptable(): boolean;
3085
- playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
3086
- resetActionAnimationState(): void;
3087
- private updateAnimationActionState;
3088
- setWorldPosition(x: number, y: number, z: number): void;
3089
- private ikLeftFootTarget;
3090
- private ikLeftPoleTarget;
3091
- private ikRightFootTarget;
3092
- private ikRightPoleTarget;
3093
- private abstractSkinMesh;
3094
- private rootBoneTransform;
3095
- private leftFootTransform;
3096
- private leftFootPoleOffset;
3097
- private leftFootMaxAngle;
3098
- private rightFootTransform;
3099
- private rightFootPoleOffset;
3100
- private rightFootMaxAngle;
3101
- private ikLeftController;
3102
- private ikRightController;
3103
- onAnimatorIK: () => void;
3104
- getPlayerMesh(): BABYLON.AbstractMesh;
3105
- getRootHipBone(): BABYLON.Bone;
3106
- getLeftFootBone(): BABYLON.Bone;
3107
- getRightFootBone(): BABYLON.Bone;
3108
- getLeftFootTarget(): BABYLON.Mesh;
3109
- getRightFootTarget(): BABYLON.Mesh;
3110
- getLeftFootPoleTarget(): BABYLON.Mesh;
3111
- getRightFootPoleTarget(): BABYLON.Mesh;
3112
- getRootBoneTransform(): BABYLON.TransformNode;
3113
- getLeftFootTransform(): BABYLON.TransformNode;
3114
- getRightFootTransform(): BABYLON.TransformNode;
3115
- getLeftFootController(): BABYLON.BoneIKController;
3116
- getRightFootController(): BABYLON.BoneIKController;
3117
- isGroundedFootIKActive(): boolean;
3118
- setupBoneControllers(): void;
3119
- private attachAnimationController;
3120
- private updateAnimatorTargetMeshes;
3121
- enableCharacterController(state: boolean): void;
3122
- resetPlayerJumpingState(): void;
3123
- private awakePlayerController;
3124
- private startPlayerController;
3125
- private updatePlayerPosition;
3126
- private updatePlayerController;
3127
- private afterPlayerController;
3128
- private updateCharacterController;
3129
- private castPhysicsClimbingVolumeRay;
3130
- private castPhysicsHeightCheckVolumeRay;
3131
- private getCheckedVerticalVelocity;
3132
- private destroyPlayerController;
3133
- private validateAnimationStateParams;
3134
- }
3135
- export declare enum ThirdPersonControl {
3136
- ThirdPersonTurning = 0,
3137
- ThirdPersonForward = 1
3138
- }
3139
- export declare class FxParticleSystem extends ScriptComponent {
3140
- getParticleEmitter(): BABYLON.AbstractMesh;
3141
- getParticleSystem(): BABYLON.ParticleSystem | BABYLON.GPUParticleSystem;
3142
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
3143
- protected m_particleEmitter: BABYLON.AbstractMesh;
3144
- protected m_particleSystem: BABYLON.ParticleSystem | BABYLON.GPUParticleSystem;
3145
- protected awake(): void;
3146
- protected destroy(): void;
3147
- }
3148
- export declare class SkyMaterialSystem extends ScriptComponent {
3149
- private skyfog;
3150
- private skysize;
3151
- private probesize;
3152
- private reflections;
3153
- private reflectlevel;
3154
- private skytintcolor;
3155
- getSkyboxMesh(): BABYLON.AbstractMesh;
3156
- getSkyMaterial(): BABYLON.SkyMaterial;
3157
- getReflectionProbe(): BABYLON.ReflectionProbe;
3158
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
3159
- protected awake(): void;
3160
- protected start(): void;
3161
- protected update(): void;
3162
- protected late(): void;
3163
- protected after(): void;
3164
- protected destroy(): void;
3165
- protected m_skyboxMesh: BABYLON.Mesh;
3166
- protected m_skyMaterial: BABYLON.SkyMaterial;
3167
- protected m_reflectProbe: BABYLON.ReflectionProbe;
3168
- protected awakeSkyboxMaterial(): void;
3169
- protected destroySkyboxMaterial(): void;
3170
- setSkyboxTintColor(color: BABYLON.Color3): void;
3171
- }
3172
- export declare class WaterMaterialSystem extends ScriptComponent {
3173
- private waterTag;
3174
- private targetSize;
3175
- private renderSize;
3176
- private depthFactor;
3177
- private reflectSkybox;
3178
- private subDivisions;
3179
- private heightOffset;
3180
- private windDirection;
3181
- private windForce;
3182
- private waveSpeed;
3183
- private waveLength;
3184
- private waveHeight;
3185
- private bumpHeight;
3186
- private bumpSuperimpose;
3187
- private bumpAffectsReflection;
3188
- private waterColor;
3189
- private colorBlendFactor;
3190
- private waterColor2;
3191
- private colorBlendFactor2;
3192
- private disableClipPlane;
3193
- private fresnelSeparate;
3194
- getWaterGeometry(): BABYLON.AbstractMesh;
3195
- getWaterMaterial(): BABYLON.WaterMaterial;
3196
- protected m_waterGeometry: BABYLON.AbstractMesh;
3197
- protected m_waterMaterial: BABYLON.WaterMaterial;
3198
- constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
3199
- protected awake(): void;
3200
- protected start(): void;
3201
- protected update(): void;
3202
- protected late(): void;
3203
- protected after(): void;
3204
- protected destroy(): void;
3205
- }
3206
1185
  export declare class SnapshotManager extends ScriptComponent {
3207
1186
  static IsSnapshotRenderingEnabled(): boolean;
3208
1187
  static EnableSnapshotRendering(): void;