@babylonjs-toolkit/next 9.34.10 → 9.34.100
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 +1 -732
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +2 -3212
- package/lib/scenemanager.d.ts +419 -6
- package/lib/scenemanager.d.ts.map +1 -1
- package/lib/scenemanager.js +2588 -236
- package/package.json +1 -1
package/lib/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as BABYLON from "@babylonjs/core/Legacy/legacy";
|
|
2
2
|
declare const BABYLON: any;
|
|
3
|
-
import { ScriptComponent, Animator, RigidbodyPhysics, CustomShaderMaterial, AudioSource, ShurikenParticles, IParticleMainModule, IParticleMinMaxCurve, IUnityVector3, IUnityVector4, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader
|
|
3
|
+
import { ScriptComponent, Animator, RigidbodyPhysics, CustomShaderMaterial, AudioSource, ShurikenParticles, IParticleMainModule, IParticleMinMaxCurve, IUnityVector3, IUnityVector4, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader } from './scenemanager';
|
|
4
4
|
import { LocalMessageBus } from './localmessagebus';
|
|
5
5
|
import { NoiseFunction2D } from './noisefunction2d';
|
|
6
6
|
import { TouchJoystickHandler } from './touchjoystickhandler';
|
|
@@ -3094,102 +3094,6 @@ export declare class VertexSplatPlugin extends CustomShaderMaterialPlugin {
|
|
|
3094
3094
|
prepareDefines(defines: BABYLON.MaterialDefines, scene: BABYLON.Scene, mesh: BABYLON.AbstractMesh): void;
|
|
3095
3095
|
bindForSubMesh(uniformBuffer: BABYLON.UniformBuffer, scene: BABYLON.Scene, engine: BABYLON.AbstractEngine, subMesh: BABYLON.SubMesh): void;
|
|
3096
3096
|
}
|
|
3097
|
-
export declare class DefaultCameraSystem extends ScriptComponent {
|
|
3098
|
-
protected static PlayerOneCamera: BABYLON.FreeCamera;
|
|
3099
|
-
protected static PlayerTwoCamera: BABYLON.FreeCamera;
|
|
3100
|
-
protected static PlayerThreeCamera: BABYLON.FreeCamera;
|
|
3101
|
-
protected static PlayerFourCamera: BABYLON.FreeCamera;
|
|
3102
|
-
protected static XRExperienceHelper: BABYLON.WebXRDefaultExperience;
|
|
3103
|
-
private static multiPlayerView;
|
|
3104
|
-
private static multiPlayerCount;
|
|
3105
|
-
private static multiPlayerCameras;
|
|
3106
|
-
private static stereoCameras;
|
|
3107
|
-
private static startupMode;
|
|
3108
|
-
private static cameraReady;
|
|
3109
|
-
private static cameraInstance;
|
|
3110
|
-
static IsCameraSystemReady(): boolean;
|
|
3111
|
-
static OnXRExperienceHelperObservable: any;
|
|
3112
|
-
static FOLLOW_SPEED: number;
|
|
3113
|
-
private mainCamera;
|
|
3114
|
-
private cameraType;
|
|
3115
|
-
private cameraInertia;
|
|
3116
|
-
private cameraController;
|
|
3117
|
-
private immersiveOptions;
|
|
3118
|
-
private arcRotateConfig;
|
|
3119
|
-
private multiPlayerSetup;
|
|
3120
|
-
private fullScreenToggle;
|
|
3121
|
-
private setPointerLock;
|
|
3122
|
-
private setCameraTarget;
|
|
3123
|
-
private setSpatialAudio;
|
|
3124
|
-
protected m_cameraRig: BABYLON.TargetCamera;
|
|
3125
|
-
isMainCamera(): boolean;
|
|
3126
|
-
getCameraType(): number;
|
|
3127
|
-
getTargetTransform(): BABYLON.TransformNode;
|
|
3128
|
-
setTargetTransform(target: BABYLON.TransformNode): void;
|
|
3129
|
-
enableSpatialAudio(value: boolean): void;
|
|
3130
|
-
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
3131
|
-
protected awake(): void;
|
|
3132
|
-
protected start(): void;
|
|
3133
|
-
protected update(): void;
|
|
3134
|
-
protected destroy(): void;
|
|
3135
|
-
protected awakeCameraSystemState(): void;
|
|
3136
|
-
protected startCameraSystemState(): Promise<void>;
|
|
3137
|
-
protected updateCameraSystemState(): void;
|
|
3138
|
-
protected cleanCameraSystemState(): void;
|
|
3139
|
-
protected destroyCameraSystemState(): void;
|
|
3140
|
-
targetCameraOffset: BABYLON.Vector3;
|
|
3141
|
-
getCameraPivotPosition(): BABYLON.Vector3;
|
|
3142
|
-
getCameraPivotRotation(): BABYLON.Quaternion;
|
|
3143
|
-
getCameraBoomNode(): BABYLON.TransformNode;
|
|
3144
|
-
getCameraTransform(): BABYLON.TransformNode;
|
|
3145
|
-
private cameraNode;
|
|
3146
|
-
private cameraPivot;
|
|
3147
|
-
private cameraDistance;
|
|
3148
|
-
private cameraPivotOffset;
|
|
3149
|
-
private cameraBoomPosition;
|
|
3150
|
-
private dollyDirection;
|
|
3151
|
-
private rotationEulers;
|
|
3152
|
-
private scaledCamDirection;
|
|
3153
|
-
private scaledMaxDirection;
|
|
3154
|
-
private parentNodePosition;
|
|
3155
|
-
private maximumCameraPos;
|
|
3156
|
-
private cameraRaycastShape;
|
|
3157
|
-
private targetRotationVector;
|
|
3158
|
-
private resetCameraRotation;
|
|
3159
|
-
private updateCameraController;
|
|
3160
|
-
getBoomArmMaxDistance(): number;
|
|
3161
|
-
setBoomArmMaxDistance(distance: number): void;
|
|
3162
|
-
setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
|
|
3163
|
-
private smoothBoomArmLength;
|
|
3164
|
-
private smoothBoomArmSpeed;
|
|
3165
|
-
private updateSmoothBoomArmLength;
|
|
3166
|
-
static EnableTracking(value: boolean): void;
|
|
3167
|
-
static IsTrackingEnabled(): boolean;
|
|
3168
|
-
static SetAutoUpdate(value: boolean): void;
|
|
3169
|
-
static IsAutoUpdateEnabled(): boolean;
|
|
3170
|
-
static GetFollowTarget(): BABYLON.TransformNode;
|
|
3171
|
-
static SetFollowTarget(target: BABYLON.TransformNode): void;
|
|
3172
|
-
static ResetFollowTarget(): void;
|
|
3173
|
-
static UpdateFollowTarget(): void;
|
|
3174
|
-
static GetWebXR(): BABYLON.WebXRDefaultExperience;
|
|
3175
|
-
static IsInWebXR(): boolean;
|
|
3176
|
-
private static SetupNavigationWebXR;
|
|
3177
|
-
static GetMainCamera(scene: BABYLON.Scene, detach?: boolean): BABYLON.FreeCamera;
|
|
3178
|
-
static GetPlayerCamera(scene: BABYLON.Scene, player?: PlayerNumber, detach?: boolean): BABYLON.FreeCamera;
|
|
3179
|
-
static GetCameraTransform(scene: BABYLON.Scene, player?: PlayerNumber): BABYLON.TransformNode;
|
|
3180
|
-
static IsStereoCameras(): boolean;
|
|
3181
|
-
static IsMultiPlayerView(): boolean;
|
|
3182
|
-
static GetMultiPlayerCount(): number;
|
|
3183
|
-
static ActivateMultiPlayerCameras(scene: BABYLON.Scene): boolean;
|
|
3184
|
-
static DisposeMultiPlayerCameras(): void;
|
|
3185
|
-
static SetMultiPlayerViewLayout(scene: BABYLON.Scene, totalNumPlayers: number): boolean;
|
|
3186
|
-
}
|
|
3187
|
-
export interface IEditorArcRtotate {
|
|
3188
|
-
alpha: number;
|
|
3189
|
-
beta: number;
|
|
3190
|
-
radius: number;
|
|
3191
|
-
target: IUnityVector3;
|
|
3192
|
-
}
|
|
3193
3097
|
export declare class DebugInformation extends ScriptComponent {
|
|
3194
3098
|
static GetVersion(): string;
|
|
3195
3099
|
private keys;
|
|
@@ -3306,641 +3210,6 @@ export declare class MobileShadowMaterial extends ScriptComponent {
|
|
|
3306
3210
|
protected awake(): void;
|
|
3307
3211
|
protected destroy(): void;
|
|
3308
3212
|
}
|
|
3309
|
-
export declare class RemotePlayerController extends ScriptComponent {
|
|
3310
|
-
updateStateParams: boolean;
|
|
3311
|
-
smoothMotionTime: number;
|
|
3312
|
-
smoothInputVectors: boolean;
|
|
3313
|
-
private animator;
|
|
3314
|
-
private animationStateParams;
|
|
3315
|
-
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
3316
|
-
protected awake(): void;
|
|
3317
|
-
protected update(): void;
|
|
3318
|
-
protected destroy(): void;
|
|
3319
|
-
private attachAnimationController;
|
|
3320
|
-
private validateAnimationStateParams;
|
|
3321
|
-
}
|
|
3322
|
-
export declare class StandardPlayerController extends ScriptComponent {
|
|
3323
|
-
static MIN_VERTICAL_VELOCITY: number;
|
|
3324
|
-
static MIN_GROUND_DISTANCE: number;
|
|
3325
|
-
static MIN_MOVE_EPSILON: number;
|
|
3326
|
-
static MIN_TIMER_OFFSET: number;
|
|
3327
|
-
static MIN_SLOPE_LIMIT: number;
|
|
3328
|
-
static PLAYER_HEIGHT: string;
|
|
3329
|
-
enableInput: boolean;
|
|
3330
|
-
attachCamera: boolean;
|
|
3331
|
-
rotateCamera: boolean;
|
|
3332
|
-
mouseWheel: boolean;
|
|
3333
|
-
toggleView: boolean;
|
|
3334
|
-
freeLooking: boolean;
|
|
3335
|
-
requireSprintButton: boolean;
|
|
3336
|
-
gravitationalForce: number;
|
|
3337
|
-
minFallVelocity: number;
|
|
3338
|
-
verticalStepSpeed: number;
|
|
3339
|
-
minStepUpHeight: number;
|
|
3340
|
-
rigidBodyMass: number;
|
|
3341
|
-
airbornTimeout: number;
|
|
3342
|
-
maxAngle: number;
|
|
3343
|
-
speedFactor: number;
|
|
3344
|
-
rootMotion: boolean;
|
|
3345
|
-
moveSpeed: number;
|
|
3346
|
-
walkSpeed: number;
|
|
3347
|
-
lookSpeed: number;
|
|
3348
|
-
jumpSpeed: number;
|
|
3349
|
-
jumpDelay: number;
|
|
3350
|
-
eyesHeight: number;
|
|
3351
|
-
pivotHeight: number;
|
|
3352
|
-
maxDistance: number;
|
|
3353
|
-
scrollSpeed: number;
|
|
3354
|
-
topLookLimit: number;
|
|
3355
|
-
downLookLimit: number;
|
|
3356
|
-
lowTurnSpeed: number;
|
|
3357
|
-
highTurnSpeed: number;
|
|
3358
|
-
smoothDampTime: number;
|
|
3359
|
-
smoothInputVectors: boolean;
|
|
3360
|
-
smoothAcceleration: boolean;
|
|
3361
|
-
accelerationSpeed: number;
|
|
3362
|
-
decelerationSpeed: number;
|
|
3363
|
-
avatarSkinTag: string;
|
|
3364
|
-
climbVolumeTag: string;
|
|
3365
|
-
vaultVolumeTag: string;
|
|
3366
|
-
maxHeightRanges: any;
|
|
3367
|
-
useClimbSystem: boolean;
|
|
3368
|
-
distanceFactor: number;
|
|
3369
|
-
cameraSmoothing: number;
|
|
3370
|
-
cameraCollisions: boolean;
|
|
3371
|
-
inputMagnitude: number;
|
|
3372
|
-
analogMovement: boolean;
|
|
3373
|
-
landingEpsilon: number;
|
|
3374
|
-
minimumDistance: number;
|
|
3375
|
-
movementAllowed: boolean;
|
|
3376
|
-
playerInputX: number;
|
|
3377
|
-
playerInputZ: number;
|
|
3378
|
-
playerMouseX: number;
|
|
3379
|
-
playerMouseY: number;
|
|
3380
|
-
runKeyRequired: boolean;
|
|
3381
|
-
buttonRun: number;
|
|
3382
|
-
keyboardRun: number;
|
|
3383
|
-
buttonJump: number;
|
|
3384
|
-
keyboardJump: number;
|
|
3385
|
-
buttonCamera: number;
|
|
3386
|
-
keyboardCamera: number;
|
|
3387
|
-
postNetworkAttributes: boolean;
|
|
3388
|
-
playerNumber: PlayerNumber;
|
|
3389
|
-
boomPosition: BABYLON.Vector3;
|
|
3390
|
-
airbornVelocity: BABYLON.Vector3;
|
|
3391
|
-
movementVelocity: BABYLON.Vector3;
|
|
3392
|
-
targetCameraOffset: BABYLON.Vector3;
|
|
3393
|
-
isAnimationEnabled(): boolean;
|
|
3394
|
-
isRunButtonPressed(): boolean;
|
|
3395
|
-
isJumpButtonPressed(): boolean;
|
|
3396
|
-
getPlayerJumped(): boolean;
|
|
3397
|
-
getPlayerJumping(): boolean;
|
|
3398
|
-
getPlayerFalling(): boolean;
|
|
3399
|
-
getPlayerSliding(): boolean;
|
|
3400
|
-
getPlayerGrounded(): boolean;
|
|
3401
|
-
getFallTriggered(): boolean;
|
|
3402
|
-
getMovementSpeed(): number;
|
|
3403
|
-
getCameraBoomNode(): BABYLON.TransformNode;
|
|
3404
|
-
getCameraTransform(): BABYLON.TransformNode;
|
|
3405
|
-
getAnimator(): Animator;
|
|
3406
|
-
getVerticalVelocity(): number;
|
|
3407
|
-
getCharacterController(): CharacterController;
|
|
3408
|
-
getPlayerLookRotation(): BABYLON.Vector3;
|
|
3409
|
-
getPlayerMoveDirection(): PlayerMoveDirection;
|
|
3410
|
-
getInputMovementVector(): BABYLON.Vector3;
|
|
3411
|
-
getInputMagnitudeValue(): number;
|
|
3412
|
-
getCameraPivotPosition(): BABYLON.Vector3;
|
|
3413
|
-
getCameraPivotRotation(): BABYLON.Quaternion;
|
|
3414
|
-
rayClimbOffset: number;
|
|
3415
|
-
rayClimbLength: number;
|
|
3416
|
-
getClimbContact(): boolean;
|
|
3417
|
-
getClimbContactNode(): BABYLON.TransformNode;
|
|
3418
|
-
getClimbContactPoint(): BABYLON.Vector3;
|
|
3419
|
-
getClimbContactAngle(): number;
|
|
3420
|
-
getClimbContactNormal(): BABYLON.Vector3;
|
|
3421
|
-
getClimbContactDistance(): number;
|
|
3422
|
-
canClimbObstaclePredicate: (action: number) => boolean;
|
|
3423
|
-
rayHeightOffset: number;
|
|
3424
|
-
rayHeightLength: number;
|
|
3425
|
-
getHeightContact(): boolean;
|
|
3426
|
-
getHeightContactNode(): BABYLON.TransformNode;
|
|
3427
|
-
getHeightContactPoint(): BABYLON.Vector3;
|
|
3428
|
-
getHeightContactAngle(): number;
|
|
3429
|
-
getHeightContactNormal(): BABYLON.Vector3;
|
|
3430
|
-
getHeightContactDistance(): number;
|
|
3431
|
-
private abstractMesh;
|
|
3432
|
-
private cameraDistance;
|
|
3433
|
-
private forwardCamera;
|
|
3434
|
-
private avatarRadius;
|
|
3435
|
-
private groundingObject;
|
|
3436
|
-
private groundingCallback;
|
|
3437
|
-
private dollyDirection;
|
|
3438
|
-
private cameraEulers;
|
|
3439
|
-
private rotationEulers;
|
|
3440
|
-
private cameraPivotOffset;
|
|
3441
|
-
private cameraForwardVector;
|
|
3442
|
-
private cameraRightVector;
|
|
3443
|
-
private desiredForwardVector;
|
|
3444
|
-
private desiredRightVector;
|
|
3445
|
-
private lastRotationQuaternion;
|
|
3446
|
-
private scaledCamDirection;
|
|
3447
|
-
private scaledMaxDirection;
|
|
3448
|
-
private parentNodePosition;
|
|
3449
|
-
private maximumCameraPos;
|
|
3450
|
-
private tempWorldPosition;
|
|
3451
|
-
private cameraRaycastShape;
|
|
3452
|
-
private defaultRaycastGroup;
|
|
3453
|
-
private defaultRaycastMask;
|
|
3454
|
-
private cameraRaycastMask;
|
|
3455
|
-
private avatarSkins;
|
|
3456
|
-
private cameraNode;
|
|
3457
|
-
private cameraPivot;
|
|
3458
|
-
private navigationAgent;
|
|
3459
|
-
private characterController;
|
|
3460
|
-
private verticalVelocity;
|
|
3461
|
-
private smoothMotionSpeed;
|
|
3462
|
-
private movementSpeed;
|
|
3463
|
-
private isRunPressed;
|
|
3464
|
-
private isJumpPressed;
|
|
3465
|
-
private isCharacterSliding;
|
|
3466
|
-
private isCharacterFalling;
|
|
3467
|
-
private isCharacterGrounded;
|
|
3468
|
-
private isCharacterFallTriggered;
|
|
3469
|
-
private isCharacterJumpFrame;
|
|
3470
|
-
private isCharacterJumping;
|
|
3471
|
-
private isCharacterLanding;
|
|
3472
|
-
private isCharacterRising;
|
|
3473
|
-
private isCharacterNavigating;
|
|
3474
|
-
private navigationAngularSpeed;
|
|
3475
|
-
private updateStateParams;
|
|
3476
|
-
private animationStateParams;
|
|
3477
|
-
private sphereCollisionShape;
|
|
3478
|
-
private hasGroundedContact;
|
|
3479
|
-
private showDebugColliders;
|
|
3480
|
-
private colliderVisibility;
|
|
3481
|
-
private colliderRenderGroup;
|
|
3482
|
-
private groundCheckDistance;
|
|
3483
|
-
private deltaTime;
|
|
3484
|
-
private minJumpTimer;
|
|
3485
|
-
private delayJumpTimer;
|
|
3486
|
-
private playerControl;
|
|
3487
|
-
private canPlayerJump;
|
|
3488
|
-
private animator;
|
|
3489
|
-
private lastJumpVelocity;
|
|
3490
|
-
private inputMovementVector;
|
|
3491
|
-
private playerLookRotation;
|
|
3492
|
-
private playerRotationVector;
|
|
3493
|
-
private playerMovementVelocity;
|
|
3494
|
-
private playerRotationQuaternion;
|
|
3495
|
-
private playerMoveDirection;
|
|
3496
|
-
private forwardDirection;
|
|
3497
|
-
private downDirection;
|
|
3498
|
-
private climbContact;
|
|
3499
|
-
private climbContactNode;
|
|
3500
|
-
private climbContactAngle;
|
|
3501
|
-
private climbContactPoint;
|
|
3502
|
-
private climbContactNormal;
|
|
3503
|
-
private climbContactDistance;
|
|
3504
|
-
private climbSensorLine;
|
|
3505
|
-
private offsetClimbRaycastPosition;
|
|
3506
|
-
private startClimbRaycastPosition;
|
|
3507
|
-
private endClimbRaycastPosition;
|
|
3508
|
-
private heightContact;
|
|
3509
|
-
private heightContactNode;
|
|
3510
|
-
private heightContactAngle;
|
|
3511
|
-
private heightContactPoint;
|
|
3512
|
-
private heightContactNormal;
|
|
3513
|
-
private heightContactDistance;
|
|
3514
|
-
private heightSensorLine;
|
|
3515
|
-
private offsetHeightRaycastPosition;
|
|
3516
|
-
private startHeightRaycastPosition;
|
|
3517
|
-
private endHeightRaycastPosition;
|
|
3518
|
-
protected m_velocityOffset: BABYLON.Vector3;
|
|
3519
|
-
protected m_actualVelocity: BABYLON.Vector3;
|
|
3520
|
-
protected m_linearVelocity: BABYLON.Vector3;
|
|
3521
|
-
protected m_lastPosition: BABYLON.Vector3;
|
|
3522
|
-
protected m_positionCenter: BABYLON.Vector3;
|
|
3523
|
-
protected m_scaledVelocity: number;
|
|
3524
|
-
protected playerDrawVelocity: number;
|
|
3525
|
-
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
3526
|
-
protected awake(): void;
|
|
3527
|
-
protected start(): void;
|
|
3528
|
-
protected after(): void;
|
|
3529
|
-
protected update(): void;
|
|
3530
|
-
protected destroy(): void;
|
|
3531
|
-
onPreUpdateObservable: any;
|
|
3532
|
-
onBeforeMoveObservable: any;
|
|
3533
|
-
onPostUpdateObservable: any;
|
|
3534
|
-
onPlayerInputObservable: any;
|
|
3535
|
-
onPlayerPositionObservable: any;
|
|
3536
|
-
onUpdateActionObservable: any;
|
|
3537
|
-
private animatorMoveObserver;
|
|
3538
|
-
private exportedApplyRootMotion;
|
|
3539
|
-
private readonly rootMotionVelocity;
|
|
3540
|
-
private syncAnimatorMoveTaker;
|
|
3541
|
-
private onAnimatorMove;
|
|
3542
|
-
private isPerformingAction;
|
|
3543
|
-
private isRootMotionAction;
|
|
3544
|
-
private isActionInterruptable;
|
|
3545
|
-
private afterActionHandler;
|
|
3546
|
-
private performActionTimer;
|
|
3547
|
-
private performActionNumber;
|
|
3548
|
-
private playerRotationSpeed;
|
|
3549
|
-
private rotatePlayerTowards;
|
|
3550
|
-
private matchStartTime;
|
|
3551
|
-
private matchTargetTime;
|
|
3552
|
-
private matchTargetOffset;
|
|
3553
|
-
private matchTargetHeight;
|
|
3554
|
-
private lockTargetHeight;
|
|
3555
|
-
private lastStartHeight;
|
|
3556
|
-
private lastTargetHeight;
|
|
3557
|
-
private lastTargetNormal;
|
|
3558
|
-
private lastTargetRotation;
|
|
3559
|
-
private lastDeltaPosition;
|
|
3560
|
-
private lastDeltaRotation;
|
|
3561
|
-
private smoothedPlayerHeight;
|
|
3562
|
-
private readonly playerHeightVelocity;
|
|
3563
|
-
private actionStateHash;
|
|
3564
|
-
private actionStateEntered;
|
|
3565
|
-
getIsPerformingAction(): boolean;
|
|
3566
|
-
getIsRootMotionAction(): boolean;
|
|
3567
|
-
getIsActionInterruptable(): boolean;
|
|
3568
|
-
playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
|
|
3569
|
-
resetActionAnimationState(): void;
|
|
3570
|
-
private updateAnimationActionState;
|
|
3571
|
-
private applyActionRootMotion;
|
|
3572
|
-
private applyHeightMatch;
|
|
3573
|
-
private rotateTowardsClimbSurface;
|
|
3574
|
-
setWorldPosition(x: number, y: number, z: number): void;
|
|
3575
|
-
setPlayerControl(mode: PlayerInputControl): void;
|
|
3576
|
-
togglePlayerControl(): void;
|
|
3577
|
-
private showAvatarSkins;
|
|
3578
|
-
attachPlayerCamera(player: PlayerNumber): void;
|
|
3579
|
-
private ikLeftFootTarget;
|
|
3580
|
-
private ikLeftPoleTarget;
|
|
3581
|
-
private ikRightFootTarget;
|
|
3582
|
-
private ikRightPoleTarget;
|
|
3583
|
-
private abstractSkinMesh;
|
|
3584
|
-
private rootBoneTransform;
|
|
3585
|
-
private leftFootTransform;
|
|
3586
|
-
private leftFootPoleOffset;
|
|
3587
|
-
private leftFootMaxAngle;
|
|
3588
|
-
private rightFootTransform;
|
|
3589
|
-
private rightFootPoleOffset;
|
|
3590
|
-
private rightFootMaxAngle;
|
|
3591
|
-
private ikLeftController;
|
|
3592
|
-
private ikRightController;
|
|
3593
|
-
onAnimatorIK: () => void;
|
|
3594
|
-
getPlayerMesh(): BABYLON.AbstractMesh;
|
|
3595
|
-
getRootHipBone(): BABYLON.Bone;
|
|
3596
|
-
getLeftFootBone(): BABYLON.Bone;
|
|
3597
|
-
getRightFootBone(): BABYLON.Bone;
|
|
3598
|
-
getLeftFootTarget(): BABYLON.Mesh;
|
|
3599
|
-
getRightFootTarget(): BABYLON.Mesh;
|
|
3600
|
-
getLeftFootPoleTarget(): BABYLON.Mesh;
|
|
3601
|
-
getRightFootPoleTarget(): BABYLON.Mesh;
|
|
3602
|
-
getRootBoneTransform(): BABYLON.TransformNode;
|
|
3603
|
-
getLeftFootTransform(): BABYLON.TransformNode;
|
|
3604
|
-
getRightFootTransform(): BABYLON.TransformNode;
|
|
3605
|
-
getLeftFootController(): BABYLON.BoneIKController;
|
|
3606
|
-
getRightFootController(): BABYLON.BoneIKController;
|
|
3607
|
-
isGroundedFootIKActive(): boolean;
|
|
3608
|
-
setupBoneControllers(): void;
|
|
3609
|
-
private attachAnimationController;
|
|
3610
|
-
private onAnimatorStateEnter;
|
|
3611
|
-
private onAnimatorStateExit;
|
|
3612
|
-
private onAnimatorIKPass;
|
|
3613
|
-
private updateAnimatorTargetMeshes;
|
|
3614
|
-
enableCharacterController(state: boolean): void;
|
|
3615
|
-
resetPlayerRotation(): void;
|
|
3616
|
-
resetPlayerJumpingState(): void;
|
|
3617
|
-
private awakePlayerController;
|
|
3618
|
-
private startPlayerController;
|
|
3619
|
-
private updatePlayerPosition;
|
|
3620
|
-
private updatePlayerController;
|
|
3621
|
-
private afterPlayerController;
|
|
3622
|
-
private updateCharacterController;
|
|
3623
|
-
private updateCameraController;
|
|
3624
|
-
getBoomArmMaxDistance(): number;
|
|
3625
|
-
setBoomArmMaxDistance(distance: number): void;
|
|
3626
|
-
setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
|
|
3627
|
-
private smoothBoomArmLength;
|
|
3628
|
-
private smoothBoomArmSpeed;
|
|
3629
|
-
private updateSmoothBoomArmLength;
|
|
3630
|
-
private castPhysicsClimbingVolumeRay;
|
|
3631
|
-
private castPhysicsHeightCheckVolumeRay;
|
|
3632
|
-
private getCheckedVerticalVelocity;
|
|
3633
|
-
private destroyPlayerController;
|
|
3634
|
-
private validateAnimationStateParams;
|
|
3635
|
-
static ApplyAnimationStateParamDefaults(params: AnimationStateParams): AnimationStateParams;
|
|
3636
|
-
}
|
|
3637
|
-
export interface AnimationStateParams {
|
|
3638
|
-
moveDirection: string;
|
|
3639
|
-
inputMagnitude: string;
|
|
3640
|
-
horizontalInput: string;
|
|
3641
|
-
verticalInput: string;
|
|
3642
|
-
mouseXInput: string;
|
|
3643
|
-
mouseYInput: string;
|
|
3644
|
-
heightInput: string;
|
|
3645
|
-
speedInput: string;
|
|
3646
|
-
motionSpeed?: string;
|
|
3647
|
-
jumpFrame: string;
|
|
3648
|
-
jumpState: string;
|
|
3649
|
-
actionState: string;
|
|
3650
|
-
fallingState: string;
|
|
3651
|
-
slidingState: string;
|
|
3652
|
-
groundedState: string;
|
|
3653
|
-
}
|
|
3654
|
-
export declare enum PlayerInputControl {
|
|
3655
|
-
FirstPersonStrafing = 0,
|
|
3656
|
-
ThirdPersonStrafing = 1
|
|
3657
|
-
}
|
|
3658
|
-
export declare enum PlayerMoveDirection {
|
|
3659
|
-
Stationary = 0,
|
|
3660
|
-
Forward = 1,
|
|
3661
|
-
ForwardLeft = 2,
|
|
3662
|
-
ForwardRight = 3,
|
|
3663
|
-
Backward = 4,
|
|
3664
|
-
BackwardLeft = 5,
|
|
3665
|
-
BackwardRight = 6,
|
|
3666
|
-
StrafingLeft = 7,
|
|
3667
|
-
StrafingRight = 8
|
|
3668
|
-
}
|
|
3669
|
-
export declare enum ActionAnimationType {
|
|
3670
|
-
Neutral = 0,
|
|
3671
|
-
StepUp = 1,
|
|
3672
|
-
JumpUp = 2,
|
|
3673
|
-
ClimbUp = 3,
|
|
3674
|
-
VaultOver = 4
|
|
3675
|
-
}
|
|
3676
|
-
export declare class ThirdPersonPlayerController extends ScriptComponent {
|
|
3677
|
-
static MIN_VERTICAL_VELOCITY: number;
|
|
3678
|
-
static MIN_GROUND_DISTANCE: number;
|
|
3679
|
-
static MIN_MOVE_EPSILON: number;
|
|
3680
|
-
static MIN_TIMER_OFFSET: number;
|
|
3681
|
-
static MIN_SLOPE_LIMIT: number;
|
|
3682
|
-
static PLAYER_HEIGHT: string;
|
|
3683
|
-
enableInput: boolean;
|
|
3684
|
-
attachCamera: boolean;
|
|
3685
|
-
mouseWheel: boolean;
|
|
3686
|
-
requireSprintButton: boolean;
|
|
3687
|
-
gravitationalForce: number;
|
|
3688
|
-
minFallVelocity: number;
|
|
3689
|
-
verticalStepSpeed: number;
|
|
3690
|
-
minStepUpHeight: number;
|
|
3691
|
-
rigidBodyMass: number;
|
|
3692
|
-
airbornTimeout: number;
|
|
3693
|
-
maxAngle: number;
|
|
3694
|
-
speedFactor: number;
|
|
3695
|
-
rootMotion: boolean;
|
|
3696
|
-
moveSpeed: number;
|
|
3697
|
-
walkSpeed: number;
|
|
3698
|
-
jumpSpeed: number;
|
|
3699
|
-
jumpDelay: number;
|
|
3700
|
-
lowTurnSpeed: number;
|
|
3701
|
-
highTurnSpeed: number;
|
|
3702
|
-
smoothDampTime: number;
|
|
3703
|
-
smoothInputVectors: boolean;
|
|
3704
|
-
smoothAcceleration: boolean;
|
|
3705
|
-
accelerationSpeed: number;
|
|
3706
|
-
decelerationSpeed: number;
|
|
3707
|
-
climbVolumeTag: string;
|
|
3708
|
-
vaultVolumeTag: string;
|
|
3709
|
-
maxHeightRanges: any;
|
|
3710
|
-
useClimbSystem: boolean;
|
|
3711
|
-
distanceFactor: number;
|
|
3712
|
-
inputMagnitude: number;
|
|
3713
|
-
analogMovement: boolean;
|
|
3714
|
-
landingEpsilon: number;
|
|
3715
|
-
minimumDistance: number;
|
|
3716
|
-
movementAllowed: boolean;
|
|
3717
|
-
playerInputX: number;
|
|
3718
|
-
playerInputZ: number;
|
|
3719
|
-
playerMouseX: number;
|
|
3720
|
-
playerMouseY: number;
|
|
3721
|
-
runKeyRequired: boolean;
|
|
3722
|
-
buttonRun: number;
|
|
3723
|
-
keyboardRun: number;
|
|
3724
|
-
buttonJump: number;
|
|
3725
|
-
keyboardJump: number;
|
|
3726
|
-
buttonCamera: number;
|
|
3727
|
-
keyboardCamera: number;
|
|
3728
|
-
postNetworkAttributes: boolean;
|
|
3729
|
-
playerNumber: PlayerNumber;
|
|
3730
|
-
airbornVelocity: BABYLON.Vector3;
|
|
3731
|
-
movementVelocity: BABYLON.Vector3;
|
|
3732
|
-
isAnimationEnabled(): boolean;
|
|
3733
|
-
isRunButtonPressed(): boolean;
|
|
3734
|
-
isJumpButtonPressed(): boolean;
|
|
3735
|
-
getPlayerJumped(): boolean;
|
|
3736
|
-
getPlayerJumping(): boolean;
|
|
3737
|
-
getPlayerFalling(): boolean;
|
|
3738
|
-
getPlayerSliding(): boolean;
|
|
3739
|
-
getPlayerGrounded(): boolean;
|
|
3740
|
-
getFallTriggered(): boolean;
|
|
3741
|
-
getMovementSpeed(): number;
|
|
3742
|
-
getAnimator(): Animator;
|
|
3743
|
-
getVerticalVelocity(): number;
|
|
3744
|
-
getCharacterController(): CharacterController;
|
|
3745
|
-
getPlayerLookRotation(): BABYLON.Vector3;
|
|
3746
|
-
getPlayerMoveDirection(): PlayerMoveDirection;
|
|
3747
|
-
getInputMovementVector(): BABYLON.Vector3;
|
|
3748
|
-
getInputMagnitudeValue(): number;
|
|
3749
|
-
rayClimbOffset: number;
|
|
3750
|
-
rayClimbLength: number;
|
|
3751
|
-
getClimbContact(): boolean;
|
|
3752
|
-
getClimbContactNode(): BABYLON.TransformNode;
|
|
3753
|
-
getClimbContactPoint(): BABYLON.Vector3;
|
|
3754
|
-
getClimbContactAngle(): number;
|
|
3755
|
-
getClimbContactNormal(): BABYLON.Vector3;
|
|
3756
|
-
getClimbContactDistance(): number;
|
|
3757
|
-
canClimbObstaclePredicate: (action: number) => boolean;
|
|
3758
|
-
rayHeightOffset: number;
|
|
3759
|
-
rayHeightLength: number;
|
|
3760
|
-
getHeightContact(): boolean;
|
|
3761
|
-
getHeightContactNode(): BABYLON.TransformNode;
|
|
3762
|
-
getHeightContactPoint(): BABYLON.Vector3;
|
|
3763
|
-
getHeightContactAngle(): number;
|
|
3764
|
-
getHeightContactNormal(): BABYLON.Vector3;
|
|
3765
|
-
getHeightContactDistance(): number;
|
|
3766
|
-
private freeCamera;
|
|
3767
|
-
private cameraForwardVector;
|
|
3768
|
-
private cameraRightVector;
|
|
3769
|
-
private desiredForwardVector;
|
|
3770
|
-
private desiredRightVector;
|
|
3771
|
-
private lastRotationQuaternion;
|
|
3772
|
-
private avatarSkins;
|
|
3773
|
-
private avatarRadius;
|
|
3774
|
-
private navigationAgent;
|
|
3775
|
-
private characterController;
|
|
3776
|
-
private verticalVelocity;
|
|
3777
|
-
private smoothMotionSpeed;
|
|
3778
|
-
private movementSpeed;
|
|
3779
|
-
private isRunPressed;
|
|
3780
|
-
private isJumpPressed;
|
|
3781
|
-
private isCharacterSliding;
|
|
3782
|
-
private isCharacterFalling;
|
|
3783
|
-
private isCharacterGrounded;
|
|
3784
|
-
private isCharacterFallTriggered;
|
|
3785
|
-
private isCharacterJumpFrame;
|
|
3786
|
-
private isCharacterJumping;
|
|
3787
|
-
private isCharacterRising;
|
|
3788
|
-
private isCharacterLanding;
|
|
3789
|
-
private isCharacterNavigating;
|
|
3790
|
-
private navigationAngularSpeed;
|
|
3791
|
-
private updateStateParams;
|
|
3792
|
-
private animationStateParams;
|
|
3793
|
-
private sphereCollisionShape;
|
|
3794
|
-
private hasGroundedContact;
|
|
3795
|
-
private showDebugColliders;
|
|
3796
|
-
private colliderVisibility;
|
|
3797
|
-
private colliderRenderGroup;
|
|
3798
|
-
private groundCheckDistance;
|
|
3799
|
-
private deltaTime;
|
|
3800
|
-
private delayJumpTimer;
|
|
3801
|
-
private canPlayerJump;
|
|
3802
|
-
private animator;
|
|
3803
|
-
private lastJumpVelocity;
|
|
3804
|
-
private inputMovementVector;
|
|
3805
|
-
private playerLookRotation;
|
|
3806
|
-
private playerMovementVelocity;
|
|
3807
|
-
private playerRotationQuaternion;
|
|
3808
|
-
private playerMoveDirection;
|
|
3809
|
-
private forwardDirection;
|
|
3810
|
-
private downDirection;
|
|
3811
|
-
private climbContact;
|
|
3812
|
-
private climbContactNode;
|
|
3813
|
-
private climbContactAngle;
|
|
3814
|
-
private climbContactPoint;
|
|
3815
|
-
private climbContactNormal;
|
|
3816
|
-
private climbContactDistance;
|
|
3817
|
-
private climbSensorLine;
|
|
3818
|
-
private offsetClimbRaycastPosition;
|
|
3819
|
-
private startClimbRaycastPosition;
|
|
3820
|
-
private endClimbRaycastPosition;
|
|
3821
|
-
private heightContact;
|
|
3822
|
-
private heightContactNode;
|
|
3823
|
-
private heightContactAngle;
|
|
3824
|
-
private heightContactPoint;
|
|
3825
|
-
private heightContactNormal;
|
|
3826
|
-
private heightContactDistance;
|
|
3827
|
-
private heightSensorLine;
|
|
3828
|
-
private offsetHeightRaycastPosition;
|
|
3829
|
-
private startHeightRaycastPosition;
|
|
3830
|
-
private endHeightRaycastPosition;
|
|
3831
|
-
protected m_velocityOffset: BABYLON.Vector3;
|
|
3832
|
-
protected m_actualVelocity: BABYLON.Vector3;
|
|
3833
|
-
protected m_linearVelocity: BABYLON.Vector3;
|
|
3834
|
-
protected m_lastPosition: BABYLON.Vector3;
|
|
3835
|
-
protected m_positionCenter: BABYLON.Vector3;
|
|
3836
|
-
protected m_scaledVelocity: number;
|
|
3837
|
-
protected playerDrawVelocity: number;
|
|
3838
|
-
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
3839
|
-
protected awake(): void;
|
|
3840
|
-
protected start(): void;
|
|
3841
|
-
protected after(): void;
|
|
3842
|
-
protected update(): void;
|
|
3843
|
-
protected destroy(): void;
|
|
3844
|
-
boomPosition: BABYLON.Vector3;
|
|
3845
|
-
onPreUpdateObservable: any;
|
|
3846
|
-
onBeforeMoveObservable: any;
|
|
3847
|
-
onPostUpdateObservable: any;
|
|
3848
|
-
onPlayerInputObservable: any;
|
|
3849
|
-
onPlayerPositionObservable: any;
|
|
3850
|
-
onUpdateActionObservable: any;
|
|
3851
|
-
onAnimationStateObservable: any;
|
|
3852
|
-
private animatorMoveObserver;
|
|
3853
|
-
private exportedApplyRootMotion;
|
|
3854
|
-
private readonly rootMotionVelocity;
|
|
3855
|
-
private syncAnimatorMoveTaker;
|
|
3856
|
-
private onAnimatorMove;
|
|
3857
|
-
private isPerformingAction;
|
|
3858
|
-
private isRootMotionAction;
|
|
3859
|
-
private isActionInterruptable;
|
|
3860
|
-
private afterActionHandler;
|
|
3861
|
-
private performActionTimer;
|
|
3862
|
-
private performActionNumber;
|
|
3863
|
-
private playerRotationSpeed;
|
|
3864
|
-
private rotatePlayerTowards;
|
|
3865
|
-
private matchStartTime;
|
|
3866
|
-
private matchTargetTime;
|
|
3867
|
-
private matchTargetOffset;
|
|
3868
|
-
private matchTargetHeight;
|
|
3869
|
-
private lockTargetHeight;
|
|
3870
|
-
private lastStartHeight;
|
|
3871
|
-
private lastTargetHeight;
|
|
3872
|
-
private lastTargetNormal;
|
|
3873
|
-
private lastTargetRotation;
|
|
3874
|
-
private lastDeltaPosition;
|
|
3875
|
-
private lastDeltaRotation;
|
|
3876
|
-
private smoothedPlayerHeight;
|
|
3877
|
-
private readonly playerHeightVelocity;
|
|
3878
|
-
private actionStateHash;
|
|
3879
|
-
private actionStateEntered;
|
|
3880
|
-
getIsPerformingAction(): boolean;
|
|
3881
|
-
getIsRootMotionAction(): boolean;
|
|
3882
|
-
getIsActionInterruptable(): boolean;
|
|
3883
|
-
playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
|
|
3884
|
-
resetActionAnimationState(): void;
|
|
3885
|
-
private updateAnimationActionState;
|
|
3886
|
-
private applyActionRootMotion;
|
|
3887
|
-
private applyHeightMatch;
|
|
3888
|
-
private rotateTowardsClimbSurface;
|
|
3889
|
-
setWorldPosition(x: number, y: number, z: number): void;
|
|
3890
|
-
private ikLeftFootTarget;
|
|
3891
|
-
private ikLeftPoleTarget;
|
|
3892
|
-
private ikRightFootTarget;
|
|
3893
|
-
private ikRightPoleTarget;
|
|
3894
|
-
private abstractSkinMesh;
|
|
3895
|
-
private rootBoneTransform;
|
|
3896
|
-
private leftFootTransform;
|
|
3897
|
-
private leftFootPoleOffset;
|
|
3898
|
-
private leftFootMaxAngle;
|
|
3899
|
-
private rightFootTransform;
|
|
3900
|
-
private rightFootPoleOffset;
|
|
3901
|
-
private rightFootMaxAngle;
|
|
3902
|
-
private ikLeftController;
|
|
3903
|
-
private ikRightController;
|
|
3904
|
-
onAnimatorIK: () => void;
|
|
3905
|
-
getPlayerMesh(): BABYLON.AbstractMesh;
|
|
3906
|
-
getRootHipBone(): BABYLON.Bone;
|
|
3907
|
-
getLeftFootBone(): BABYLON.Bone;
|
|
3908
|
-
getRightFootBone(): BABYLON.Bone;
|
|
3909
|
-
getLeftFootTarget(): BABYLON.Mesh;
|
|
3910
|
-
getRightFootTarget(): BABYLON.Mesh;
|
|
3911
|
-
getLeftFootPoleTarget(): BABYLON.Mesh;
|
|
3912
|
-
getRightFootPoleTarget(): BABYLON.Mesh;
|
|
3913
|
-
getRootBoneTransform(): BABYLON.TransformNode;
|
|
3914
|
-
getLeftFootTransform(): BABYLON.TransformNode;
|
|
3915
|
-
getRightFootTransform(): BABYLON.TransformNode;
|
|
3916
|
-
getLeftFootController(): BABYLON.BoneIKController;
|
|
3917
|
-
getRightFootController(): BABYLON.BoneIKController;
|
|
3918
|
-
isGroundedFootIKActive(): boolean;
|
|
3919
|
-
setupBoneControllers(): void;
|
|
3920
|
-
private attachAnimationController;
|
|
3921
|
-
private onAnimatorStateEnter;
|
|
3922
|
-
private onAnimatorStateExit;
|
|
3923
|
-
private onAnimatorIKPass;
|
|
3924
|
-
private updateAnimatorTargetMeshes;
|
|
3925
|
-
enableCharacterController(state: boolean): void;
|
|
3926
|
-
resetPlayerJumpingState(): void;
|
|
3927
|
-
private awakePlayerController;
|
|
3928
|
-
private startPlayerController;
|
|
3929
|
-
private updatePlayerPosition;
|
|
3930
|
-
private updatePlayerController;
|
|
3931
|
-
private afterPlayerController;
|
|
3932
|
-
private updateCharacterController;
|
|
3933
|
-
private castPhysicsClimbingVolumeRay;
|
|
3934
|
-
private castPhysicsHeightCheckVolumeRay;
|
|
3935
|
-
private getCheckedVerticalVelocity;
|
|
3936
|
-
private destroyPlayerController;
|
|
3937
|
-
private validateAnimationStateParams;
|
|
3938
|
-
static ApplyAnimationStateParamDefaults(params: AnimationStateParams): AnimationStateParams;
|
|
3939
|
-
}
|
|
3940
|
-
export declare enum ThirdPersonControl {
|
|
3941
|
-
ThirdPersonTurning = 0,
|
|
3942
|
-
ThirdPersonForward = 1
|
|
3943
|
-
}
|
|
3944
3213
|
export declare class SnapshotManager extends ScriptComponent {
|
|
3945
3214
|
static IsSnapshotRenderingEnabled(): boolean;
|
|
3946
3215
|
static EnableSnapshotRendering(): void;
|