@babylonjs-toolkit/next 9.30.0 → 9.34.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/contentdownloadoutcome.d.ts +2 -0
- package/lib/contentdownloadoutcome.d.ts.map +1 -0
- package/lib/contentdownloadoutcome.js +1 -0
- package/lib/contentgraphicsoutcome.d.ts +2 -0
- package/lib/contentgraphicsoutcome.d.ts.map +1 -0
- package/lib/contentgraphicsoutcome.js +1 -0
- package/lib/contentgraphicsstatus.d.ts +2 -0
- package/lib/contentgraphicsstatus.d.ts.map +1 -0
- package/lib/contentgraphicsstatus.js +1 -0
- package/lib/contentinstaller.d.ts +245 -0
- package/lib/contentinstaller.d.ts.map +1 -0
- package/lib/contentinstaller.js +1929 -0
- package/lib/contentinstalleravailability.d.ts +2 -0
- package/lib/contentinstalleravailability.d.ts.map +1 -0
- package/lib/contentinstalleravailability.js +1 -0
- package/lib/contentinstallererrorkind.d.ts +2 -0
- package/lib/contentinstallererrorkind.d.ts.map +1 -0
- package/lib/contentinstallererrorkind.js +1 -0
- package/lib/contentinstallphase.d.ts +2 -0
- package/lib/contentinstallphase.d.ts.map +1 -0
- package/lib/contentinstallphase.js +1 -0
- package/lib/contentinstallpolicy.d.ts +2 -0
- package/lib/contentinstallpolicy.d.ts.map +1 -0
- package/lib/contentinstallpolicy.js +1 -0
- package/lib/contentupdatepolicy.d.ts +2 -0
- package/lib/contentupdatepolicy.d.ts.map +1 -0
- package/lib/contentupdatepolicy.js +1 -0
- package/lib/iafterspawned.d.ts +4 -0
- package/lib/iafterspawned.d.ts.map +1 -0
- package/lib/iafterspawned.js +1 -0
- package/lib/iaftertick.d.ts +4 -0
- package/lib/iaftertick.d.ts.map +1 -0
- package/lib/iaftertick.js +1 -0
- package/lib/iafterupdate.d.ts +4 -0
- package/lib/iafterupdate.d.ts.map +1 -0
- package/lib/iafterupdate.js +1 -0
- package/lib/ibeforetick.d.ts +4 -0
- package/lib/ibeforetick.d.ts.map +1 -0
- package/lib/ibeforetick.js +1 -0
- package/lib/ibeforeupdate.d.ts +4 -0
- package/lib/ibeforeupdate.d.ts.map +1 -0
- package/lib/ibeforeupdate.js +1 -0
- package/lib/icontentavailabilityblock.d.ts +6 -0
- package/lib/icontentavailabilityblock.d.ts.map +1 -0
- package/lib/icontentavailabilityblock.js +1 -0
- package/lib/icontentchannelmessage.d.ts +24 -0
- package/lib/icontentchannelmessage.d.ts.map +1 -0
- package/lib/icontentchannelmessage.js +1 -0
- package/lib/icontentdownloadjob.d.ts +7 -0
- package/lib/icontentdownloadjob.d.ts.map +1 -0
- package/lib/icontentdownloadjob.js +1 -0
- package/lib/icontentfileref.d.ts +9 -0
- package/lib/icontentfileref.d.ts.map +1 -0
- package/lib/icontentfileref.js +1 -0
- package/lib/icontentforwardedrequest.d.ts +9 -0
- package/lib/icontentforwardedrequest.d.ts.map +1 -0
- package/lib/icontentforwardedrequest.js +1 -0
- package/lib/icontentgraphicssession.d.ts +8 -0
- package/lib/icontentgraphicssession.d.ts.map +1 -0
- package/lib/icontentgraphicssession.js +1 -0
- package/lib/icontentgroupref.d.ts +6 -0
- package/lib/icontentgroupref.d.ts.map +1 -0
- package/lib/icontentgroupref.js +1 -0
- package/lib/icontentgroupstatus.d.ts +14 -0
- package/lib/icontentgroupstatus.d.ts.map +1 -0
- package/lib/icontentgroupstatus.js +1 -0
- package/lib/icontentinflightdownload.d.ts +8 -0
- package/lib/icontentinflightdownload.d.ts.map +1 -0
- package/lib/icontentinflightdownload.js +1 -0
- package/lib/icontentinstallcall.d.ts +6 -0
- package/lib/icontentinstallcall.d.ts.map +1 -0
- package/lib/icontentinstallcall.js +1 -0
- package/lib/icontentinstallererror.d.ts +7 -0
- package/lib/icontentinstallererror.d.ts.map +1 -0
- package/lib/icontentinstallererror.js +1 -0
- package/lib/icontentinstalleroptions.d.ts +20 -0
- package/lib/icontentinstalleroptions.d.ts.map +1 -0
- package/lib/icontentinstalleroptions.js +1 -0
- package/lib/icontentinstallerstate.d.ts +30 -0
- package/lib/icontentinstallerstate.d.ts.map +1 -0
- package/lib/icontentinstallerstate.js +1 -0
- package/lib/icontentinstalloptions.d.ts +5 -0
- package/lib/icontentinstalloptions.d.ts.map +1 -0
- package/lib/icontentinstalloptions.js +1 -0
- package/lib/icontentinstallprogress.d.ts +21 -0
- package/lib/icontentinstallprogress.d.ts.map +1 -0
- package/lib/icontentinstallprogress.js +1 -0
- package/lib/icontentmanifest.d.ts +10 -0
- package/lib/icontentmanifest.d.ts.map +1 -0
- package/lib/icontentmanifest.js +1 -0
- package/lib/icontentmanifestfile.d.ts +8 -0
- package/lib/icontentmanifestfile.d.ts.map +1 -0
- package/lib/icontentmanifestfile.js +1 -0
- package/lib/icontentmanifestgroup.d.ts +5 -0
- package/lib/icontentmanifestgroup.d.ts.map +1 -0
- package/lib/icontentmanifestgroup.js +1 -0
- package/lib/icontentpreparegraphicsoptions.d.ts +5 -0
- package/lib/icontentpreparegraphicsoptions.d.ts.map +1 -0
- package/lib/icontentpreparegraphicsoptions.js +1 -0
- package/lib/icontentprogresssession.d.ts +10 -0
- package/lib/icontentprogresssession.d.ts.map +1 -0
- package/lib/icontentprogresssession.js +1 -0
- package/lib/icontentretrywait.d.ts +6 -0
- package/lib/icontentretrywait.d.ts.map +1 -0
- package/lib/icontentretrywait.js +1 -0
- package/lib/icontentrootoptions.d.ts +6 -0
- package/lib/icontentrootoptions.d.ts.map +1 -0
- package/lib/icontentrootoptions.js +1 -0
- package/lib/icontentrootruntime.d.ts +8 -0
- package/lib/icontentrootruntime.d.ts.map +1 -0
- package/lib/icontentrootruntime.js +1 -0
- package/lib/icontentrootstate.d.ts +29 -0
- package/lib/icontentrootstate.d.ts.map +1 -0
- package/lib/icontentrootstate.js +1 -0
- package/lib/icontentstorageestimate.d.ts +8 -0
- package/lib/icontentstorageestimate.d.ts.map +1 -0
- package/lib/icontentstorageestimate.js +1 -0
- package/lib/icontentstoreresult.d.ts +8 -0
- package/lib/icontentstoreresult.d.ts.map +1 -0
- package/lib/icontentstoreresult.js +1 -0
- package/lib/icontentstorewaiter.d.ts +6 -0
- package/lib/icontentstorewaiter.d.ts.map +1 -0
- package/lib/icontentstorewaiter.js +1 -0
- package/lib/icontentupdateinfo.d.ts +8 -0
- package/lib/icontentupdateinfo.d.ts.map +1 -0
- package/lib/icontentupdateinfo.js +1 -0
- package/lib/idespawned.d.ts +5 -0
- package/lib/idespawned.d.ts.map +1 -0
- package/lib/idespawned.js +1 -0
- package/lib/iinputauthoritylost.d.ts +4 -0
- package/lib/iinputauthoritylost.d.ts.map +1 -0
- package/lib/iinputauthoritylost.js +1 -0
- package/lib/index.d.ts +141 -29
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +141 -29
- package/lib/iplayerjoined.d.ts +5 -0
- package/lib/iplayerjoined.d.ts.map +1 -0
- package/lib/iplayerjoined.js +1 -0
- package/lib/iplayerleft.d.ts +5 -0
- package/lib/iplayerleft.d.ts.map +1 -0
- package/lib/iplayerleft.js +1 -0
- package/lib/ispawned.d.ts +4 -0
- package/lib/ispawned.d.ts.map +1 -0
- package/lib/ispawned.js +1 -0
- package/lib/istateauthoritychanged.d.ts +4 -0
- package/lib/istateauthoritychanged.d.ts.map +1 -0
- package/lib/istateauthoritychanged.js +1 -0
- package/lib/loopbackdelivery.d.ts +6 -0
- package/lib/loopbackdelivery.d.ts.map +1 -0
- package/lib/loopbackdelivery.js +1 -0
- package/lib/loopbackhub.d.ts +206 -0
- package/lib/loopbackhub.d.ts.map +1 -0
- package/lib/loopbackhub.js +986 -0
- package/lib/loopbackhuboptions.d.ts +8 -0
- package/lib/loopbackhuboptions.d.ts.map +1 -0
- package/lib/loopbackhuboptions.js +1 -0
- package/lib/network_reconnect_grace_seconds.d.ts +2 -0
- package/lib/network_reconnect_grace_seconds.d.ts.map +1 -0
- package/lib/network_reconnect_grace_seconds.js +1 -0
- package/lib/networkstats.d.ts +51 -0
- package/lib/networkstats.d.ts.map +1 -0
- package/lib/networkstats.js +204 -0
- package/lib/networkstatssample.d.ts +7 -0
- package/lib/networkstatssample.d.ts.map +1 -0
- package/lib/networkstatssample.js +1 -0
- package/lib/networkstatssliderrow.d.ts +9 -0
- package/lib/networkstatssliderrow.d.ts.map +1 -0
- package/lib/networkstatssliderrow.js +1 -0
- package/lib/project.d.ts +2907 -133
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +14960 -3764
- package/lib/scenemanager.d.ts +4434 -51
- package/lib/scenemanager.d.ts.map +1 -1
- package/lib/scenemanager.js +18725 -1147
- package/lib/shadercodecachememorystorage.d.ts +10 -0
- package/lib/shadercodecachememorystorage.d.ts.map +1 -0
- package/lib/shadercodecachememorystorage.js +32 -0
- package/lib/workers/bt-content-worker.js +1180 -0
- package/lib/zigzagdecode.d.ts +2 -0
- package/lib/zigzagdecode.d.ts.map +1 -0
- package/lib/zigzagdecode.js +3 -0
- package/lib/zigzagencode.d.ts +2 -0
- package/lib/zigzagencode.d.ts.map +1 -0
- package/lib/zigzagencode.js +3 -0
- package/package.json +18 -13
- package/lib/entitycontroller.d.ts +0 -11
- package/lib/entitycontroller.d.ts.map +0 -1
- package/lib/entitycontroller.js +0 -41
- package/lib/sgshadowdepth.d.ts +0 -19
- package/lib/sgshadowdepth.d.ts.map +0 -1
- package/lib/sgshadowdepth.js +0 -214
package/lib/project.d.ts
CHANGED
|
@@ -1,9 +1,2169 @@
|
|
|
1
1
|
import type * as BABYLON from "@babylonjs/core/Legacy/legacy";
|
|
2
2
|
declare const BABYLON: any;
|
|
3
|
-
import { ScriptComponent,
|
|
3
|
+
import { ScriptComponent, Animator, RigidbodyPhysics, CustomShaderMaterial, AudioSource, ShurikenParticles, IParticleMainModule, IParticleMinMaxCurve, IUnityVector3, IUnityVector4, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader, CharacterController } from './scenemanager';
|
|
4
4
|
import { LocalMessageBus } from './localmessagebus';
|
|
5
5
|
import { NoiseFunction2D } from './noisefunction2d';
|
|
6
6
|
import { TouchJoystickHandler } from './touchjoystickhandler';
|
|
7
|
+
export declare class KartBumpTarget extends ScriptComponent {
|
|
8
|
+
hasStar: boolean;
|
|
9
|
+
isAutoDriving: boolean;
|
|
10
|
+
slotIndex: number;
|
|
11
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
12
|
+
}
|
|
13
|
+
export declare const DRIVER_LEAN_INPUT_THRESHOLD: number;
|
|
14
|
+
export declare const DRIVER_LEAN_PATH_ERROR_THRESHOLD: number;
|
|
15
|
+
export declare const DRIVER_STEERING_WHEEL_ANGLE: number;
|
|
16
|
+
export declare const DRIVER_STEERING_WHEEL_RATE: number;
|
|
17
|
+
export declare const DRIVER_STEERING_WHEEL_PATH_ERROR_THRESHOLD: number;
|
|
18
|
+
export declare const DRIVER_STEERING_WHEEL_PATH_RATE: number;
|
|
19
|
+
export declare const DRIVER_HEAD_LOOK_RANGE: number;
|
|
20
|
+
export declare const DRIVER_HEAD_LOOK_RATE: number;
|
|
21
|
+
export declare const DRIVER_HEAD_RETURN_RATE: number;
|
|
22
|
+
export declare const DRIVER_HEAD_LOOK_CYCLE_SECONDS: number;
|
|
23
|
+
export declare const DRIVER_HEAD_LOOK_DELAY_SECONDS: number;
|
|
24
|
+
export declare const DRIVER_HEAD_LOOK_START_SECONDS: number;
|
|
25
|
+
export declare const DRIVER_HEAD_LOOK_MAX_DEGREES: number;
|
|
26
|
+
export declare const DRIVER_HEAD_LOOK_MIN_SPEED: number;
|
|
27
|
+
export declare const DRIVER_HEAD_WRITE_EPSILON: number;
|
|
28
|
+
export declare const DRIVER_IDLE_OR_STEERING_STATES: string[];
|
|
29
|
+
export declare const DRIVER_TURN_LEFT_PARAMETER: string;
|
|
30
|
+
export declare const DRIVER_TURN_RIGHT_PARAMETER: string;
|
|
31
|
+
export declare const DRIVER_HAS_ITEM_PARAMETER: string;
|
|
32
|
+
export declare const DRIVER_REVERSE_PARAMETER: string;
|
|
33
|
+
export interface IDriverLeanState {
|
|
34
|
+
turnLeft: boolean;
|
|
35
|
+
turnRight: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface IDriverAnimationFrame {
|
|
38
|
+
steeringInput: number;
|
|
39
|
+
antiGravity: boolean;
|
|
40
|
+
speed: number;
|
|
41
|
+
raceStarted: boolean;
|
|
42
|
+
raceCompleted: boolean;
|
|
43
|
+
hasHeldItem: boolean;
|
|
44
|
+
reversing: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare class KartDriverAnimation {
|
|
47
|
+
private static readonly KART_ROOTS;
|
|
48
|
+
private readonly kartRoot;
|
|
49
|
+
private readonly driverAnimator;
|
|
50
|
+
private readonly headNode;
|
|
51
|
+
private pathError;
|
|
52
|
+
private steeringWheelDegrees;
|
|
53
|
+
private headYawDegrees;
|
|
54
|
+
private lookCycleSeconds;
|
|
55
|
+
private readonly headBaseRotation;
|
|
56
|
+
private readonly headWrittenRotation;
|
|
57
|
+
private hasWrittenHead;
|
|
58
|
+
private reverseWritten;
|
|
59
|
+
private readonly lookRotation;
|
|
60
|
+
private readonly localAxis;
|
|
61
|
+
private readonly inverseKartMatrix;
|
|
62
|
+
private readonly inverseParentMatrix;
|
|
63
|
+
private readonly opponentLocal;
|
|
64
|
+
constructor(kartRoot: BABYLON.TransformNode, driverAnimator: Animator | null, headNode: BABYLON.TransformNode | null);
|
|
65
|
+
static leanFromInput(steeringInput: number): IDriverLeanState;
|
|
66
|
+
static leanFromPathError(pathError: number): IDriverLeanState;
|
|
67
|
+
static leanForFrame(frame: IDriverAnimationFrame, pathError: number): IDriverLeanState;
|
|
68
|
+
static steeringWheelTarget(steeringInput: number, antiGravity: boolean, currentDegrees: number): number;
|
|
69
|
+
static steeringWheelTargetFromPathError(pathError: number, antiGravity: boolean, currentDegrees: number): number;
|
|
70
|
+
static headYawTarget(localRight: number, localForward: number): number;
|
|
71
|
+
static advanceLookCycle(cycleSeconds: number, deltaSeconds: number): number;
|
|
72
|
+
setPathError(pathError: number): void;
|
|
73
|
+
updateFrame(frame: IDriverAnimationFrame, animators: Animator[], deltaSeconds: number): void;
|
|
74
|
+
private writeReverse;
|
|
75
|
+
applySteeringWheel(wheel: BABYLON.TransformNode | null, restRotation: BABYLON.Quaternion | null): void;
|
|
76
|
+
lateFrame(frame: IDriverAnimationFrame, deltaSeconds: number): void;
|
|
77
|
+
dispose(): void;
|
|
78
|
+
private steeringWheelTargetForFrame;
|
|
79
|
+
private isIdleOrSteering;
|
|
80
|
+
private nearestOpponentYaw;
|
|
81
|
+
private writeHead;
|
|
82
|
+
}
|
|
83
|
+
export declare enum EKartHitKind {
|
|
84
|
+
Banana = 0,
|
|
85
|
+
Shell = 1,
|
|
86
|
+
Explosion = 2
|
|
87
|
+
}
|
|
88
|
+
export declare class KartHitState {
|
|
89
|
+
static readonly SPIN_OUT_SECONDS: number;
|
|
90
|
+
static readonly HIT_INVULNERABLE_SECONDS: number;
|
|
91
|
+
static readonly STAR_SECONDS: number;
|
|
92
|
+
private spinOutRemaining;
|
|
93
|
+
private invulnerableRemaining;
|
|
94
|
+
private starRemaining;
|
|
95
|
+
private autoDriveActive;
|
|
96
|
+
private lastHitKind;
|
|
97
|
+
applyHit(kind: EKartHitKind): boolean;
|
|
98
|
+
startStar(seconds?: number): void;
|
|
99
|
+
setAutoDrive(active: boolean): void;
|
|
100
|
+
tick(deltaSeconds: number): void;
|
|
101
|
+
isSpunOut(): boolean;
|
|
102
|
+
isInvulnerable(): boolean;
|
|
103
|
+
hasStar(): boolean;
|
|
104
|
+
getStarRemaining(): number;
|
|
105
|
+
isAutoDriving(): boolean;
|
|
106
|
+
isImmune(): boolean;
|
|
107
|
+
getLastHitKind(): EKartHitKind | null;
|
|
108
|
+
}
|
|
109
|
+
export declare enum EKartContactKind {
|
|
110
|
+
Road = 0,
|
|
111
|
+
Step = 1,
|
|
112
|
+
Wall = 2
|
|
113
|
+
}
|
|
114
|
+
export interface IKartPush {
|
|
115
|
+
force: BABYLON.Vector3;
|
|
116
|
+
remainingSeconds: number;
|
|
117
|
+
}
|
|
118
|
+
export declare class KartImpacts {
|
|
119
|
+
static readonly GLANCE_MAX_INTO_WALL: number;
|
|
120
|
+
static readonly WALL_BOUNCE_MAX_SPEED: number;
|
|
121
|
+
static readonly WALL_BOUNCE_DECAY_RATE: number;
|
|
122
|
+
static readonly WALL_HEADING_EASE_SECONDS: number;
|
|
123
|
+
static readonly BUMP_FORCE_FAST: number;
|
|
124
|
+
static readonly BUMP_FORCE_SLOW: number;
|
|
125
|
+
static readonly BUMP_FAST_SPEED: number;
|
|
126
|
+
static readonly BUMP_PUSH_SECONDS: number;
|
|
127
|
+
static readonly BUMP_COOLDOWN_SECONDS: number;
|
|
128
|
+
static readonly BUMP_MAX_DISTANCE: number;
|
|
129
|
+
static readonly PUSH_DECAY_RATE: number;
|
|
130
|
+
static readonly ANTIGRAVITY_BUMP_BOOST_SECONDS: number;
|
|
131
|
+
static readonly ROAD_CONTACT_MIN_UP_DOT: number;
|
|
132
|
+
static readonly STEP_MIN_UP_DOT: number;
|
|
133
|
+
static readonly LEDGE_MOUNT_MAX_HEIGHT: number;
|
|
134
|
+
static readonly LEDGE_CORNER_MIN_INTO: number;
|
|
135
|
+
static readonly MOVING_ROAD_MIN_UP_DOT: number;
|
|
136
|
+
static readonly CONTACT_PRESS_SPEED: number;
|
|
137
|
+
static readonly CONTACT_TOUCH_DISTANCE: number;
|
|
138
|
+
private static readonly MIN_DIRECTION_LENGTH;
|
|
139
|
+
static sideOfContact(position: BABYLON.Vector3, forward: BABYLON.Vector3, up: BABYLON.Vector3, otherPosition: BABYLON.Vector3): number;
|
|
140
|
+
static speedAfterWallHit(currentSpeed: number, intoWall: number): number;
|
|
141
|
+
static intoWallFraction(travelDirection: BABYLON.Vector3, wallNormal: BABYLON.Vector3): number;
|
|
142
|
+
static wallBounceSpeed(intoWall: number): number;
|
|
143
|
+
static fadeWallBounce(bounceSpeed: number, stepSeconds: number): number;
|
|
144
|
+
static headingEaseYaw(localWallNormal: BABYLON.Vector3, travelSign: number, stepSeconds: number): number;
|
|
145
|
+
static registerMovingRoad(body: BABYLON.PhysicsBody): void;
|
|
146
|
+
static unregisterMovingRoad(body: BABYLON.PhysicsBody): void;
|
|
147
|
+
static isMovingRoad(body: BABYLON.PhysicsBody | null | undefined): boolean;
|
|
148
|
+
static classifyContact(contactNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, stepMinUpDot?: number, onMovingRoad?: boolean): EKartContactKind;
|
|
149
|
+
static ledgeHeight(contactNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, sphereRadius: number): number;
|
|
150
|
+
static isMountableLedgeCorner(contactNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, sphereRadius: number, travelDirection: BABYLON.Vector3): boolean;
|
|
151
|
+
static isNextStepOfStairs(blockerNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, sphereRadius: number, sweepClearance: number): boolean;
|
|
152
|
+
static ledgeMountMinUpDot(sphereRadius: number): number;
|
|
153
|
+
static isMountableStep(stepHeight: number, sphereRadius: number): boolean;
|
|
154
|
+
static slideNormal(contactNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, stepMinUpDot?: number, onMovingRoad?: boolean): BABYLON.Vector3 | null;
|
|
155
|
+
static removeVelocityIntoSurface(velocity: BABYLON.Vector3, surfaceNormal: BABYLON.Vector3): void;
|
|
156
|
+
static keepNoseSpeed(velocity: BABYLON.Vector3, forward: BABYLON.Vector3, noseSpeed: number): boolean;
|
|
157
|
+
static limitApproachSpeed(velocity: BABYLON.Vector3, surfaceNormal: BABYLON.Vector3, gapMeters: number, stepSeconds: number): void;
|
|
158
|
+
static wallAheadSlideNormal(hitNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, onMovingRoad?: boolean): BABYLON.Vector3 | null;
|
|
159
|
+
static steeringSpeed(realSpeed: number, decreedSpeed: number, heldByWall: boolean): number;
|
|
160
|
+
static createBumpPush(right: BABYLON.Vector3, side: number, currentSpeed: number, hasStar: boolean): IKartPush;
|
|
161
|
+
static stepPush(push: IKartPush, stepVelocity: BABYLON.Vector3, chassisMass: number, stepSeconds: number): boolean;
|
|
162
|
+
private static limitSpeedIntoSurface;
|
|
163
|
+
}
|
|
164
|
+
export declare class KartSurfaceContacts {
|
|
165
|
+
static readonly MAX_CONTACTS: number;
|
|
166
|
+
private static readonly SLIDE_PASSES;
|
|
167
|
+
private incoming;
|
|
168
|
+
private current;
|
|
169
|
+
private incomingIsWall;
|
|
170
|
+
private currentIsWall;
|
|
171
|
+
private incomingCount;
|
|
172
|
+
private currentCount;
|
|
173
|
+
private incomingWall;
|
|
174
|
+
private currentWall;
|
|
175
|
+
private incomingMovingRoad;
|
|
176
|
+
private currentMovingRoad;
|
|
177
|
+
add(contactNormal: BABYLON.Vector3, kartUp: BABYLON.Vector3, stepMinUpDot?: number, onMovingRoad?: boolean): void;
|
|
178
|
+
addMovingRoadContact(): void;
|
|
179
|
+
touchesMovingRoad(): boolean;
|
|
180
|
+
beginStep(): void;
|
|
181
|
+
touchesWall(): boolean;
|
|
182
|
+
count(): number;
|
|
183
|
+
strongestWall(travelDirection: BABYLON.Vector3, result: BABYLON.Vector3): number;
|
|
184
|
+
slide(velocity: BABYLON.Vector3): void;
|
|
185
|
+
clear(): void;
|
|
186
|
+
}
|
|
187
|
+
export declare const KART_FINISH_LINE_TAG: string;
|
|
188
|
+
export declare const KART_STOP_DRIFT_ROT_SECONDS: number;
|
|
189
|
+
export declare const KART_STOP_DRIFT_ROT_RATE: number;
|
|
190
|
+
export declare const KART_CHECKPOINT_RESPAWN_LIFT: number;
|
|
191
|
+
export interface IKartCheckpoint {
|
|
192
|
+
node: BABYLON.TransformNode;
|
|
193
|
+
position?: {
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
z: number;
|
|
197
|
+
};
|
|
198
|
+
respawnPosition?: {
|
|
199
|
+
x: number;
|
|
200
|
+
y: number;
|
|
201
|
+
z: number;
|
|
202
|
+
};
|
|
203
|
+
heading?: number;
|
|
204
|
+
}
|
|
205
|
+
export declare class KartLapCounter extends ScriptComponent {
|
|
206
|
+
LAPCOUNT: number;
|
|
207
|
+
currentCheckpointVal: number;
|
|
208
|
+
totalCheckpointVal: number;
|
|
209
|
+
checkpointsVisited: boolean[];
|
|
210
|
+
distanceToNextCheckpoint: number;
|
|
211
|
+
Position: number;
|
|
212
|
+
endPosition: number;
|
|
213
|
+
isPlayer: boolean;
|
|
214
|
+
finished: boolean;
|
|
215
|
+
finishTime: number;
|
|
216
|
+
finishOrder: number;
|
|
217
|
+
lapStartTime: number;
|
|
218
|
+
lapTimes: number[];
|
|
219
|
+
pendingFinish: boolean;
|
|
220
|
+
private finalLapAnnounced;
|
|
221
|
+
protected checkpoints: IKartCheckpoint[];
|
|
222
|
+
private finishLinePoint;
|
|
223
|
+
private readonly finishLineForward;
|
|
224
|
+
private finishLineResolved;
|
|
225
|
+
protected kart: any;
|
|
226
|
+
race: any;
|
|
227
|
+
protected awake(): void;
|
|
228
|
+
protected start(): void;
|
|
229
|
+
protected resolveKart(): any;
|
|
230
|
+
setCheckpoints(checkpoints: IKartCheckpoint[]): void;
|
|
231
|
+
getCheckpoints(): IKartCheckpoint[];
|
|
232
|
+
isLapDue(): boolean;
|
|
233
|
+
getDistancePastFinishLine(position: BABYLON.Vector3): number | null;
|
|
234
|
+
protected resolveFinishLine(): void;
|
|
235
|
+
private static distanceToSegment;
|
|
236
|
+
checkAllPoints(): boolean;
|
|
237
|
+
protected onTimingTrigger(other: BABYLON.TransformNode): void;
|
|
238
|
+
protected reportCountedLap(): void;
|
|
239
|
+
protected applyRespawnPoint(checkpoint: IKartCheckpoint): void;
|
|
240
|
+
protected checkpointPosition(checkpoint: IKartCheckpoint): BABYLON.Vector3;
|
|
241
|
+
protected checkpointRespawnPosition(checkpoint: IKartCheckpoint): BABYLON.Vector3;
|
|
242
|
+
protected checkpointRotation(checkpoint: IKartCheckpoint): BABYLON.Quaternion;
|
|
243
|
+
protected update(): void;
|
|
244
|
+
tick(dt: number): void;
|
|
245
|
+
protected checkForFinish(): void;
|
|
246
|
+
isStopDriftRotRunning(): boolean;
|
|
247
|
+
protected calculateDist(): void;
|
|
248
|
+
resetLaps(): void;
|
|
249
|
+
}
|
|
250
|
+
export declare class KartOutOfBounds extends ScriptComponent {
|
|
251
|
+
FellInWater: boolean;
|
|
252
|
+
outOfBounds: boolean;
|
|
253
|
+
PlayerBeingMoved: boolean;
|
|
254
|
+
private kart;
|
|
255
|
+
protected awake(): void;
|
|
256
|
+
protected start(): void;
|
|
257
|
+
protected update(): void;
|
|
258
|
+
private findKart;
|
|
259
|
+
}
|
|
260
|
+
export declare class KartPathSteering {
|
|
261
|
+
static readonly SMOOTH_TIME_SECONDS: number;
|
|
262
|
+
static readonly ORIGINAL_FRAME_RATE: number;
|
|
263
|
+
static directionError(position: BABYLON.Vector3, forward: BABYLON.Vector3, up: BABYLON.Vector3, target: BABYLON.Vector3): number;
|
|
264
|
+
static steeringFromError(smoothedError: number, turnSpeedDivider: number, kartYawRateDegreesPerSecond: number): number;
|
|
265
|
+
static lookAheadOnSegment(position: BABYLON.Vector3, segmentStart: BABYLON.Vector3, segmentEnd: BABYLON.Vector3, lookAheadMeters: number, result: BABYLON.Vector3): BABYLON.Vector3;
|
|
266
|
+
static smoothError(current: number, target: number, deltaSeconds: number): number;
|
|
267
|
+
}
|
|
268
|
+
export declare const COUNTDOWN_CLIP_SPEED: number;
|
|
269
|
+
export declare enum EKartCountdownEvent {
|
|
270
|
+
Beep = 0,
|
|
271
|
+
Go = 1,
|
|
272
|
+
Start = 2
|
|
273
|
+
}
|
|
274
|
+
export interface IKartCountdownBeat {
|
|
275
|
+
kind: EKartCountdownEvent;
|
|
276
|
+
at: number;
|
|
277
|
+
}
|
|
278
|
+
export declare const KART_COUNTDOWN_BEATS: IKartCountdownBeat[];
|
|
279
|
+
export declare const KART_COUNTDOWN_LENGTH: number;
|
|
280
|
+
export declare const KART_POSITION_SORT_INTERVAL: number;
|
|
281
|
+
export interface IKartRacerEntry {
|
|
282
|
+
lapCounter: KartLapCounter;
|
|
283
|
+
kart: StandardKartController;
|
|
284
|
+
isHuman: boolean;
|
|
285
|
+
}
|
|
286
|
+
export interface IKartRaceResult {
|
|
287
|
+
lapCounter: KartLapCounter;
|
|
288
|
+
kart: StandardKartController;
|
|
289
|
+
place: number;
|
|
290
|
+
finished: boolean;
|
|
291
|
+
finishTime: number;
|
|
292
|
+
isHuman: boolean;
|
|
293
|
+
}
|
|
294
|
+
export declare class KartRaceManager extends ScriptComponent {
|
|
295
|
+
static readonly RESULTS_DELAY_SECONDS: number;
|
|
296
|
+
static readonly RACE_STARTED_EVENT: string;
|
|
297
|
+
private static readonly RESULTS_DELAY_TOLERANCE;
|
|
298
|
+
RACE_STARTED: boolean;
|
|
299
|
+
RACE_COMPLETED: boolean;
|
|
300
|
+
countDownTime: number;
|
|
301
|
+
RaceTime: number;
|
|
302
|
+
MAXLAPS: number;
|
|
303
|
+
lapCounters: any[];
|
|
304
|
+
sortedRacers: any[];
|
|
305
|
+
onCountdownBeep: ((index: number) => void) | null;
|
|
306
|
+
onGoSound: (() => void) | null;
|
|
307
|
+
onRaceStart: (() => void) | null;
|
|
308
|
+
racers: IKartRacerEntry[];
|
|
309
|
+
onLapCompleted: ((lapCounter: KartLapCounter, completedLap: number) => void) | null;
|
|
310
|
+
onFinalLap: ((lapCounter: KartLapCounter) => void) | null;
|
|
311
|
+
onRacerFinished: ((lapCounter: KartLapCounter, place: number) => void) | null;
|
|
312
|
+
onResults: ((results: IKartRaceResult[]) => void) | null;
|
|
313
|
+
private countDownClockRunning;
|
|
314
|
+
private countdownBeat;
|
|
315
|
+
private sortTime;
|
|
316
|
+
private finishedCount;
|
|
317
|
+
private resultsDelayRunning;
|
|
318
|
+
private resultsDelayElapsed;
|
|
319
|
+
private resultsFired;
|
|
320
|
+
protected awake(): void;
|
|
321
|
+
startCountdown(): void;
|
|
322
|
+
isCountdownRunning(): boolean;
|
|
323
|
+
registerRacer(lapCounter: KartLapCounter, kart: StandardKartController, isHuman: boolean): void;
|
|
324
|
+
getTimeUntilGo(): number;
|
|
325
|
+
getCountdownBeat(): number;
|
|
326
|
+
getBeepCount(): number;
|
|
327
|
+
tick(dt: number): void;
|
|
328
|
+
getResults(): IKartRaceResult[];
|
|
329
|
+
private chargeLaunches;
|
|
330
|
+
private releaseRacers;
|
|
331
|
+
private resolvePendingFinishes;
|
|
332
|
+
private haveAllHumansFinished;
|
|
333
|
+
private tickResultsDelay;
|
|
334
|
+
private fireCountdownBeats;
|
|
335
|
+
private dispatchBeat;
|
|
336
|
+
calculateRacerPosition(): void;
|
|
337
|
+
getSortedRacers(): any[];
|
|
338
|
+
resetRace(): void;
|
|
339
|
+
}
|
|
340
|
+
export declare enum EKartRescueReason {
|
|
341
|
+
Water = 0,
|
|
342
|
+
OutOfBounds = 1,
|
|
343
|
+
Fall = 2,
|
|
344
|
+
Flipped = 3,
|
|
345
|
+
Wedged = 4,
|
|
346
|
+
OffCourse = 5
|
|
347
|
+
}
|
|
348
|
+
export interface IKartRescuePlacement {
|
|
349
|
+
position: BABYLON.Vector3;
|
|
350
|
+
rotation: BABYLON.Quaternion;
|
|
351
|
+
antiGravity?: boolean;
|
|
352
|
+
onDepartedRoad?: boolean;
|
|
353
|
+
courseAntiGravity?: boolean;
|
|
354
|
+
}
|
|
355
|
+
export interface IKartRescueEvent {
|
|
356
|
+
reason: EKartRescueReason;
|
|
357
|
+
kart: StandardKartController;
|
|
358
|
+
}
|
|
359
|
+
export interface IKartRecoverySample {
|
|
360
|
+
positionY: number;
|
|
361
|
+
upDotWorldUp: number;
|
|
362
|
+
grounded: boolean;
|
|
363
|
+
antiGravity: boolean;
|
|
364
|
+
excused: boolean;
|
|
365
|
+
throttleHeld?: boolean;
|
|
366
|
+
movingSpeed?: number;
|
|
367
|
+
stallExcused?: boolean;
|
|
368
|
+
}
|
|
369
|
+
export declare const KART_STALLED_SPEED: number;
|
|
370
|
+
export declare const KART_STALLED_SECONDS: number;
|
|
371
|
+
export declare function isKartStalled(sample: IKartRecoverySample): boolean;
|
|
372
|
+
export declare const KART_FLIPPED_UP_DOT: number;
|
|
373
|
+
export declare const KART_FLIPPED_SECONDS: number;
|
|
374
|
+
export declare function shouldFallRescue(positionY: number, floorY: number, airborneSeconds: number, airborneLimitSeconds: number): boolean;
|
|
375
|
+
export declare function isKartFlipped(sample: IKartRecoverySample): boolean;
|
|
376
|
+
export declare function nearestEquivalentAngle(targetDegrees: number, referenceDegrees: number): number;
|
|
377
|
+
export declare function isAtOrPastLoopIndex(index: number, limitIndex: number, count: number): boolean;
|
|
378
|
+
export declare const FINISH_LINE_HOLD_METERS: number;
|
|
379
|
+
export declare function indexBeforeFinishLine(points: BABYLON.Vector3[], startIndex: number, distancePastLine: (point: BABYLON.Vector3) => number | null): number;
|
|
380
|
+
export declare function pointBeforeFinishLine(lastBefore: BABYLON.Vector3, firstAfter: BABYLON.Vector3, distancePastLine: (point: BABYLON.Vector3) => number | null): BABYLON.Vector3 | null;
|
|
381
|
+
export declare const COURSE_MEMORY_CELL_METERS: number;
|
|
382
|
+
export declare const COURSE_MEMORY_STATE_METERS: number;
|
|
383
|
+
export declare const COURSE_MEMORY_PLACEMENT_METERS: number;
|
|
384
|
+
export declare const COURSE_MEMORY_SAME_ROAD_DOT: number;
|
|
385
|
+
export interface IKartCourseSample {
|
|
386
|
+
position: BABYLON.Vector3;
|
|
387
|
+
up: BABYLON.Vector3;
|
|
388
|
+
antiGravity: boolean;
|
|
389
|
+
statesByKart: Map<number, boolean>;
|
|
390
|
+
}
|
|
391
|
+
export declare class KartCourseMemory {
|
|
392
|
+
private static readonly memories;
|
|
393
|
+
private readonly cells;
|
|
394
|
+
static forScene(scene: BABYLON.Scene | null): KartCourseMemory;
|
|
395
|
+
record(position: BABYLON.Vector3, up: BABYLON.Vector3, antiGravity: boolean, kartKey?: number): void;
|
|
396
|
+
nearestSample(position: BABYLON.Vector3, up: BABYLON.Vector3 | null, maxDistance: number): IKartCourseSample | null;
|
|
397
|
+
stateAt(position: BABYLON.Vector3, up: BABYLON.Vector3): boolean | null;
|
|
398
|
+
clear(): void;
|
|
399
|
+
private forEachSampleNear;
|
|
400
|
+
private static cellKey;
|
|
401
|
+
}
|
|
402
|
+
export declare const ANTIGRAVITY_END_RESCUE_METERS: number;
|
|
403
|
+
export declare function rescueAntiGravityState(placementOnWall: boolean, knownState: boolean | null, leftRoadInAntiGravity: boolean, onDepartedRoad: boolean, nearOwnAntiGravityEnd?: boolean): boolean;
|
|
404
|
+
export declare const ANTIGRAVITY_ROAD_NORMAL_Y: number;
|
|
405
|
+
export declare const ANTIGRAVITY_BANKED_ROAD_NORMAL_Y: number;
|
|
406
|
+
export declare const ANTIGRAVITY_BANKED_ARM_SECONDS: number;
|
|
407
|
+
export declare const ANTIGRAVITY_FLAT_ROAD_END_SECONDS: number;
|
|
408
|
+
export declare const ANTIGRAVITY_UPRIGHT_NORMAL_Y: number;
|
|
409
|
+
export declare const ANTIGRAVITY_ROAD_END_SECONDS: number;
|
|
410
|
+
export declare const ANTIGRAVITY_REENTRY_GUARD_SECONDS: number;
|
|
411
|
+
export declare const ANTIGRAVITY_BANK_MIN_ALIGN_DOT: number;
|
|
412
|
+
export declare const ANTIGRAVITY_BANK_MIN_TURN_DOT: number;
|
|
413
|
+
export interface IKartBankLatchSample {
|
|
414
|
+
latched: boolean;
|
|
415
|
+
enabled: boolean;
|
|
416
|
+
wasGrounded: boolean;
|
|
417
|
+
sameBody: boolean;
|
|
418
|
+
hitNormal: BABYLON.Vector3;
|
|
419
|
+
lastGroundNormal: BABYLON.Vector3;
|
|
420
|
+
kartUp: BABYLON.Vector3;
|
|
421
|
+
}
|
|
422
|
+
export declare function isSmoothBankOntoAntiGravityRoad(sample: IKartBankLatchSample): boolean;
|
|
423
|
+
export interface IKartAntiGravityRoadSample {
|
|
424
|
+
latched: boolean;
|
|
425
|
+
insideEntryVolume: boolean;
|
|
426
|
+
grounded: boolean;
|
|
427
|
+
groundNormalY: number;
|
|
428
|
+
}
|
|
429
|
+
export declare class KartAntiGravityRoadWatch {
|
|
430
|
+
private armed;
|
|
431
|
+
private uprightSeconds;
|
|
432
|
+
private flatSeconds;
|
|
433
|
+
private bankedSeconds;
|
|
434
|
+
tick(sample: IKartAntiGravityRoadSample, deltaSeconds: number): boolean;
|
|
435
|
+
reset(): void;
|
|
436
|
+
isArmed(): boolean;
|
|
437
|
+
}
|
|
438
|
+
export declare const ANTI_GRAVITY_INVERTED_MAX_UP_Y: number;
|
|
439
|
+
export declare const ANTI_GRAVITY_INVERTED_MAX_GROUND_NORMAL_Y: number;
|
|
440
|
+
export declare const ANTI_GRAVITY_INVERTED_MAX_ALIGN_DOT: number;
|
|
441
|
+
export declare const ANTI_GRAVITY_INVERTED_RECOVER_SECONDS: number;
|
|
442
|
+
export interface IKartInvertedSample {
|
|
443
|
+
latched: boolean;
|
|
444
|
+
grounded: boolean;
|
|
445
|
+
upY: number;
|
|
446
|
+
groundNormalY: number;
|
|
447
|
+
upDotGroundNormal: number;
|
|
448
|
+
}
|
|
449
|
+
export declare function isTurnedOverOntoWall(sample: IKartInvertedSample): boolean;
|
|
450
|
+
export declare class KartAntiGravityInvertedWatch {
|
|
451
|
+
private invertedSeconds;
|
|
452
|
+
tick(sample: IKartInvertedSample, deltaSeconds: number): boolean;
|
|
453
|
+
reset(): void;
|
|
454
|
+
}
|
|
455
|
+
export declare class KartRecoveryWatch {
|
|
456
|
+
airborneLimitSeconds: number;
|
|
457
|
+
floorY: number;
|
|
458
|
+
flippedLimitSeconds: number;
|
|
459
|
+
stalledLimitSeconds: number;
|
|
460
|
+
private airborneSeconds;
|
|
461
|
+
private flippedSeconds;
|
|
462
|
+
private stalledSeconds;
|
|
463
|
+
tick(sample: IKartRecoverySample, deltaSeconds: number): EKartRescueReason | null;
|
|
464
|
+
reset(): void;
|
|
465
|
+
getStalledSeconds(): number;
|
|
466
|
+
getAirborneSeconds(): number;
|
|
467
|
+
getFlippedSeconds(): number;
|
|
468
|
+
}
|
|
469
|
+
export declare class KartRescuePlacer {
|
|
470
|
+
static readonly SEARCH_RADIUS: number;
|
|
471
|
+
static readonly SURFACE_LIFT: number;
|
|
472
|
+
static readonly DRIVABLE_TAGS: string[];
|
|
473
|
+
static readonly WALKABLE_NORMAL_Y: number;
|
|
474
|
+
static readonly KART_CLEARANCE: number;
|
|
475
|
+
private static readonly CLEARANCE_RAY_OFFSET;
|
|
476
|
+
private static readonly SEARCH_DIRECTIONS;
|
|
477
|
+
static readonly SAME_ROAD_DOT: number;
|
|
478
|
+
static placeNear(point: BABYLON.Vector3, facingTarget: BABYLON.Vector3, preferredUp?: BABYLON.Vector3 | null): IKartRescuePlacement | null;
|
|
479
|
+
static surfaceRotation(surfaceUp: BABYLON.Vector3, heading: BABYLON.Vector3): BABYLON.Quaternion;
|
|
480
|
+
private static hasKartClearance;
|
|
481
|
+
private static tagOf;
|
|
482
|
+
private static buildSearchDirections;
|
|
483
|
+
}
|
|
484
|
+
export declare class KartRigLookup {
|
|
485
|
+
static findNode(root: BABYLON.TransformNode, name: string): BABYLON.TransformNode | null;
|
|
486
|
+
static findAnimator(root: BABYLON.TransformNode, nodeName: string): Animator | null;
|
|
487
|
+
static setTrigger(animators: Animator[], parameterName: string): number;
|
|
488
|
+
static hasBool(animator: Animator, parameterName: string): boolean;
|
|
489
|
+
static setBool(animators: Animator[], parameterName: string, value: boolean): number;
|
|
490
|
+
}
|
|
491
|
+
export declare const TIRE_GLOW_LINE_PROPERTY: string;
|
|
492
|
+
export declare const KART_BODY_GLOW_PROPERTY: string;
|
|
493
|
+
export declare const TIRE_GLOW_RIM_PROPERTY: string;
|
|
494
|
+
export declare const TIRE_GLOW_CENTER_PROPERTY: string;
|
|
495
|
+
export declare const TIRE_GLOW_LINE_INTENSITY: number;
|
|
496
|
+
export declare const TIRE_GLOW_BLEND_RATE: number;
|
|
497
|
+
export declare const TIRE_GLOW_FLASH_FADE_RATE: number;
|
|
498
|
+
export declare const TIRE_GLOW_FLASH_SECONDS: number;
|
|
499
|
+
export declare const TIRE_GLOW_WRITE_EPSILON: number;
|
|
500
|
+
export declare const TIRE_GLOW_DEFAULT_TINT: string;
|
|
501
|
+
export interface IKartGlowMaterial {
|
|
502
|
+
getGraphInfo(): {
|
|
503
|
+
properties?: {
|
|
504
|
+
[unityName: string]: string;
|
|
505
|
+
};
|
|
506
|
+
} | null;
|
|
507
|
+
setVector(unityName: string, value: BABYLON.Vector4): void;
|
|
508
|
+
setColor(unityName: string, value: BABYLON.Color4): void;
|
|
509
|
+
}
|
|
510
|
+
export type KartGlowMaterial = BABYLON.Material & IKartGlowMaterial;
|
|
511
|
+
export declare function isKartGlowMaterial(material: BABYLON.Material | null): material is KartGlowMaterial;
|
|
512
|
+
export declare class KartTireGlow {
|
|
513
|
+
private readonly slots;
|
|
514
|
+
private lineBlend;
|
|
515
|
+
private flashLevel;
|
|
516
|
+
private flashSeconds;
|
|
517
|
+
private wasAntiGravity;
|
|
518
|
+
private writtenLine;
|
|
519
|
+
private writtenFlash;
|
|
520
|
+
private readonly flashTint;
|
|
521
|
+
private readonly scratchVector;
|
|
522
|
+
private readonly scratchColor;
|
|
523
|
+
constructor(flashTintHex: string);
|
|
524
|
+
attach(kartRoot: BABYLON.TransformNode): number;
|
|
525
|
+
tick(antiGravity: boolean, allowFlash: boolean, deltaSeconds: number): void;
|
|
526
|
+
getLineBlend(): number;
|
|
527
|
+
getFlashLevel(): number;
|
|
528
|
+
getMaterialCount(): number;
|
|
529
|
+
dispose(): void;
|
|
530
|
+
private findOrCreateSlot;
|
|
531
|
+
private advanceLineBlend;
|
|
532
|
+
private advanceFlash;
|
|
533
|
+
private writeLine;
|
|
534
|
+
private writeFlash;
|
|
535
|
+
}
|
|
536
|
+
export declare class KartTrackInfo extends ScriptComponent {
|
|
537
|
+
displayName: string;
|
|
538
|
+
defaultLaps: number;
|
|
539
|
+
cupId: string;
|
|
540
|
+
cupOrder: number;
|
|
541
|
+
musicSourcePath: string;
|
|
542
|
+
finalLapMusicSourcePath: string;
|
|
543
|
+
Is_Dirt_Track: boolean;
|
|
544
|
+
isRainbowRoad: boolean;
|
|
545
|
+
minimapImageUrl: string;
|
|
546
|
+
playerMaxSpeed: number;
|
|
547
|
+
playerBoostSpeed: number;
|
|
548
|
+
aiBoostSpeed: number;
|
|
549
|
+
aiTurnSpeedDivider: number;
|
|
550
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
551
|
+
protected awake(): void;
|
|
552
|
+
private readProperties;
|
|
553
|
+
}
|
|
554
|
+
declare abstract class KartVolume extends ScriptComponent {
|
|
555
|
+
protected readProperties(names: string[]): void;
|
|
556
|
+
}
|
|
557
|
+
export declare class KartAntiGravityVolume extends KartVolume {
|
|
558
|
+
rotateCam: boolean;
|
|
559
|
+
rotAmountX: number;
|
|
560
|
+
rotAmountZ: number;
|
|
561
|
+
canUseBullet: boolean;
|
|
562
|
+
protected awake(): void;
|
|
563
|
+
}
|
|
564
|
+
export declare class KartAntiGravityExitVolume extends KartVolume {
|
|
565
|
+
rotateX: boolean;
|
|
566
|
+
rotateY: boolean;
|
|
567
|
+
rotateZ: boolean;
|
|
568
|
+
newRotation: BABYLON.Vector3;
|
|
569
|
+
protected awake(): void;
|
|
570
|
+
}
|
|
571
|
+
export declare class KartGliderVolume extends KartVolume {
|
|
572
|
+
glideAngle: number;
|
|
573
|
+
glideAngleX: number;
|
|
574
|
+
angleOnly: boolean;
|
|
575
|
+
protected awake(): void;
|
|
576
|
+
}
|
|
577
|
+
export declare class KartGliderPanel extends KartVolume {
|
|
578
|
+
}
|
|
579
|
+
export declare class KartJumpPanel extends KartVolume {
|
|
580
|
+
upforce: number;
|
|
581
|
+
downforce: number;
|
|
582
|
+
protected awake(): void;
|
|
583
|
+
}
|
|
584
|
+
export declare class KartJumpPanelRotate extends KartVolume {
|
|
585
|
+
rotateY: number;
|
|
586
|
+
rotateZ: number;
|
|
587
|
+
protected awake(): void;
|
|
588
|
+
}
|
|
589
|
+
export declare class KartTrickVolume extends KartVolume {
|
|
590
|
+
}
|
|
591
|
+
export declare class KartAirForceVolume extends KartVolume {
|
|
592
|
+
force: number;
|
|
593
|
+
relativeForce: boolean;
|
|
594
|
+
isForAir: boolean;
|
|
595
|
+
isForRaceEnd: boolean;
|
|
596
|
+
isONLYforRaceEnd: boolean;
|
|
597
|
+
protected awake(): void;
|
|
598
|
+
}
|
|
599
|
+
export declare class KartBoostPad extends KartVolume {
|
|
600
|
+
duration: number;
|
|
601
|
+
protected awake(): void;
|
|
602
|
+
}
|
|
603
|
+
export declare class KartCancelDownForce extends KartVolume {
|
|
604
|
+
}
|
|
605
|
+
export declare class KartDirtSurface extends KartVolume {
|
|
606
|
+
maxSpeed: number;
|
|
607
|
+
protected awake(): void;
|
|
608
|
+
}
|
|
609
|
+
export declare class KartWaypointDriver extends ScriptComponent {
|
|
610
|
+
static readonly DRIFT_LEFT_TAG: string;
|
|
611
|
+
static readonly DRIFT_RIGHT_TAG: string;
|
|
612
|
+
static readonly START_BOOST_HOLD_SECONDS: number;
|
|
613
|
+
static readonly RESCUE_GATES_BACK: number;
|
|
614
|
+
static readonly STUCK_RESPAWN_LIFT: number;
|
|
615
|
+
static readonly STUCK_PROGRESS_METERS: number;
|
|
616
|
+
static readonly DRIFT_ENTRY_STEERING_MARGIN: number;
|
|
617
|
+
static readonly MIN_AIM_DISTANCE_METERS: number;
|
|
618
|
+
turnSpeedDivider: number;
|
|
619
|
+
normalMaxSpeed: number;
|
|
620
|
+
rubberBandMaxSpeed: number;
|
|
621
|
+
rubberBandCheckpointLead: number;
|
|
622
|
+
driftMinForwardSpeed: number;
|
|
623
|
+
startBoostChance: number;
|
|
624
|
+
autopilot: boolean;
|
|
625
|
+
autopilotSpeed: number;
|
|
626
|
+
rubberBandReference: (() => number | null) | null;
|
|
627
|
+
stuckRecoverySeconds: number;
|
|
628
|
+
lineLookAheadMeters: number;
|
|
629
|
+
randomSource: () => number;
|
|
630
|
+
private kart;
|
|
631
|
+
private lapCounter;
|
|
632
|
+
private paths;
|
|
633
|
+
private currentPathIndex;
|
|
634
|
+
private currentNodeIndex;
|
|
635
|
+
private smoothedError;
|
|
636
|
+
private wasDriftRequested;
|
|
637
|
+
private goesForStartBoost;
|
|
638
|
+
private stuckSeconds;
|
|
639
|
+
private closestGateDistance;
|
|
640
|
+
private watchedGate;
|
|
641
|
+
private lastPassedGate;
|
|
642
|
+
private lastRecoveryTarget;
|
|
643
|
+
private wedgeAnchor;
|
|
644
|
+
private wedgeSkipsObstacle;
|
|
645
|
+
private wasAutoDriving;
|
|
646
|
+
private readonly steeringTarget;
|
|
647
|
+
private triggerObserver;
|
|
648
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
649
|
+
protected awake(): void;
|
|
650
|
+
protected start(): void;
|
|
651
|
+
protected update(): void;
|
|
652
|
+
protected destroy(): void;
|
|
653
|
+
setPaths(paths: BABYLON.TransformNode[][], startPathIndex: number): void;
|
|
654
|
+
resumeAt(pathIndex: number, nodeIndex: number): void;
|
|
655
|
+
onLapCompleted(): void;
|
|
656
|
+
getCurrentNode(): BABYLON.TransformNode | null;
|
|
657
|
+
getCurrentNodeIndex(): number;
|
|
658
|
+
getCurrentPathIndex(): number;
|
|
659
|
+
setLapCounter(lapCounter: KartLapCounter): void;
|
|
660
|
+
driveFrame(deltaSeconds: number): void;
|
|
661
|
+
private onGateEntered;
|
|
662
|
+
private tickStuckRecovery;
|
|
663
|
+
private respawnOnPath;
|
|
664
|
+
private placementForRescue;
|
|
665
|
+
private placementAtNextCheckpoint;
|
|
666
|
+
private placementBeforeFinishLine;
|
|
667
|
+
private static nearestGateIndex;
|
|
668
|
+
private followAutoDrive;
|
|
669
|
+
private isKartAutoDriving;
|
|
670
|
+
private resumeAheadOfKart;
|
|
671
|
+
private skipToNextGate;
|
|
672
|
+
private resetStuckWatch;
|
|
673
|
+
private getCurrentPath;
|
|
674
|
+
private updateSpeedCap;
|
|
675
|
+
private computeSteering;
|
|
676
|
+
private aimPoint;
|
|
677
|
+
private canDrift;
|
|
678
|
+
private driftEntrySteering;
|
|
679
|
+
private driftSideOf;
|
|
680
|
+
private computeThrottle;
|
|
681
|
+
private getRace;
|
|
682
|
+
}
|
|
683
|
+
export type KartAudioGroup = "engine" | "drift" | "boost" | "hop" | "trick" | "glider" | "impact" | "start" | "item" | "race" | "hover" | "results";
|
|
684
|
+
export interface IKartVoiceSlot {
|
|
685
|
+
id: string;
|
|
686
|
+
unity: string;
|
|
687
|
+
group: KartAudioGroup;
|
|
688
|
+
sourceName: string;
|
|
689
|
+
volume: number;
|
|
690
|
+
looping: boolean;
|
|
691
|
+
waveform: string;
|
|
692
|
+
frequency: number;
|
|
693
|
+
gain: number;
|
|
694
|
+
attack: number;
|
|
695
|
+
release: number;
|
|
696
|
+
}
|
|
697
|
+
export declare const KART_VOICE_SLOTS: IKartVoiceSlot[];
|
|
698
|
+
export interface IKartVoiceRota {
|
|
699
|
+
prefix: string;
|
|
700
|
+
count: number;
|
|
701
|
+
unity: string;
|
|
702
|
+
group: KartAudioGroup;
|
|
703
|
+
sourceName: string;
|
|
704
|
+
volume: number;
|
|
705
|
+
waveform: string;
|
|
706
|
+
frequency: number;
|
|
707
|
+
spread: number;
|
|
708
|
+
gain: number;
|
|
709
|
+
attack: number;
|
|
710
|
+
release: number;
|
|
711
|
+
}
|
|
712
|
+
export declare const KART_VOICE_ROTAS: IKartVoiceRota[];
|
|
713
|
+
export declare function buildKartVoiceSlots(counts?: any): IKartVoiceSlot[];
|
|
714
|
+
export type KartVoiceSet = "player" | "opponent";
|
|
715
|
+
export interface IKartClipValues {
|
|
716
|
+
volume?: number;
|
|
717
|
+
loop?: boolean;
|
|
718
|
+
pitch?: number;
|
|
719
|
+
spatialblend?: number;
|
|
720
|
+
rolloffmode?: string;
|
|
721
|
+
mindistance?: number;
|
|
722
|
+
maxdistance?: number;
|
|
723
|
+
}
|
|
724
|
+
export interface IKartClipDescriptor extends IKartClipValues {
|
|
725
|
+
filename: string;
|
|
726
|
+
name?: string;
|
|
727
|
+
length?: number;
|
|
728
|
+
type?: string;
|
|
729
|
+
}
|
|
730
|
+
export interface IKartAudioVoice {
|
|
731
|
+
play(): void;
|
|
732
|
+
playDelayed(delaySeconds: number): void;
|
|
733
|
+
stop(): void;
|
|
734
|
+
isPlaying(): boolean;
|
|
735
|
+
setPitch(value: number): void;
|
|
736
|
+
setVolume(value: number): void;
|
|
737
|
+
advance(dt: number): void;
|
|
738
|
+
dispose(): void;
|
|
739
|
+
getPlayCount(): number;
|
|
740
|
+
getLastDelay(): number;
|
|
741
|
+
}
|
|
742
|
+
export declare class KartSynthVoice implements IKartAudioVoice {
|
|
743
|
+
private static SharedContext;
|
|
744
|
+
private static ContextUnavailable;
|
|
745
|
+
private remaining;
|
|
746
|
+
private readonly waveform;
|
|
747
|
+
private readonly frequency;
|
|
748
|
+
private readonly baseGain;
|
|
749
|
+
private readonly looping;
|
|
750
|
+
private readonly attack;
|
|
751
|
+
private readonly release;
|
|
752
|
+
private oscillator;
|
|
753
|
+
private gainNode;
|
|
754
|
+
private playing;
|
|
755
|
+
private pitch;
|
|
756
|
+
private volume;
|
|
757
|
+
private playCount;
|
|
758
|
+
private lastDelay;
|
|
759
|
+
constructor(waveform: string, frequency: number, gain: number, looping: boolean, attack?: number, release?: number);
|
|
760
|
+
private static GetContext;
|
|
761
|
+
static ResetContext(): void;
|
|
762
|
+
play(): void;
|
|
763
|
+
playDelayed(delaySeconds: number): void;
|
|
764
|
+
stop(): void;
|
|
765
|
+
isPlaying(): boolean;
|
|
766
|
+
advance(dt: number): void;
|
|
767
|
+
setPitch(value: number): void;
|
|
768
|
+
setVolume(value: number): void;
|
|
769
|
+
dispose(): void;
|
|
770
|
+
getPlayCount(): number;
|
|
771
|
+
getLastDelay(): number;
|
|
772
|
+
private startNodes;
|
|
773
|
+
private stopNodes;
|
|
774
|
+
}
|
|
775
|
+
export declare class KartClipVoice implements IKartAudioVoice {
|
|
776
|
+
private readonly source;
|
|
777
|
+
private readonly duration;
|
|
778
|
+
private remaining;
|
|
779
|
+
private playing;
|
|
780
|
+
private playCount;
|
|
781
|
+
private lastDelay;
|
|
782
|
+
private stopCount;
|
|
783
|
+
private started;
|
|
784
|
+
private seekCount;
|
|
785
|
+
private clipLoopPoints;
|
|
786
|
+
private clipLoopRequested;
|
|
787
|
+
private levelScale;
|
|
788
|
+
private readonly clipUrl;
|
|
789
|
+
constructor(source: any, duration?: number, clipUrl?: string);
|
|
790
|
+
play(): void;
|
|
791
|
+
playDelayed(delaySeconds: number): void;
|
|
792
|
+
stop(): void;
|
|
793
|
+
isStarted(): boolean;
|
|
794
|
+
useClipLoopPoints(): void;
|
|
795
|
+
getClipLoop(): number[];
|
|
796
|
+
seek(offsetSeconds: number, crossfadeSeconds: number): boolean;
|
|
797
|
+
getSeekCount(): number;
|
|
798
|
+
isPlaying(): boolean;
|
|
799
|
+
advance(dt: number): void;
|
|
800
|
+
setPitch(value: number): void;
|
|
801
|
+
setVolume(value: number): void;
|
|
802
|
+
setLevelScale(scale: number): void;
|
|
803
|
+
getLevelScale(): number;
|
|
804
|
+
dispose(): void;
|
|
805
|
+
getPlayCount(): number;
|
|
806
|
+
getLastDelay(): number;
|
|
807
|
+
getSource(): any;
|
|
808
|
+
private watchStart;
|
|
809
|
+
private stopSource;
|
|
810
|
+
private getStaticSound;
|
|
811
|
+
private soundingSeconds;
|
|
812
|
+
private applyClipLoopPoints;
|
|
813
|
+
private getClipUrl;
|
|
814
|
+
private getClipDuration;
|
|
815
|
+
private static RampInstance;
|
|
816
|
+
}
|
|
817
|
+
export declare class KartClipLoopPoints {
|
|
818
|
+
private static readonly cache;
|
|
819
|
+
static Load(url: string): Promise<number[]>;
|
|
820
|
+
static Parse(bytes: ArrayBuffer): number[];
|
|
821
|
+
private static ChunkId;
|
|
822
|
+
}
|
|
823
|
+
export declare class KartEnginePlayhead {
|
|
824
|
+
private unityTime;
|
|
825
|
+
private voiceTime;
|
|
826
|
+
private advancing;
|
|
827
|
+
restart(): void;
|
|
828
|
+
step(deltaSeconds: number, pitch: number, band: number, rate: number, loop: number[], voiceRunning: boolean): boolean;
|
|
829
|
+
markSeeked(): void;
|
|
830
|
+
getTime(): number;
|
|
831
|
+
getVoiceTime(): number;
|
|
832
|
+
static Wrap(time: number, loop: number[]): number;
|
|
833
|
+
}
|
|
834
|
+
export declare class KartManagedVoice implements IKartAudioVoice {
|
|
835
|
+
private readonly soundName;
|
|
836
|
+
private readonly duration;
|
|
837
|
+
private playing;
|
|
838
|
+
private remaining;
|
|
839
|
+
private playCount;
|
|
840
|
+
private lastDelay;
|
|
841
|
+
constructor(soundName: string, duration?: number);
|
|
842
|
+
play(): void;
|
|
843
|
+
playDelayed(delaySeconds: number): void;
|
|
844
|
+
stop(): void;
|
|
845
|
+
isPlaying(): boolean;
|
|
846
|
+
setPitch(_value: number): void;
|
|
847
|
+
setVolume(_value: number): void;
|
|
848
|
+
advance(dt: number): void;
|
|
849
|
+
dispose(): void;
|
|
850
|
+
getPlayCount(): number;
|
|
851
|
+
getLastDelay(): number;
|
|
852
|
+
getSoundName(): string;
|
|
853
|
+
}
|
|
854
|
+
export declare class KartMutedVoice implements IKartAudioVoice {
|
|
855
|
+
play(): void;
|
|
856
|
+
playDelayed(_delaySeconds: number): void;
|
|
857
|
+
stop(): void;
|
|
858
|
+
isPlaying(): boolean;
|
|
859
|
+
setPitch(_value: number): void;
|
|
860
|
+
setVolume(_value: number): void;
|
|
861
|
+
advance(_dt: number): void;
|
|
862
|
+
dispose(): void;
|
|
863
|
+
getPlayCount(): number;
|
|
864
|
+
getLastDelay(): number;
|
|
865
|
+
}
|
|
866
|
+
export interface IKartAudioTarget {
|
|
867
|
+
transform?: BABYLON.TransformNode;
|
|
868
|
+
getDriftState(): number;
|
|
869
|
+
getDriftHopCount?(): number;
|
|
870
|
+
getDriftTime(): number;
|
|
871
|
+
getDriftTierTimes?(): number[];
|
|
872
|
+
getDriftDirection(): number;
|
|
873
|
+
getCurrentSpeed(): number;
|
|
874
|
+
isBoosting(): boolean;
|
|
875
|
+
getBoostTime(): number;
|
|
876
|
+
getBoostGrantCount?(): number;
|
|
877
|
+
getLastBoostSource?(): number;
|
|
878
|
+
isGliding(): boolean;
|
|
879
|
+
isJumpPanelling?(): boolean;
|
|
880
|
+
isTricking?(): boolean;
|
|
881
|
+
isTrickPending?(): boolean;
|
|
882
|
+
isGrounded?(): boolean;
|
|
883
|
+
getGlidingTime?(): number;
|
|
884
|
+
isGliderTrick?(): boolean;
|
|
885
|
+
getLaunchCharge?(): number;
|
|
886
|
+
isRevvingOnGrid?(): boolean;
|
|
887
|
+
isRaceCompleted?(): boolean;
|
|
888
|
+
isRaceStarted?(): boolean;
|
|
889
|
+
isRainbowRoad?: boolean;
|
|
890
|
+
isReverseSkidding?(): boolean;
|
|
891
|
+
hasStar?(): boolean;
|
|
892
|
+
isAutoDriving?(): boolean;
|
|
893
|
+
onKartHitObservable?: BABYLON.Observable<IKartHitEvent>;
|
|
894
|
+
onKartBumpObservable?: BABYLON.Observable<IKartBumpEvent>;
|
|
895
|
+
}
|
|
896
|
+
export declare class StandardKartAudio extends ScriptComponent {
|
|
897
|
+
kart: IKartAudioTarget;
|
|
898
|
+
audioEnabled: boolean;
|
|
899
|
+
playKartSounds: boolean;
|
|
900
|
+
voiceSet: KartVoiceSet;
|
|
901
|
+
driftAudioEnabled: boolean;
|
|
902
|
+
engineAudioEnabled: boolean;
|
|
903
|
+
boostAudioEnabled: boolean;
|
|
904
|
+
hopAudioEnabled: boolean;
|
|
905
|
+
trickAudioEnabled: boolean;
|
|
906
|
+
gliderAudioEnabled: boolean;
|
|
907
|
+
impactAudioEnabled: boolean;
|
|
908
|
+
startAudioEnabled: boolean;
|
|
909
|
+
masterVolume: number;
|
|
910
|
+
boostVoiceCount: number;
|
|
911
|
+
tierTonePitchStep: boolean;
|
|
912
|
+
trickVoiceCount: number;
|
|
913
|
+
driftSteerSourceName: string;
|
|
914
|
+
driftChargeSourceName: string;
|
|
915
|
+
engineSourceName: string;
|
|
916
|
+
idleSourceName: string;
|
|
917
|
+
boostSourceNamePrefix: string;
|
|
918
|
+
hopSourceName: string;
|
|
919
|
+
landSkidSourceName: string;
|
|
920
|
+
chassisSourceName: string;
|
|
921
|
+
jumpPanelSourceName: string;
|
|
922
|
+
gliderStartSourceName: string;
|
|
923
|
+
gliderFlutterSourceName: string;
|
|
924
|
+
gliderCloseSourceName: string;
|
|
925
|
+
startRevSourceName: string;
|
|
926
|
+
startDashSourceName: string;
|
|
927
|
+
gliderVoiceSourceName: string;
|
|
928
|
+
trickVoiceNamePrefix: string;
|
|
929
|
+
protected driftSteerVoice: IKartAudioVoice;
|
|
930
|
+
protected driftChargeVoice: IKartAudioVoice;
|
|
931
|
+
protected engineVoice: IKartAudioVoice;
|
|
932
|
+
protected idleVoice: IKartAudioVoice;
|
|
933
|
+
protected boostVoices: IKartAudioVoice[];
|
|
934
|
+
protected hopVoice: IKartAudioVoice;
|
|
935
|
+
protected landSkidVoice: IKartAudioVoice;
|
|
936
|
+
protected chassisVoice: IKartAudioVoice;
|
|
937
|
+
protected jumpPanelVoice: IKartAudioVoice;
|
|
938
|
+
protected gliderStartVoice: IKartAudioVoice;
|
|
939
|
+
protected gliderFlutterVoice: IKartAudioVoice;
|
|
940
|
+
protected gliderCloseVoice: IKartAudioVoice;
|
|
941
|
+
protected startRevVoice: IKartAudioVoice;
|
|
942
|
+
protected startDashVoice: IKartAudioVoice;
|
|
943
|
+
protected gliderTrickVoice: IKartAudioVoice;
|
|
944
|
+
protected trickVoices: IKartAudioVoice[];
|
|
945
|
+
protected voices: Map<string, IKartAudioVoice>;
|
|
946
|
+
protected slots: Map<string, IKartVoiceSlot>;
|
|
947
|
+
protected mutedVoices: Set<string>;
|
|
948
|
+
protected mutedGroups: Set<string>;
|
|
949
|
+
voiceSourceNames: any;
|
|
950
|
+
voiceClips: Record<string, IKartClipDescriptor>;
|
|
951
|
+
preferVoiceClips: string[];
|
|
952
|
+
voiceSlotsMuted: string[];
|
|
953
|
+
voiceSoundNames: any;
|
|
954
|
+
voiceTunings: any;
|
|
955
|
+
voiceVolumes: any;
|
|
956
|
+
protected rotaCursors: any;
|
|
957
|
+
protected soundCount: number;
|
|
958
|
+
protected lastBoostTime: number;
|
|
959
|
+
protected lastBoostGrantCount: number;
|
|
960
|
+
protected lastChargeTier: number;
|
|
961
|
+
protected engineTime: number;
|
|
962
|
+
protected enginePlayhead: KartEnginePlayhead;
|
|
963
|
+
protected enginePitch: number;
|
|
964
|
+
protected idleLevel: number;
|
|
965
|
+
protected sceneEntryFinished: boolean;
|
|
966
|
+
protected chargeRetriggerCount: number;
|
|
967
|
+
protected lastDriftState: number;
|
|
968
|
+
protected lastDriftHopCount: number;
|
|
969
|
+
protected lastJumpPanel: boolean;
|
|
970
|
+
protected lastTricking: boolean;
|
|
971
|
+
protected lastGrounded: boolean;
|
|
972
|
+
protected lastGliding: boolean;
|
|
973
|
+
protected lastGliderTrick: boolean;
|
|
974
|
+
protected trickAnimCounter: number;
|
|
975
|
+
protected hopCount: number;
|
|
976
|
+
protected trickVoiceCountFired: number;
|
|
977
|
+
protected landCount: number;
|
|
978
|
+
protected lastStar: boolean;
|
|
979
|
+
protected lastAutoDriving: boolean;
|
|
980
|
+
protected kartHitObserver: BABYLON.Observer<IKartHitEvent>;
|
|
981
|
+
protected kartBumpObserver: BABYLON.Observer<IKartBumpEvent>;
|
|
982
|
+
protected sceneRevealed: boolean;
|
|
983
|
+
protected awake(): void;
|
|
984
|
+
protected start(): void;
|
|
985
|
+
protected update(): void;
|
|
986
|
+
protected reveal(): void;
|
|
987
|
+
protected destroy(): void;
|
|
988
|
+
protected awakeAudioState(): void;
|
|
989
|
+
protected initAudioState(): void;
|
|
990
|
+
protected seedEdgeLedger(): void;
|
|
991
|
+
protected destroyAudioState(): void;
|
|
992
|
+
static SlotDuration(slot: IKartVoiceSlot): number;
|
|
993
|
+
protected tuneSlot(slot: IKartVoiceSlot): IKartVoiceSlot;
|
|
994
|
+
protected resolveSlot(slot: IKartVoiceSlot): IKartAudioVoice;
|
|
995
|
+
protected resolveClipTier(slot: IKartVoiceSlot): IKartAudioVoice;
|
|
996
|
+
static ReadSlotList(value: unknown): string[];
|
|
997
|
+
static ClipDurationSeconds(slot: IKartVoiceSlot, clip: IKartClipDescriptor, looping: boolean): number;
|
|
998
|
+
static ClipLooping(slot: IKartVoiceSlot, clip: IKartClipDescriptor): boolean;
|
|
999
|
+
static AwakeNow(component: ScriptComponent): void;
|
|
1000
|
+
protected buildClipSource(slot: IKartVoiceSlot, clip: IKartClipDescriptor): IKartAudioVoice;
|
|
1001
|
+
protected loadClipSource(source: any, filename: string): void;
|
|
1002
|
+
protected bindVoiceAliases(): void;
|
|
1003
|
+
protected collectRota(prefix: string): IKartAudioVoice[];
|
|
1004
|
+
protected findChildNode(name: string): BABYLON.TransformNode;
|
|
1005
|
+
protected resolveKartRoot(): BABYLON.TransformNode;
|
|
1006
|
+
protected forEachVoice(callback: (voice: IKartAudioVoice) => void): void;
|
|
1007
|
+
protected updateAudioState(): void;
|
|
1008
|
+
protected subscribeKartEvents(): void;
|
|
1009
|
+
protected unsubscribeKartEvents(): void;
|
|
1010
|
+
protected tickReverseSkidAudio(): void;
|
|
1011
|
+
protected tickStarAudio(): void;
|
|
1012
|
+
protected tickBulletAudio(): void;
|
|
1013
|
+
protected tickHopAudio(): void;
|
|
1014
|
+
protected tickJumpPanelAudio(): void;
|
|
1015
|
+
protected tickTrickAudio(): void;
|
|
1016
|
+
static VoiceForCounter(counter: number, length: number): number;
|
|
1017
|
+
protected tickImpactAudio(): void;
|
|
1018
|
+
protected tickGliderAudio(): void;
|
|
1019
|
+
protected tickStartAudio(): void;
|
|
1020
|
+
protected isStartRevHeld(): boolean;
|
|
1021
|
+
protected tickDriftAudio(): void;
|
|
1022
|
+
protected tickBoostAudio(): void;
|
|
1023
|
+
protected playRocketStartVoice(): void;
|
|
1024
|
+
static SourceSpeaks(source: number): boolean;
|
|
1025
|
+
protected checkIfPlaying(): boolean;
|
|
1026
|
+
protected tickEngineAudio(dt: number): void;
|
|
1027
|
+
protected applyEngineBand(deltaSeconds: number, band: number, rate: number): void;
|
|
1028
|
+
protected useClipLoopPoints(): void;
|
|
1029
|
+
static EngineBand(voiceSet: KartVoiceSet, speed: number): number;
|
|
1030
|
+
protected tickIdleLevel(dt: number): void;
|
|
1031
|
+
protected hasSceneEntryFinished(): boolean;
|
|
1032
|
+
static EnginePitchTarget(boosting: boolean, gliding: boolean): number;
|
|
1033
|
+
static SynthEnginePitch(enginePitch: number, engineTime: number): number;
|
|
1034
|
+
static EngineBandTime(speed: number, current: number): number;
|
|
1035
|
+
static OpponentEngineBandTime(speed: number, current: number): number;
|
|
1036
|
+
static NormalizeVoiceSet(value: any): KartVoiceSet;
|
|
1037
|
+
protected engineVolume(gliding: boolean): number;
|
|
1038
|
+
protected applyVoiceSetSpatial(): void;
|
|
1039
|
+
protected applyPlayerPerceivedLevels(): void;
|
|
1040
|
+
protected applyPlayerSlotLevel(slotId: string, voice: IKartAudioVoice): void;
|
|
1041
|
+
protected muteSynthsOnRiggedKart(): void;
|
|
1042
|
+
static RecordedLevelFactor(slotId: string): number;
|
|
1043
|
+
static PerceivedGain(source: any, distance: number): number;
|
|
1044
|
+
static UnityAttenuation(mode: string, distance: number, minimum: number, maximum: number): number;
|
|
1045
|
+
protected slotVolume(slotId: string): number;
|
|
1046
|
+
protected applySpatialRole(voice: IKartAudioVoice, spatialBlend: number): void;
|
|
1047
|
+
getDriftSteerVoice(): IKartAudioVoice;
|
|
1048
|
+
getDriftChargeVoice(): IKartAudioVoice;
|
|
1049
|
+
getEngineVoice(): IKartAudioVoice;
|
|
1050
|
+
getIdleVoice(): IKartAudioVoice;
|
|
1051
|
+
getBoostVoices(): IKartAudioVoice[];
|
|
1052
|
+
getChargeRetriggerCount(): number;
|
|
1053
|
+
getSoundCount(): number;
|
|
1054
|
+
getEngineTime(): number;
|
|
1055
|
+
getEnginePitch(): number;
|
|
1056
|
+
getIdleLevel(): number;
|
|
1057
|
+
setSceneEntryFinished(finished: boolean): void;
|
|
1058
|
+
getHopVoice(): IKartAudioVoice;
|
|
1059
|
+
getLandSkidVoice(): IKartAudioVoice;
|
|
1060
|
+
getChassisVoice(): IKartAudioVoice;
|
|
1061
|
+
getJumpPanelVoice(): IKartAudioVoice;
|
|
1062
|
+
getGliderStartVoice(): IKartAudioVoice;
|
|
1063
|
+
getGliderFlutterVoice(): IKartAudioVoice;
|
|
1064
|
+
getGliderCloseVoice(): IKartAudioVoice;
|
|
1065
|
+
getStartRevVoice(): IKartAudioVoice;
|
|
1066
|
+
getStartDashVoice(): IKartAudioVoice;
|
|
1067
|
+
getGliderTrickVoice(): IKartAudioVoice;
|
|
1068
|
+
getTrickVoices(): IKartAudioVoice[];
|
|
1069
|
+
getTrickAnimCounter(): number;
|
|
1070
|
+
getHopCount(): number;
|
|
1071
|
+
getTrickVoiceFiredCount(): number;
|
|
1072
|
+
getLandCount(): number;
|
|
1073
|
+
getVoiceIds(): string[];
|
|
1074
|
+
getVoice(id: string): IKartAudioVoice;
|
|
1075
|
+
getVoiceSlot(id: string): IKartVoiceSlot;
|
|
1076
|
+
setVoice(id: string, voice: IKartAudioVoice): void;
|
|
1077
|
+
setVoiceSource(id: string, source: any, duration?: number): void;
|
|
1078
|
+
setVoiceEnabled(id: string, enabled: boolean): void;
|
|
1079
|
+
isVoiceEnabled(id: string): boolean;
|
|
1080
|
+
setGroupEnabled(group: KartAudioGroup, enabled: boolean): void;
|
|
1081
|
+
isGroupEnabled(group: KartAudioGroup): boolean;
|
|
1082
|
+
playVoice(id: string, volumeScale?: number): boolean;
|
|
1083
|
+
isVoiceAllowed(id: string): boolean;
|
|
1084
|
+
protected revealAudioState(): void;
|
|
1085
|
+
protected isHeldBehindSplash(): boolean;
|
|
1086
|
+
stopVoice(id: string): void;
|
|
1087
|
+
isVoicePlaying(id: string): boolean;
|
|
1088
|
+
playRota(prefix: string, volumeScale?: number): boolean;
|
|
1089
|
+
playCoin(volumeScale?: number): boolean;
|
|
1090
|
+
playBump(volumeScale?: number): boolean;
|
|
1091
|
+
playItemHit(volumeScale?: number): boolean;
|
|
1092
|
+
playObstacleHit(volumeScale?: number): boolean;
|
|
1093
|
+
playHurt(volumeScale?: number): boolean;
|
|
1094
|
+
playStar(volumeScale?: number): boolean;
|
|
1095
|
+
playBullet(phase: number, volumeScale?: number): boolean;
|
|
1096
|
+
playHoverEnter(volumeScale?: number): boolean;
|
|
1097
|
+
playHoverCharge(volumeScale?: number): boolean;
|
|
1098
|
+
playHoverFinish(volumeScale?: number): boolean;
|
|
1099
|
+
playFinish(volumeScale?: number): boolean;
|
|
1100
|
+
playResults(position: number): void;
|
|
1101
|
+
setSurfaceDrift(active: boolean): void;
|
|
1102
|
+
}
|
|
1103
|
+
export interface IKartCameraTarget {
|
|
1104
|
+
isPlayerBeingMoved(): boolean;
|
|
1105
|
+
isAntiGravity(): boolean;
|
|
1106
|
+
getAntiGravityRotAmountX?(): number;
|
|
1107
|
+
getAntiGravityRotAmountZ?(): number;
|
|
1108
|
+
isAntiGravityCamRotate?(): boolean;
|
|
1109
|
+
isGliding(): boolean;
|
|
1110
|
+
getGlideAngleX?(): number;
|
|
1111
|
+
getGlideAngleZ?(): number;
|
|
1112
|
+
isBoosting(): boolean;
|
|
1113
|
+
isJumpPanelling(): boolean;
|
|
1114
|
+
isTrickPending?(): boolean;
|
|
1115
|
+
}
|
|
1116
|
+
export declare class StandardKartCamera extends ScriptComponent {
|
|
1117
|
+
player: BABYLON.TransformNode;
|
|
1118
|
+
playerNodeName: string;
|
|
1119
|
+
kart: IKartCameraTarget;
|
|
1120
|
+
camera: any;
|
|
1121
|
+
race: any;
|
|
1122
|
+
raceStarted: boolean;
|
|
1123
|
+
raceCompleted: boolean;
|
|
1124
|
+
raceEndFOV: number;
|
|
1125
|
+
followRate: number;
|
|
1126
|
+
jumpPanelRate: number;
|
|
1127
|
+
glideRate: number;
|
|
1128
|
+
trickLevelRate: number;
|
|
1129
|
+
childRate: number;
|
|
1130
|
+
boostDollyRate: number;
|
|
1131
|
+
raceEndReturnRate: number;
|
|
1132
|
+
heightOffset: number;
|
|
1133
|
+
orig_pos: BABYLON.Vector3;
|
|
1134
|
+
boost_pos: BABYLON.Vector3;
|
|
1135
|
+
cameraLocalPosition: BABYLON.Vector3;
|
|
1136
|
+
cameraLocalRotation: BABYLON.Quaternion;
|
|
1137
|
+
defaultChildPitch: number;
|
|
1138
|
+
antiGravityPosY: number;
|
|
1139
|
+
antiGravityTailSeconds: number;
|
|
1140
|
+
rotAmountX: number;
|
|
1141
|
+
rotAmountZ: number;
|
|
1142
|
+
rotateCamAntiGravity: boolean;
|
|
1143
|
+
glideAngleX: number;
|
|
1144
|
+
glideAngleZ: number;
|
|
1145
|
+
protected child: BABYLON.TransformNode;
|
|
1146
|
+
protected antiGravityTail: number;
|
|
1147
|
+
private readonly targetRotation;
|
|
1148
|
+
private readonly childTarget;
|
|
1149
|
+
private readonly rigPosition;
|
|
1150
|
+
private readonly childPosition;
|
|
1151
|
+
private readonly unitScale;
|
|
1152
|
+
private readonly cameraLocalMatrix;
|
|
1153
|
+
private readonly cameraWorldMatrix;
|
|
1154
|
+
private readonly cameraWorldPosition;
|
|
1155
|
+
private readonly cameraWorldRotation;
|
|
1156
|
+
private readonly cameraWorldScale;
|
|
1157
|
+
protected awake(): void;
|
|
1158
|
+
protected start(): void;
|
|
1159
|
+
protected late(): void;
|
|
1160
|
+
protected destroy(): void;
|
|
1161
|
+
protected awakeCameraState(): void;
|
|
1162
|
+
protected initCameraState(): void;
|
|
1163
|
+
protected lateCameraState(): void;
|
|
1164
|
+
protected applyRaceEndFraming(raceCompleted: boolean): void;
|
|
1165
|
+
protected destroyCameraState(): void;
|
|
1166
|
+
protected updateRigPosition(antiGravity: boolean, gliding: boolean, raceCompleted: boolean): void;
|
|
1167
|
+
protected playerYaw(): number;
|
|
1168
|
+
protected isTrickPending(): boolean;
|
|
1169
|
+
protected updateRigRotation(dt: number, gliding: boolean, jumpPanel: boolean, trickPending: boolean, antiGravity: boolean, raceStarted: boolean): void;
|
|
1170
|
+
protected copyPlayerRotationTo(out: BABYLON.Quaternion): void;
|
|
1171
|
+
protected volumeRotAmountX(): number;
|
|
1172
|
+
protected isRaceStarted(): boolean;
|
|
1173
|
+
protected isRaceCompleted(): boolean;
|
|
1174
|
+
protected volumeRotAmountZ(): number;
|
|
1175
|
+
protected volumeGlideAngleX(): number;
|
|
1176
|
+
protected volumeGlideAngleZ(): number;
|
|
1177
|
+
protected isAntiGravityCamRotate(): boolean;
|
|
1178
|
+
protected updateChildRotation(dt: number, leaning: boolean): void;
|
|
1179
|
+
protected lerpChildTo(target: BABYLON.Vector3, k: number, leaning: boolean): void;
|
|
1180
|
+
protected updateChildPosition(dt: number, boosting: boolean, trickPending: boolean, leaning: boolean, raceCompleted: boolean): void;
|
|
1181
|
+
protected writeCamera(): void;
|
|
1182
|
+
getChild(): BABYLON.TransformNode;
|
|
1183
|
+
getAntiGravityTail(): number;
|
|
1184
|
+
getChildTargetY(boosting: boolean, trickPending?: boolean, dt?: number, raceCompleted?: boolean): number;
|
|
1185
|
+
isLeaning(): boolean;
|
|
1186
|
+
isUsingLocalUp(): boolean;
|
|
1187
|
+
getLeanAngle(): number;
|
|
1188
|
+
getHorizonTilt(): number;
|
|
1189
|
+
}
|
|
1190
|
+
export declare const UNITY_FIXED_STEP: number;
|
|
1191
|
+
export declare function approachRate(current: number, target: number, ratePerSecond: number, dt: number): number;
|
|
1192
|
+
export declare function approachPerStep(current: number, target: number, fractionPerStep: number, dt: number): number;
|
|
1193
|
+
export declare function dampPerStep(value: number, factorPerStep: number, dt: number): number;
|
|
1194
|
+
export declare const DRIFT_LATERAL_SLIP: number;
|
|
1195
|
+
export declare const DRIFT_MIN_SPEED: number;
|
|
1196
|
+
export declare const JUMP_PANEL_DECAY_RATE: number;
|
|
1197
|
+
export declare const JUMP_PANEL_THRUST: number;
|
|
1198
|
+
export declare const COMPUTER_JUMP_PANEL_THRUST: number;
|
|
1199
|
+
export declare const COMPUTER_DRIFT_SPEED_LOSS: number;
|
|
1200
|
+
export declare const JUMP_PANEL_ROTATE_SECONDS: number;
|
|
1201
|
+
export declare const JUMP_PANEL_ROTATE_RATE: number;
|
|
1202
|
+
export declare const TRICK_MIN_SPEED: number;
|
|
1203
|
+
export declare const TRICK_SECONDS: number;
|
|
1204
|
+
export declare const TRICK_FORCE_START: number;
|
|
1205
|
+
export declare const TRICK_FORCE_DECAY: number;
|
|
1206
|
+
export declare const TRICK_DECAY_STEP: number;
|
|
1207
|
+
export declare const TRICK_FORCE_FLOOR: number;
|
|
1208
|
+
export declare const TRICK_LANDING_BOOST: number;
|
|
1209
|
+
export declare const GLIDER_TRICK_SPEED: number;
|
|
1210
|
+
export declare const GLIDER_TRICK_OPEN_DELAY: number;
|
|
1211
|
+
export declare const FALL_RESCUE_MIN_SINK_SPEED: number;
|
|
1212
|
+
export declare const ANTI_GRAVITY_LOST_SECONDS: number;
|
|
1213
|
+
export declare const ANTI_GRAVITY_SEEK_DISTANCE: number;
|
|
1214
|
+
export declare const ANTI_GRAVITY_SEEK_SPEED: number;
|
|
1215
|
+
export declare const GROUND_MIN_NORMAL_Y: number;
|
|
1216
|
+
export declare const ANTI_GRAVITY_SURFACE_MIN_UP_DOT: number;
|
|
1217
|
+
export declare const ANTI_GRAVITY_SIDE_WALL_MAX_RIGHT_DOT: number;
|
|
1218
|
+
export declare const ANTI_GRAVITY_FOLD_MIN_UP_DOT: number;
|
|
1219
|
+
export declare const ANTI_GRAVITY_FOLD_MIN_TRAVEL_DOT: number;
|
|
1220
|
+
export declare const GLIDER_DEPLOY_MIN_UP: number;
|
|
1221
|
+
export declare const GLIDER_DEPLOY_MIN_ROAD_UP: number;
|
|
1222
|
+
export declare const GLIDER_TRICK_PAYOUT_DELAY: number;
|
|
1223
|
+
export declare const GLIDER_TRICK_BOOST: number;
|
|
1224
|
+
export declare const GLIDER_ROTATE_STRENGTH: number;
|
|
1225
|
+
export declare const COAST_MODEL_SETTLE_RATE: number;
|
|
1226
|
+
export declare const UNITY_ACCEL_RATE: number;
|
|
1227
|
+
export declare const BRAKE_FRACTION_PER_STEP: number;
|
|
1228
|
+
export declare const BRAKE_REVERSE_SPEED_DIVISOR: number;
|
|
1229
|
+
export declare const BRAKE_REVERSE_ROTATE_STRENGTH: number;
|
|
1230
|
+
export declare const KART_DRIFT_BRAKE_FLOOR_FRACTION: number;
|
|
1231
|
+
export declare const KART_DRIFT_BRAKE_RATE: number;
|
|
1232
|
+
export declare function driftBrakeSpeed(currentSpeed: number, maxSpeed: number, floorFraction: number, ratePerSecond: number, dt: number): number;
|
|
1233
|
+
export declare const KART_BOOST_ACCEL_RATE: number;
|
|
1234
|
+
export declare const KART_DRIFT_TIERS_UNITY: number[];
|
|
1235
|
+
export declare const KART_DRIFT_TIERS_TUNED: number[];
|
|
1236
|
+
export declare const KART_DRIFT_TIER_BOOST_SECONDS_UNITY: number[];
|
|
1237
|
+
export declare const GLIDER_PITCH_RANGE: number;
|
|
1238
|
+
export declare const GLIDER_PITCH_CLAMP: number;
|
|
1239
|
+
export declare const GLIDER_PITCH_RATE: number;
|
|
1240
|
+
export declare const GLIDER_DIVE_FORCE: number;
|
|
1241
|
+
export declare const GLIDER_LIFT_FORCE: number;
|
|
1242
|
+
export declare const GLIDER_LIFT_SECONDS: number;
|
|
1243
|
+
export declare const GLIDER_ROLL_RANGE: number;
|
|
1244
|
+
export declare const GLIDER_ROLL_RATE: number;
|
|
1245
|
+
export declare const GLIDER_ROLL_SMOOTH_RATE: number;
|
|
1246
|
+
export declare const GLIDER_CLOSE_CONFIRM: number;
|
|
1247
|
+
export declare const GLIDER_TRICK_FACE_SECONDS: number;
|
|
1248
|
+
export declare const GLIDER_TRICK_CLOSE_CONFIRM: number;
|
|
1249
|
+
export declare const GLIDER_LANDING_SECONDS: number;
|
|
1250
|
+
export declare const GLIDER_PANEL_BOOST: number;
|
|
1251
|
+
export declare const GLIDER_IMPULSE_SECONDS: number;
|
|
1252
|
+
export declare const GLIDER_IMPULSE_START: number;
|
|
1253
|
+
export declare const GLIDER_IMPULSE_END: number;
|
|
1254
|
+
export declare const GLIDER_ARCADE_SLOPE_MIN: number;
|
|
1255
|
+
export declare const GLIDER_ARCADE_SLOPE_FLOOR: number;
|
|
1256
|
+
export declare const GLIDER_ARCADE_SLOPE_SCALE: number;
|
|
1257
|
+
export declare const GLIDER_ARCADE_SINK_RATE: number;
|
|
1258
|
+
export declare const WHEEL_STEER_ANGLE: number;
|
|
1259
|
+
export declare const WHEEL_STEER_RATE: number;
|
|
1260
|
+
export declare const ANTIGRAVITY_SURFACE_TAIL: number;
|
|
1261
|
+
export declare const WHEEL_STEER_FREEZE_RATE: number;
|
|
1262
|
+
export declare const WHEEL_SPIN_SPEED_SWITCH: number;
|
|
1263
|
+
export declare const WHEEL_SPIN_SLOW_FACTOR: number;
|
|
1264
|
+
export declare const WHEEL_ACCELERATE_BACKWARDS_PASSES: number;
|
|
1265
|
+
export declare const WHEEL_ACCELERATE_BACKWARDS_FRONT_FACTOR: number;
|
|
1266
|
+
export declare const WHEEL_ACCELERATE_BACKWARDS_REAR_SOURCE: number;
|
|
1267
|
+
export declare const WHEEL_SPIN_RADIANS_PER_UNIT: number;
|
|
1268
|
+
export declare const WHEEL_ANTIGRAVITY_RATE: number;
|
|
1269
|
+
export declare const WHEEL_ANTIGRAVITY_ANGLE: number;
|
|
1270
|
+
export declare const WHEEL_ANTIGRAVITY_SPREAD: number;
|
|
1271
|
+
export declare const WHEEL_POSE_SIGN: number[];
|
|
1272
|
+
export declare const WHEEL_SPIN_AXIS: BABYLON.Vector3;
|
|
1273
|
+
export declare const WHEEL_STEER_AXIS: BABYLON.Vector3;
|
|
1274
|
+
export declare const WHEEL_POSE_AXIS: BABYLON.Vector3;
|
|
1275
|
+
export declare const ARM_ANTIGRAVITY_SCALE: number[];
|
|
1276
|
+
export declare const WHEEL_ANIMATOR_TRIGGER: string;
|
|
1277
|
+
export declare const DEG_TO_RAD: number;
|
|
1278
|
+
export declare const EXIT_ROTATE_EPSILON: number;
|
|
1279
|
+
export declare function wrapAngle(radians: number): number;
|
|
1280
|
+
export declare function approachAngle(current: number, target: number, fraction: number): number;
|
|
1281
|
+
export interface IKartKeyframe {
|
|
1282
|
+
time: number;
|
|
1283
|
+
value: number;
|
|
1284
|
+
}
|
|
1285
|
+
export declare function sampleTrack(track: IKartKeyframe[], time: number): number;
|
|
1286
|
+
export declare const KART_HOP_TRACK: IKartKeyframe[];
|
|
1287
|
+
export declare const KART_SHAKE_TRACK: IKartKeyframe[];
|
|
1288
|
+
export declare const KART_ANTIGRAVITY_TRACK: IKartKeyframe[];
|
|
1289
|
+
export declare const KART_IDLE_TRACK: IKartKeyframe[];
|
|
1290
|
+
export declare const KART_IDLE_LOOP_SECONDS: number;
|
|
1291
|
+
export declare const KART_START_TURBO_FRAME_RATE: number;
|
|
1292
|
+
export declare const KART_START_TURBO_STATE_SPEED: number;
|
|
1293
|
+
export declare const KART_START_TURBO_LIFT: number[];
|
|
1294
|
+
export declare const KART_START_TURBO_SWAY: number[];
|
|
1295
|
+
export declare const KART_START_TURBO_YAW: number[];
|
|
1296
|
+
export interface IKartStartTurboPose {
|
|
1297
|
+
lift: number;
|
|
1298
|
+
sway: number;
|
|
1299
|
+
yaw: number;
|
|
1300
|
+
}
|
|
1301
|
+
export declare function sampleStartTurboPose(time: number, result: IKartStartTurboPose): IKartStartTurboPose;
|
|
1302
|
+
export declare const GRID_REV_WHEEL_SPIN_SOURCE: number;
|
|
1303
|
+
export declare const ROCKET_START_SMOOTHING_PASSES: number;
|
|
1304
|
+
export declare const ROCKET_START_SMOOTHING_STEP_SECONDS: number;
|
|
1305
|
+
export declare function rocketStartLaunchSpeed(currentSpeed: number, boostSpeed: number): number;
|
|
1306
|
+
export declare const KART_DRIFT_DUST_SECONDS: number;
|
|
1307
|
+
export declare function driftDustWindowSeconds(firstSparkTierSeconds: number): number;
|
|
1308
|
+
export declare const KART_UNDERWATER_ROLL_DEGREES: number;
|
|
1309
|
+
export declare const KART_UNDERWATER_DRIFT_LEFT_PARAMETER: string;
|
|
1310
|
+
export declare const KART_UNDERWATER_DRIFT_RIGHT_PARAMETER: string;
|
|
1311
|
+
export declare const KART_UNDERWATER_OFFSET: number;
|
|
1312
|
+
export declare const KART_UNDERWATER_LIFT: number;
|
|
1313
|
+
export declare const KART_UNDERWATER_BLEND: number;
|
|
1314
|
+
export declare const KART_DEPTH_WATER_NODE_NAME: string;
|
|
1315
|
+
export declare const KART_WATER_VERTICAL_DAMPING: number;
|
|
1316
|
+
export declare const KART_PROPELLER_NODE_NAME: string;
|
|
1317
|
+
export declare const KART_PROPELLER_SPIN_OFFSET: number;
|
|
1318
|
+
export declare const KART_PROPELLER_RACE_MIN_DEGREES: number;
|
|
1319
|
+
export declare const KART_PROPELLER_RACE_MAX_DEGREES: number;
|
|
1320
|
+
export declare const KART_PROPELLER_FINISH_MIN_DEGREES: number;
|
|
1321
|
+
export declare const KART_PROPELLER_FINISH_MAX_DEGREES: number;
|
|
1322
|
+
export declare function propellerStepDegrees(realCurrentSpeed: number, currentSpeed: number, raceCompleted: boolean): number;
|
|
1323
|
+
export declare const KART_ANIMATOR_TRIGGERS: string[];
|
|
1324
|
+
export interface IKartSpeedCapState {
|
|
1325
|
+
grounded: boolean;
|
|
1326
|
+
boost: boolean;
|
|
1327
|
+
star: boolean;
|
|
1328
|
+
desiredMaxSpeed: number;
|
|
1329
|
+
boostSpeed: number;
|
|
1330
|
+
}
|
|
1331
|
+
export declare function selectMaxSpeed(state: IKartSpeedCapState): number;
|
|
1332
|
+
export declare function clampAssignedVerticalVelocity(noseY: number, bodyY: number, antiGravity: boolean, jumpPanel?: boolean): number;
|
|
1333
|
+
export interface IKartSteerState {
|
|
1334
|
+
realCurrentSpeed: number;
|
|
1335
|
+
drifting: boolean;
|
|
1336
|
+
throttleHeld: boolean;
|
|
1337
|
+
}
|
|
1338
|
+
export declare function selectSpeedRotateRate(state: IKartSteerState): number;
|
|
1339
|
+
export declare function computeYawRate(rotateStrength: number, direction: number, speedRotateRate: number): number;
|
|
1340
|
+
export declare enum EKartBoostSource {
|
|
1341
|
+
None = 0,
|
|
1342
|
+
RocketStart = 1,
|
|
1343
|
+
BoostPad = 2,
|
|
1344
|
+
TrickLanding = 3,
|
|
1345
|
+
JumpPanel = 4,
|
|
1346
|
+
GliderExit = 5,
|
|
1347
|
+
GliderTrick = 6,
|
|
1348
|
+
DriftPayout = 7,
|
|
1349
|
+
Item = 8
|
|
1350
|
+
}
|
|
1351
|
+
export interface IKartAutoDriveOptions {
|
|
1352
|
+
speed: number;
|
|
1353
|
+
seconds: number;
|
|
1354
|
+
exitSpeed: number;
|
|
1355
|
+
targetProvider: () => BABYLON.Vector3;
|
|
1356
|
+
}
|
|
1357
|
+
export interface IKartHitEvent {
|
|
1358
|
+
kind: EKartHitKind;
|
|
1359
|
+
kart: StandardKartController;
|
|
1360
|
+
}
|
|
1361
|
+
export interface IKartBumpPartner {
|
|
1362
|
+
root: BABYLON.TransformNode;
|
|
1363
|
+
kart: StandardKartController | null;
|
|
1364
|
+
remote: KartBumpTarget | null;
|
|
1365
|
+
}
|
|
1366
|
+
export interface IKartBumpEvent {
|
|
1367
|
+
kart: StandardKartController;
|
|
1368
|
+
other: BABYLON.TransformNode;
|
|
1369
|
+
side: number;
|
|
1370
|
+
otherIsRemote: boolean;
|
|
1371
|
+
starContact: boolean;
|
|
1372
|
+
}
|
|
1373
|
+
export declare enum EKartDriftState {
|
|
1374
|
+
None = 0,
|
|
1375
|
+
Hop = 1,
|
|
1376
|
+
Drift = 2,
|
|
1377
|
+
Boost = 3
|
|
1378
|
+
}
|
|
1379
|
+
export interface IKartVehicleProfile {
|
|
1380
|
+
hopEnabled: boolean;
|
|
1381
|
+
gliderEnabled: boolean;
|
|
1382
|
+
antiGravityEnabled: boolean;
|
|
1383
|
+
tricksEnabled: boolean;
|
|
1384
|
+
jumpPanelsEnabled: boolean;
|
|
1385
|
+
handItemsEnabled: boolean;
|
|
1386
|
+
propellerEnabled: boolean;
|
|
1387
|
+
tiltEnabled: boolean;
|
|
1388
|
+
bulletBillEnabled: boolean;
|
|
1389
|
+
useBulletBillModel: boolean;
|
|
1390
|
+
trailingItemsEnabled: boolean;
|
|
1391
|
+
}
|
|
1392
|
+
export type KartVehicleProfileName = "kart" | "arcadeCar";
|
|
1393
|
+
export declare class StandardKartController extends ScriptComponent {
|
|
1394
|
+
static readonly CHASSIS_MEMBERSHIP_MASK: number;
|
|
1395
|
+
protected rayCollideMask: number;
|
|
1396
|
+
desiredMaxSpeed: number;
|
|
1397
|
+
boost_speed: number;
|
|
1398
|
+
boostAccelRate: number;
|
|
1399
|
+
driftBrakeRate: number;
|
|
1400
|
+
driftBrakeFloorFraction: number;
|
|
1401
|
+
driftTierTimes: number[];
|
|
1402
|
+
driftTierBoostSeconds: number[];
|
|
1403
|
+
desired_rotate_strength: number;
|
|
1404
|
+
steeringYawRateOverride: number;
|
|
1405
|
+
computerDriven: boolean;
|
|
1406
|
+
sphereRadius: number;
|
|
1407
|
+
sphereCenter: BABYLON.Vector3;
|
|
1408
|
+
chassisMass: number;
|
|
1409
|
+
chassisFriction: number;
|
|
1410
|
+
modelNodeName: string;
|
|
1411
|
+
wheelNodeNames: string[];
|
|
1412
|
+
wheelSpinNodeNames: string[];
|
|
1413
|
+
wheelSteerNodeNames: string[];
|
|
1414
|
+
steeringWheelNodeName: string;
|
|
1415
|
+
armNodeNames: string[];
|
|
1416
|
+
raycastNodeName: string;
|
|
1417
|
+
kartAnimatorNodeName: string;
|
|
1418
|
+
hitAnimatorNodeName: string;
|
|
1419
|
+
driverAnimatorNodeName: string;
|
|
1420
|
+
chassisAnimatorNodeName: string;
|
|
1421
|
+
gliderNodeName: string;
|
|
1422
|
+
headLookNodeName: string;
|
|
1423
|
+
hasHeldItem: boolean;
|
|
1424
|
+
Is_Dirt_Track: boolean;
|
|
1425
|
+
isRainbowRoad: boolean;
|
|
1426
|
+
raycastOffset: BABYLON.Vector3;
|
|
1427
|
+
groundRayDist: number;
|
|
1428
|
+
groundAlignRate: number;
|
|
1429
|
+
modelYawRate: number;
|
|
1430
|
+
driftYawAngle: number;
|
|
1431
|
+
driftLatchDelay: number;
|
|
1432
|
+
driftLatchThreshold: number;
|
|
1433
|
+
vehicleProfile: KartVehicleProfileName | null;
|
|
1434
|
+
hopEnabled: boolean;
|
|
1435
|
+
gliderEnabled: boolean;
|
|
1436
|
+
arcadeGlider: boolean;
|
|
1437
|
+
gliderSlopeMin: number;
|
|
1438
|
+
gliderSlopeFloor: number;
|
|
1439
|
+
gliderSinkRate: number;
|
|
1440
|
+
antiGravityEnabled: boolean;
|
|
1441
|
+
tricksEnabled: boolean;
|
|
1442
|
+
jumpPanelsEnabled: boolean;
|
|
1443
|
+
handItemsEnabled: boolean;
|
|
1444
|
+
propellerEnabled: boolean;
|
|
1445
|
+
tiltEnabled: boolean;
|
|
1446
|
+
bulletBillEnabled: boolean;
|
|
1447
|
+
useBulletBillModel: boolean;
|
|
1448
|
+
trailingItemsEnabled: boolean;
|
|
1449
|
+
bodyLeanAngle: number;
|
|
1450
|
+
antiGravityExitRateX: number;
|
|
1451
|
+
antiGravityExitRateYZ: number;
|
|
1452
|
+
correctArrowKeyGate: boolean;
|
|
1453
|
+
correctNeutralSteer: boolean;
|
|
1454
|
+
sparkTier1Color: string;
|
|
1455
|
+
sparkTier2Color: string;
|
|
1456
|
+
sparkTier3Color: string;
|
|
1457
|
+
rayIncludeLayers: string[];
|
|
1458
|
+
static readonly UNITY_LAYERS: string[];
|
|
1459
|
+
static readonly KART_PROFILE: Readonly<IKartVehicleProfile>;
|
|
1460
|
+
static readonly ARCADE_CAR_PROFILE: Readonly<IKartVehicleProfile>;
|
|
1461
|
+
static readonly VEHICLE_PROFILES: Readonly<Record<KartVehicleProfileName, Readonly<IKartVehicleProfile>>>;
|
|
1462
|
+
private static readonly PROFILE_GATED_TAGS;
|
|
1463
|
+
protected currentspeed: number;
|
|
1464
|
+
protected REALCURRENTSPEED: number;
|
|
1465
|
+
protected rotate_strength: number;
|
|
1466
|
+
protected Drift_time: number;
|
|
1467
|
+
protected Boost_time: number;
|
|
1468
|
+
protected drift_direction: number;
|
|
1469
|
+
protected drift_right: boolean;
|
|
1470
|
+
protected drift_left: boolean;
|
|
1471
|
+
protected drifting: boolean;
|
|
1472
|
+
protected direction: number;
|
|
1473
|
+
protected driftState: EKartDriftState;
|
|
1474
|
+
protected grounded: boolean;
|
|
1475
|
+
protected antiGravity: boolean;
|
|
1476
|
+
protected antiGravityVolumes: BABYLON.TransformNode[];
|
|
1477
|
+
protected antiGravityRotAmountX: number;
|
|
1478
|
+
protected antiGravityRotAmountZ: number;
|
|
1479
|
+
protected antiGravityRotateCam: boolean;
|
|
1480
|
+
protected exitRotateActive: boolean;
|
|
1481
|
+
protected exitRotateX: boolean;
|
|
1482
|
+
protected exitRotateY: boolean;
|
|
1483
|
+
protected exitRotateZ: boolean;
|
|
1484
|
+
protected exitRotateTarget: BABYLON.Vector3;
|
|
1485
|
+
private exitRotateVolume;
|
|
1486
|
+
private exitEuler;
|
|
1487
|
+
private exitQuaternion;
|
|
1488
|
+
private jumpRotation;
|
|
1489
|
+
private gliderEuler;
|
|
1490
|
+
protected GLIDER_FLY: boolean;
|
|
1491
|
+
protected groundNormal: BABYLON.Vector3;
|
|
1492
|
+
protected yawRate: number;
|
|
1493
|
+
protected slipAngle: number;
|
|
1494
|
+
protected inputThrottle: number;
|
|
1495
|
+
protected inputBraking: boolean;
|
|
1496
|
+
protected inputSteering: number;
|
|
1497
|
+
protected inputDrifting: boolean;
|
|
1498
|
+
protected inputTrick: boolean;
|
|
1499
|
+
protected trickTime: number;
|
|
1500
|
+
protected trickArmed: boolean;
|
|
1501
|
+
protected trickPerformed: boolean;
|
|
1502
|
+
protected trickPressed: boolean;
|
|
1503
|
+
protected verticalAccumulates: boolean;
|
|
1504
|
+
protected inputPitch: number;
|
|
1505
|
+
protected chassisBody: BABYLON.PhysicsBody;
|
|
1506
|
+
protected raycastNode: BABYLON.TransformNode;
|
|
1507
|
+
protected JUMP_PANEL: boolean;
|
|
1508
|
+
protected upForce: number;
|
|
1509
|
+
protected downForce: number;
|
|
1510
|
+
protected jumpPanelRotateTime: number;
|
|
1511
|
+
protected jumpPanelRotateTarget: BABYLON.Quaternion;
|
|
1512
|
+
protected glidingTime: number;
|
|
1513
|
+
protected glideAngleX: number;
|
|
1514
|
+
protected glideAngleZ: number;
|
|
1515
|
+
protected gliderOpenDelay: number;
|
|
1516
|
+
protected gliderTrick: boolean;
|
|
1517
|
+
protected gliderTrickPayout: number;
|
|
1518
|
+
protected gliderPitch: number;
|
|
1519
|
+
protected gliderSlope: number;
|
|
1520
|
+
protected sceneGravityY: number;
|
|
1521
|
+
protected gliderRoll: number;
|
|
1522
|
+
protected gliderRollVelocity: number;
|
|
1523
|
+
protected gliderImpulseTime: number;
|
|
1524
|
+
protected probeGrounded: boolean;
|
|
1525
|
+
protected driftEntryGrounded: boolean;
|
|
1526
|
+
protected groundDistance: number;
|
|
1527
|
+
protected activeGroundRayDist: number;
|
|
1528
|
+
protected gliderLandingTimer: number;
|
|
1529
|
+
protected gliderLanded: boolean;
|
|
1530
|
+
protected max_speed: number;
|
|
1531
|
+
protected Boost: boolean;
|
|
1532
|
+
protected cancelAddforceDown: boolean;
|
|
1533
|
+
protected airForceVolumes: BABYLON.TransformNode[];
|
|
1534
|
+
protected wheelNodes: BABYLON.TransformNode[];
|
|
1535
|
+
protected wheelRestPositions: BABYLON.Vector3[];
|
|
1536
|
+
protected wheelRestRotations: BABYLON.Quaternion[];
|
|
1537
|
+
protected antiGravityTirePositions: BABYLON.Vector3[];
|
|
1538
|
+
protected antiGravityTireTargets: BABYLON.Vector3[];
|
|
1539
|
+
antiGravityTireColor: string;
|
|
1540
|
+
protected steeringWheelRest: BABYLON.Quaternion;
|
|
1541
|
+
protected armNodes: BABYLON.TransformNode[];
|
|
1542
|
+
protected armRestScales: BABYLON.Vector3[];
|
|
1543
|
+
protected steeringWheelNode: BABYLON.TransformNode;
|
|
1544
|
+
protected wheelSteer: number;
|
|
1545
|
+
protected wheelSpin: number;
|
|
1546
|
+
protected wheelSpinNodes: BABYLON.TransformNode[];
|
|
1547
|
+
protected wheelSpinRests: BABYLON.Quaternion[];
|
|
1548
|
+
protected wheelSteerNodes: BABYLON.TransformNode[];
|
|
1549
|
+
protected wheelSteerRests: BABYLON.Quaternion[];
|
|
1550
|
+
protected wheelAntiGravity: number;
|
|
1551
|
+
private wheelSpinRotation;
|
|
1552
|
+
private wheelSteerRotation;
|
|
1553
|
+
private wheelPoseRotation;
|
|
1554
|
+
private wheelCompose;
|
|
1555
|
+
protected onDirt: boolean;
|
|
1556
|
+
protected awake(): void;
|
|
1557
|
+
protected start(): void;
|
|
1558
|
+
protected update(): void;
|
|
1559
|
+
protected late(): void;
|
|
1560
|
+
protected step(): void;
|
|
1561
|
+
protected fixed(): void;
|
|
1562
|
+
protected destroy(): void;
|
|
1563
|
+
protected awakeKartState(): void;
|
|
1564
|
+
protected initKartState(): void;
|
|
1565
|
+
private attachCollisionEvents;
|
|
1566
|
+
protected onVolumeEnter(other: BABYLON.TransformNode): void;
|
|
1567
|
+
protected onVolumeExit(other: BABYLON.TransformNode): void;
|
|
1568
|
+
isVolumeEnabled(tag: string): boolean;
|
|
1569
|
+
applyVehicleProfile(profile: KartVehicleProfileName | Partial<IKartVehicleProfile>): void;
|
|
1570
|
+
getVehicleProfile(): IKartVehicleProfile;
|
|
1571
|
+
getVehicleProfileName(): KartVehicleProfileName | null;
|
|
1572
|
+
private matchesVehicleProfile;
|
|
1573
|
+
protected enterAntiGravityVolume(volume: BABYLON.TransformNode): void;
|
|
1574
|
+
protected exitAntiGravity(volume: BABYLON.TransformNode): void;
|
|
1575
|
+
private leaveAntiGravityExitVolume;
|
|
1576
|
+
protected tickAntiGravity(dt: number): void;
|
|
1577
|
+
protected applyAntiGravityExitRotation(dt: number): void;
|
|
1578
|
+
private readVolumeField;
|
|
1579
|
+
private hasJumpPanelRotatePayload;
|
|
1580
|
+
private readVectorArray;
|
|
1581
|
+
private buildAntiGravityTireTargets;
|
|
1582
|
+
private readUnityColor;
|
|
1583
|
+
private readVolumeNumber;
|
|
1584
|
+
private readVolumeFlag;
|
|
1585
|
+
private readVolumeVector;
|
|
1586
|
+
protected enterJumpPanel(volume: BABYLON.TransformNode): void;
|
|
1587
|
+
protected enterJumpPanelRotate(volume: BABYLON.TransformNode): void;
|
|
1588
|
+
protected tickJumpPanel(dt: number): void;
|
|
1589
|
+
protected addLocalStepVelocity(x: number, y: number, z: number): void;
|
|
1590
|
+
protected addLocalVerticalPush(accel: number, canRunGrounded?: boolean): void;
|
|
1591
|
+
protected tickJumpPanelRotate(dt: number): void;
|
|
1592
|
+
protected endJumpPanel(): void;
|
|
1593
|
+
protected tryTrick(): boolean;
|
|
1594
|
+
protected tickTrick(dt: number): void;
|
|
1595
|
+
protected landTrick(): void;
|
|
1596
|
+
protected enterGliderSection(volume: BABYLON.TransformNode): void;
|
|
1597
|
+
protected canDeployGlider(): boolean;
|
|
1598
|
+
protected deployGlider(): void;
|
|
1599
|
+
protected startGliderFlight(): void;
|
|
1600
|
+
protected openGliderCanopy(): void;
|
|
1601
|
+
protected tickGlider(dt: number): void;
|
|
1602
|
+
protected gliderSinkTarget(): number;
|
|
1603
|
+
protected gliderVerticalFor(bodyY: number, dt: number): number;
|
|
1604
|
+
protected applyGliderAttitude(dt: number): void;
|
|
1605
|
+
protected isGliderOnSurface(): boolean;
|
|
1606
|
+
protected seedGliderAttitude(): void;
|
|
1607
|
+
protected closeGlider(): void;
|
|
1608
|
+
protected closeGliderImmediate(): void;
|
|
1609
|
+
protected exitGliderPanel(): void;
|
|
1610
|
+
protected tickGliderImpulse(dt: number): void;
|
|
1611
|
+
protected onBoostPad(volume: BABYLON.TransformNode): void;
|
|
1612
|
+
protected setCancelDownForce(active: boolean): void;
|
|
1613
|
+
protected applyAirForce(dt: number): void;
|
|
1614
|
+
protected applyAirForceVolume(volume: BABYLON.TransformNode, dt: number): void;
|
|
1615
|
+
protected updateWheels(dt: number): void;
|
|
1616
|
+
private rollingWheelSpinSource;
|
|
1617
|
+
private addRearWheelSpin;
|
|
1618
|
+
protected applyWheelPose(): void;
|
|
1619
|
+
setWheelNodes(wheels: BABYLON.TransformNode[], steeringWheel?: BABYLON.TransformNode): void;
|
|
1620
|
+
setWheelDriveNodes(spinNodes: BABYLON.TransformNode[], steerNodes: BABYLON.TransformNode[]): void;
|
|
1621
|
+
private static CaptureRestRotation;
|
|
1622
|
+
setArmNodes(arms: BABYLON.TransformNode[]): void;
|
|
1623
|
+
protected findRigNode(name: string): BABYLON.TransformNode;
|
|
1624
|
+
protected onSurfaceContact(other: BABYLON.TransformNode): void;
|
|
1625
|
+
private ensureChassisBody;
|
|
1626
|
+
protected updateKartState(): void;
|
|
1627
|
+
private readonly rayResult;
|
|
1628
|
+
private groundBody;
|
|
1629
|
+
protected overAntiGravitySurface: boolean;
|
|
1630
|
+
protected overOrdinarySurface: boolean;
|
|
1631
|
+
surfaceAntiGravity: boolean;
|
|
1632
|
+
endAntiGravityWithRoad: boolean;
|
|
1633
|
+
private readonly antiGravityRoadWatch;
|
|
1634
|
+
private readonly antiGravityInvertedWatch;
|
|
1635
|
+
private antiGravityRoadEndSeconds;
|
|
1636
|
+
private lastAntiGravityEndPosition;
|
|
1637
|
+
protected tickAntiGravityRoadEnd(dt: number): void;
|
|
1638
|
+
private tickAntiGravityInvertedRecovery;
|
|
1639
|
+
protected endAntiGravityAtRoadEnd(): void;
|
|
1640
|
+
private recordAntiGravityEnd;
|
|
1641
|
+
protected isAntiGravityReentryGuarded(): boolean;
|
|
1642
|
+
protected antiGravityFromSurface: boolean;
|
|
1643
|
+
protected antiGravitySurfaceTail: number;
|
|
1644
|
+
private readonly driftRayResult;
|
|
1645
|
+
private readonly rayEnd;
|
|
1646
|
+
private readonly rayDirection;
|
|
1647
|
+
private readonly rayExtent;
|
|
1648
|
+
private readonly alignRotation;
|
|
1649
|
+
private readonly alignTarget;
|
|
1650
|
+
private rayQuery;
|
|
1651
|
+
private readonly pendingAcceleration;
|
|
1652
|
+
private readonly assignedVelocity;
|
|
1653
|
+
private readonly bodyVelocity;
|
|
1654
|
+
private readonly localAccel;
|
|
1655
|
+
private readonly speedCapState;
|
|
1656
|
+
protected addWorldAcceleration(x: number, y: number, z: number): void;
|
|
1657
|
+
protected addLocalAcceleration(x: number, y: number, z: number): void;
|
|
1658
|
+
protected addStepVelocity(x: number, y: number, z: number): void;
|
|
1659
|
+
private move;
|
|
1660
|
+
protected endDriftOnCoast(dt: number): void;
|
|
1661
|
+
private readonly yawAxis;
|
|
1662
|
+
private readonly yawRotation;
|
|
1663
|
+
private readonly steerState;
|
|
1664
|
+
protected steer(dt: number): void;
|
|
1665
|
+
protected applyComputerDrift(dt: number): void;
|
|
1666
|
+
protected applyDriftModelYaw(hand: number, dt: number): void;
|
|
1667
|
+
protected applyDriftLateralForce(hand: number): void;
|
|
1668
|
+
protected applyDriftDownforce(): void;
|
|
1669
|
+
protected releaseDriftModelYaw(dt: number): void;
|
|
1670
|
+
protected raceStopDriftRotTimer: number;
|
|
1671
|
+
raceStopDriftRot(seconds: number): void;
|
|
1672
|
+
isRaceStopDriftRotRunning(): boolean;
|
|
1673
|
+
protected tickRaceStopDriftRot(dt: number): void;
|
|
1674
|
+
protected beforeStartAccelTime: number;
|
|
1675
|
+
protected tickBoost(dt: number): void;
|
|
1676
|
+
protected boostGrantCount: number;
|
|
1677
|
+
protected lastBoostSource: EKartBoostSource;
|
|
1678
|
+
protected recordBoostGrant(source: EKartBoostSource): void;
|
|
1679
|
+
grantBoost(seconds: number, source?: EKartBoostSource): void;
|
|
1680
|
+
floorBoost(seconds: number, source?: EKartBoostSource): void;
|
|
1681
|
+
protected payDriftBoost(tier: number): void;
|
|
1682
|
+
chargeLaunch(dt: number): void;
|
|
1683
|
+
releaseLaunch(): boolean;
|
|
1684
|
+
private playRocketStart;
|
|
1685
|
+
protected rearWheelRevSpin: number;
|
|
1686
|
+
protected wasRevvingOnGrid: boolean;
|
|
1687
|
+
protected startTurboOwnedByAnimator: boolean;
|
|
1688
|
+
protected startTurboTime: number;
|
|
1689
|
+
private readonly startTurboPose;
|
|
1690
|
+
isRevvingOnGrid(): boolean;
|
|
1691
|
+
protected updateGridRev(dt: number): void;
|
|
1692
|
+
protected previousDrifting: boolean;
|
|
1693
|
+
protected driftHopCount: number;
|
|
1694
|
+
protected driftPressLatched: boolean;
|
|
1695
|
+
protected driftLatchTimer: number;
|
|
1696
|
+
protected drift(dt: number): void;
|
|
1697
|
+
protected canHop(): boolean;
|
|
1698
|
+
protected hop(): void;
|
|
1699
|
+
protected canEnterDrift(): boolean;
|
|
1700
|
+
protected canHoldDrift(): boolean;
|
|
1701
|
+
protected mustLoseDrift(): boolean;
|
|
1702
|
+
protected enterDrift(): void;
|
|
1703
|
+
protected stopDrift(payout: boolean): void;
|
|
1704
|
+
protected onDriftEntry(): void;
|
|
1705
|
+
private playHop;
|
|
1706
|
+
protected onDriftExit(): void;
|
|
1707
|
+
protected modelNode: BABYLON.TransformNode;
|
|
1708
|
+
private readonly modelRestPosition;
|
|
1709
|
+
private readonly modelRestRotation;
|
|
1710
|
+
private readonly modelPoseOffset;
|
|
1711
|
+
private modelPoseYaw;
|
|
1712
|
+
private modelPoseRoll;
|
|
1713
|
+
protected animator: Animator;
|
|
1714
|
+
protected hitAnimator: Animator;
|
|
1715
|
+
protected driverAnimator: Animator;
|
|
1716
|
+
protected gliderAnimator: Animator;
|
|
1717
|
+
protected chassisAnimator: Animator;
|
|
1718
|
+
protected setGliderCanopy(open: boolean): void;
|
|
1719
|
+
protected driverAnimation: KartDriverAnimation;
|
|
1720
|
+
setDriverPathError(pathError: number): void;
|
|
1721
|
+
protected showsHeldItem(): boolean;
|
|
1722
|
+
protected driverAnimationFrame(): IDriverAnimationFrame;
|
|
1723
|
+
getRigAnimators(): Animator[];
|
|
1724
|
+
protected animatorOwnsWheels(): boolean;
|
|
1725
|
+
protected driftYaw: number;
|
|
1726
|
+
protected hopTime: number;
|
|
1727
|
+
protected shakeTime: number;
|
|
1728
|
+
protected antiGravityLiftTime: number;
|
|
1729
|
+
protected idleTime: number;
|
|
1730
|
+
protected underwaterBlend: number;
|
|
1731
|
+
protected underwaterHand: number;
|
|
1732
|
+
protected animatorOwnsUnderwaterDrift: boolean;
|
|
1733
|
+
private underwaterDriftAnimators;
|
|
1734
|
+
private underwaterDriftLeftWritten;
|
|
1735
|
+
private underwaterDriftRightWritten;
|
|
1736
|
+
protected wasAntiGravity: boolean;
|
|
1737
|
+
private readonly modelRotation;
|
|
1738
|
+
protected fireTrigger(name: string): boolean;
|
|
1739
|
+
protected bindUnderwaterDriftAnimators(): void;
|
|
1740
|
+
protected isUnderwaterDriftSide(side: number): boolean;
|
|
1741
|
+
protected currentDriftHand(): number;
|
|
1742
|
+
protected updateUnderwaterDriftParameters(): void;
|
|
1743
|
+
protected updateModelMotion(dt: number): void;
|
|
1744
|
+
protected advanceUnderwaterPose(deltaSeconds: number): void;
|
|
1745
|
+
protected composeModelPose(): void;
|
|
1746
|
+
private tickModelTriggers;
|
|
1747
|
+
getDriftYaw(): number;
|
|
1748
|
+
getModelLift(): number;
|
|
1749
|
+
getModelNode(): BABYLON.TransformNode;
|
|
1750
|
+
get modelLocalPosition(): BABYLON.Vector3;
|
|
1751
|
+
get modelLocalRotation(): BABYLON.Quaternion;
|
|
1752
|
+
protected FellInWater: boolean;
|
|
1753
|
+
protected outOfBounds: boolean;
|
|
1754
|
+
PlayerBeingMoved: boolean;
|
|
1755
|
+
protected IN_WATER: boolean;
|
|
1756
|
+
protected depthWaterVolumes: BABYLON.TransformNode[];
|
|
1757
|
+
protected propellerNode: BABYLON.TransformNode;
|
|
1758
|
+
protected propellerResolved: boolean;
|
|
1759
|
+
protected propellerShown: boolean;
|
|
1760
|
+
private readonly waterDampingUp;
|
|
1761
|
+
isInWater(): boolean;
|
|
1762
|
+
hasUnderwaterHandling(): boolean;
|
|
1763
|
+
getPropellerNode(): BABYLON.TransformNode;
|
|
1764
|
+
rescanPropeller(): void;
|
|
1765
|
+
protected enterDepthWater(volume: BABYLON.TransformNode): void;
|
|
1766
|
+
protected exitDepthWater(volume: BABYLON.TransformNode): void;
|
|
1767
|
+
protected resetDepthWater(): void;
|
|
1768
|
+
protected applyWaterDamping(dt: number): void;
|
|
1769
|
+
protected tickPropeller(dt: number): void;
|
|
1770
|
+
private updatePropellerVisibility;
|
|
1771
|
+
private resolvePropeller;
|
|
1772
|
+
private showPropeller;
|
|
1773
|
+
RACE_STARTED: boolean;
|
|
1774
|
+
RACE_COMPLETED: boolean;
|
|
1775
|
+
raceStopDrift(): void;
|
|
1776
|
+
private respawnTimer;
|
|
1777
|
+
private respawnStage;
|
|
1778
|
+
private readonly respawnPosition;
|
|
1779
|
+
private readonly respawnRotation;
|
|
1780
|
+
respawnTo(position: BABYLON.Vector3, rotation: BABYLON.Quaternion, immediate?: boolean): void;
|
|
1781
|
+
isRespawning(): boolean;
|
|
1782
|
+
airborneLevelRate: number;
|
|
1783
|
+
private probeMissSeconds;
|
|
1784
|
+
rescueDelaySeconds: number;
|
|
1785
|
+
rescueLiftSpeed: number;
|
|
1786
|
+
fallRescueSeconds: number;
|
|
1787
|
+
flippedRescueSeconds: number;
|
|
1788
|
+
stalledRescueSeconds: number;
|
|
1789
|
+
private readonly stallLastPosition;
|
|
1790
|
+
private stallPositionKnown;
|
|
1791
|
+
rescuePlacement: ((kart: StandardKartController, reason: EKartRescueReason, departure: BABYLON.Vector3) => IKartRescuePlacement | null) | null;
|
|
1792
|
+
readonly onKartRescuedObservable: BABYLON.Observable<IKartRescueEvent>;
|
|
1793
|
+
private readonly recoveryWatch;
|
|
1794
|
+
private contactSeconds;
|
|
1795
|
+
private static readonly CONTACT_SUPPORT_SECONDS;
|
|
1796
|
+
private readonly recoveryVelocity;
|
|
1797
|
+
private rescueReason;
|
|
1798
|
+
private rescueHeld;
|
|
1799
|
+
private lastGroundedAntiGravity;
|
|
1800
|
+
private courseMemory;
|
|
1801
|
+
private static courseMemoryKeyCount;
|
|
1802
|
+
private readonly courseMemoryKey;
|
|
1803
|
+
private readonly lastGroundedPosition;
|
|
1804
|
+
private readonly lastGroundedUp;
|
|
1805
|
+
private readonly rescueLiftStep;
|
|
1806
|
+
requestRescue(reason: EKartRescueReason): boolean;
|
|
1807
|
+
getRescueReason(): EKartRescueReason | null;
|
|
1808
|
+
setRescueFloor(floorY: number | null): void;
|
|
1809
|
+
getLastGroundedPosition(): BABYLON.Vector3;
|
|
1810
|
+
getLastGroundedUp(): BABYLON.Vector3;
|
|
1811
|
+
private holdForRescue;
|
|
1812
|
+
private placeRescuedKart;
|
|
1813
|
+
private restoreAntiGravityAt;
|
|
1814
|
+
private getCourseMemory;
|
|
1815
|
+
private tickRecoveryWatch;
|
|
1816
|
+
private measureStallSpeed;
|
|
1817
|
+
stuckRecoveryDelay: number;
|
|
1818
|
+
stuckRecoveryLift: number;
|
|
1819
|
+
protected stuckTimer: number;
|
|
1820
|
+
private readonly stuckRecoveryPosition;
|
|
1821
|
+
private readonly stuckRecoveryRotation;
|
|
1822
|
+
protected hasGroundlessExcuse(): boolean;
|
|
1823
|
+
protected tickStuckRecovery(dt: number): void;
|
|
1824
|
+
protected recoverFromStuck(): void;
|
|
1825
|
+
protected onStuckRecovery(): void;
|
|
1826
|
+
getStuckTime(): number;
|
|
1827
|
+
clearTransientState(): void;
|
|
1828
|
+
isPlayerBeingMoved(): boolean;
|
|
1829
|
+
private performRespawnTeleport;
|
|
1830
|
+
private tickRespawn;
|
|
1831
|
+
private finishRescue;
|
|
1832
|
+
protected onRecoveryVolume(tag: string): void;
|
|
1833
|
+
setRespawnPoint(position: BABYLON.Vector3, rotation: BABYLON.Quaternion): void;
|
|
1834
|
+
private commitVelocity;
|
|
1835
|
+
private updateGroundRayDistance;
|
|
1836
|
+
protected isRoadNormal(hitNormal: BABYLON.Vector3): boolean;
|
|
1837
|
+
private probeGround;
|
|
1838
|
+
protected latchAntiGravityOnBank(hitNormal: BABYLON.Vector3, hitBody: BABYLON.PhysicsBody | null | undefined): boolean;
|
|
1839
|
+
private probeDriftEntryGround;
|
|
1840
|
+
private alignToGroundNormal;
|
|
1841
|
+
protected levelAirborneAttitude(dt: number): void;
|
|
1842
|
+
protected seekAntiGravitySurface(deltaSeconds: number): void;
|
|
1843
|
+
protected stepKartState(): void;
|
|
1844
|
+
protected fixedKartState(): void;
|
|
1845
|
+
protected destroyKartState(): void;
|
|
1846
|
+
drive(throttle: number, steering: number, drifting: boolean, trick?: boolean, pitch?: number, braking?: boolean): void;
|
|
1847
|
+
readonly onKartHitObservable: BABYLON.Observable<IKartHitEvent>;
|
|
1848
|
+
readonly onKartBumpObservable: BABYLON.Observable<IKartBumpEvent>;
|
|
1849
|
+
readonly externalVelocity: BABYLON.Vector3;
|
|
1850
|
+
private readonly hitState;
|
|
1851
|
+
private activePushes;
|
|
1852
|
+
private wallBounceSpeed;
|
|
1853
|
+
private readonly wallBounceNormal;
|
|
1854
|
+
private readonly wallTravelDirection;
|
|
1855
|
+
private readonly wallEaseNormal;
|
|
1856
|
+
private readonly wallEaseInverseRotation;
|
|
1857
|
+
private readonly wallEaseRotation;
|
|
1858
|
+
private readonly surfaceContacts;
|
|
1859
|
+
private surfaceContactObserver;
|
|
1860
|
+
private readonly contactNormalTowardKart;
|
|
1861
|
+
private sweepShape;
|
|
1862
|
+
private sweepLayerMask;
|
|
1863
|
+
private readonly sweepTravel;
|
|
1864
|
+
private readonly sweepStart;
|
|
1865
|
+
private readonly sweepEnd;
|
|
1866
|
+
private readonly sweepInputResult;
|
|
1867
|
+
private readonly sweepHitResult;
|
|
1868
|
+
private ledgeAheadMountable;
|
|
1869
|
+
private blockedAheadBody;
|
|
1870
|
+
private readonly ledgeTouchTravelDirection;
|
|
1871
|
+
private readonly ledgeRoomStart;
|
|
1872
|
+
private readonly ledgeRoomEnd;
|
|
1873
|
+
private readonly ledgeRoomInputResult;
|
|
1874
|
+
private readonly ledgeRoomHitResult;
|
|
1875
|
+
private committedNoseSpeed;
|
|
1876
|
+
private readonly movingRoadVelocity;
|
|
1877
|
+
private contactClockSeconds;
|
|
1878
|
+
private readonly wallTouchSeconds;
|
|
1879
|
+
private bumpCooldownRemaining;
|
|
1880
|
+
private antiGravityBumpBoostCountdown;
|
|
1881
|
+
private autoDrive;
|
|
1882
|
+
private autoDriveRemaining;
|
|
1883
|
+
private hurtActive;
|
|
1884
|
+
private reverseSkidArmed;
|
|
1885
|
+
private reverseSkidActive;
|
|
1886
|
+
private reversingActive;
|
|
1887
|
+
private static readonly WALL_SWEEP_LIFT;
|
|
1888
|
+
private static readonly WALL_SWEEP_MARGIN;
|
|
1889
|
+
private static readonly WALL_SWEEP_MIN_SPEED;
|
|
1890
|
+
private static readonly LEDGE_ROOM_CLEARANCE;
|
|
1891
|
+
private static readonly LEDGE_ROOM_MARGIN;
|
|
1892
|
+
private static readonly ANTIGRAVITY_BUMP_BOOST_DELAY;
|
|
1893
|
+
private static readonly ANTIGRAVITY_BUMP_BOOST_BELOW;
|
|
1894
|
+
private static readonly AUTO_DRIVE_TURN_DIVIDER;
|
|
1895
|
+
static readonly BULLET_GROUND_RAY_DIST: number;
|
|
1896
|
+
private static readonly REVERSE_SKID_ARM_SPEED;
|
|
1897
|
+
private static readonly REVERSE_SKID_STALL_SPEED;
|
|
1898
|
+
private static readonly REVERSE_SKID_MAX_SPEED;
|
|
1899
|
+
private static readonly WALL_REARM_SECONDS;
|
|
1900
|
+
hitByBanana(): boolean;
|
|
1901
|
+
hitByShell(): boolean;
|
|
1902
|
+
hitByExplosion(): boolean;
|
|
1903
|
+
startStar(seconds?: number): void;
|
|
1904
|
+
startAutoDrive(options: IKartAutoDriveOptions): void;
|
|
1905
|
+
stopAutoDrive(): void;
|
|
1906
|
+
hasStar(): boolean;
|
|
1907
|
+
isAutoDriving(): boolean;
|
|
1908
|
+
isSpunOut(): boolean;
|
|
1909
|
+
isInvulnerable(): boolean;
|
|
1910
|
+
isReverseSkidding(): boolean;
|
|
1911
|
+
isReversing(): boolean;
|
|
1912
|
+
applyPush(force: BABYLON.Vector3, seconds: number): void;
|
|
1913
|
+
limitSpeed(maxSpeed: number): void;
|
|
1914
|
+
setRaceStarted(started: boolean): void;
|
|
1915
|
+
private readonly steeringYawRateState;
|
|
1916
|
+
getSteeringYawRate(): number;
|
|
1917
|
+
getHitState(): KartHitState;
|
|
1918
|
+
private landHit;
|
|
1919
|
+
private applyAutoDriveInputs;
|
|
1920
|
+
private tickAutoDrive;
|
|
1921
|
+
private tickAntiGravityBumpBoost;
|
|
1922
|
+
private stepPushes;
|
|
1923
|
+
private updateReverseSkid;
|
|
1924
|
+
private updateReversing;
|
|
1925
|
+
private onImpactContact;
|
|
1926
|
+
private attachSurfaceContacts;
|
|
1927
|
+
private onBodyContact;
|
|
1928
|
+
private contactStepMinUpDot;
|
|
1929
|
+
private armLedgeAtTouchedCorner;
|
|
1930
|
+
private isTouchedLedgeMountable;
|
|
1931
|
+
private isStaticScenery;
|
|
1932
|
+
private static belongsToRemoteKart;
|
|
1933
|
+
private hitWall;
|
|
1934
|
+
private easeHeadingAlongWall;
|
|
1935
|
+
private keepNoseSpeedOnMovingRoad;
|
|
1936
|
+
private isOnMovingRoad;
|
|
1937
|
+
private fadeWallBounce;
|
|
1938
|
+
private steeringBandSpeed;
|
|
1939
|
+
private limitApproachToWallAhead;
|
|
1940
|
+
private hasRoomOnLedge;
|
|
1941
|
+
private getSweepLayerMask;
|
|
1942
|
+
private getSweepShape;
|
|
1943
|
+
private getSweepRadius;
|
|
1944
|
+
private clearWallContacts;
|
|
1945
|
+
private bumpKart;
|
|
1946
|
+
private playBumpReaction;
|
|
1947
|
+
private findKartPartner;
|
|
1948
|
+
getCurrentSpeed(): number;
|
|
1949
|
+
getThrottleInput(): number;
|
|
1950
|
+
isBrakeHeld(): boolean;
|
|
1951
|
+
private isAccelerateHeld;
|
|
1952
|
+
private isBrakeInputHeld;
|
|
1953
|
+
protected isDriftBrakeActive(): boolean;
|
|
1954
|
+
get steerInput(): number;
|
|
1955
|
+
getRealCurrentSpeed(): number;
|
|
1956
|
+
getDriftState(): EKartDriftState;
|
|
1957
|
+
getDriftHopCount(): number;
|
|
1958
|
+
getDriftTime(): number;
|
|
1959
|
+
getDriftTier(): number;
|
|
1960
|
+
getDriftTierTimes(): number[];
|
|
1961
|
+
getRotateStrength(): number;
|
|
1962
|
+
getBoostTime(): number;
|
|
1963
|
+
isBoosting(): boolean;
|
|
1964
|
+
getMaxSpeed(): number;
|
|
1965
|
+
getLaunchCharge(): number;
|
|
1966
|
+
getSparkColor(): string | null;
|
|
1967
|
+
getYawRate(): number;
|
|
1968
|
+
getSlipAngle(): number;
|
|
1969
|
+
getGroundNormal(): BABYLON.Vector3;
|
|
1970
|
+
isGrounded(): boolean;
|
|
1971
|
+
isAirborne(): boolean;
|
|
1972
|
+
isProbeGrounded(): boolean;
|
|
1973
|
+
getGroundDistance(): number;
|
|
1974
|
+
getGroundRayDistance(): number;
|
|
1975
|
+
isDrifting(): boolean;
|
|
1976
|
+
getDriftDirection(): number;
|
|
1977
|
+
getDriftLatchTime(): number;
|
|
1978
|
+
isDriftLatched(): boolean;
|
|
1979
|
+
isGliding(): boolean;
|
|
1980
|
+
getGlidingTime(): number;
|
|
1981
|
+
isGliderTrick(): boolean;
|
|
1982
|
+
getGliderOpenDelay(): number;
|
|
1983
|
+
getGliderPitch(): number;
|
|
1984
|
+
getGliderRoll(): number;
|
|
1985
|
+
isArcadeGlider(): boolean;
|
|
1986
|
+
getGliderSlope(): number;
|
|
1987
|
+
getGliderSinkTarget(): number;
|
|
1988
|
+
getGlideAngles(): {
|
|
1989
|
+
x: number;
|
|
1990
|
+
z: number;
|
|
1991
|
+
};
|
|
1992
|
+
getGlideAngleX(): number;
|
|
1993
|
+
getGlideAngleZ(): number;
|
|
1994
|
+
getGliderImpulseTime(): number;
|
|
1995
|
+
isAntiGravity(): boolean;
|
|
1996
|
+
getAntiGravityRotAmountX(): number;
|
|
1997
|
+
getAntiGravityRotAmountZ(): number;
|
|
1998
|
+
isAntiGravityCamRotate(): boolean;
|
|
1999
|
+
isAntiGravityExiting(): boolean;
|
|
2000
|
+
getAntiGravityVolumeCount(): number;
|
|
2001
|
+
isJumpPanelling(): boolean;
|
|
2002
|
+
getJumpPanelForce(): number;
|
|
2003
|
+
getJumpPanelRotateTime(): number;
|
|
2004
|
+
isTricking(): boolean;
|
|
2005
|
+
getTrickTime(): number;
|
|
2006
|
+
isTrickArmed(): boolean;
|
|
2007
|
+
isTrickPending(): boolean;
|
|
2008
|
+
getWheelSteer(): number;
|
|
2009
|
+
getWheelSpin(): number;
|
|
2010
|
+
getWheelAntiGravity(): number;
|
|
2011
|
+
isOnDirt(): boolean;
|
|
2012
|
+
getBoostGrantCount(): number;
|
|
2013
|
+
getLastBoostSource(): EKartBoostSource;
|
|
2014
|
+
isFellInWater(): boolean;
|
|
2015
|
+
isRaceCompleted(): boolean;
|
|
2016
|
+
isRaceStarted(): boolean;
|
|
2017
|
+
}
|
|
2018
|
+
export interface IKartEffectsTarget {
|
|
2019
|
+
transform?: BABYLON.TransformNode;
|
|
2020
|
+
getDriftState(): number;
|
|
2021
|
+
getDriftTime(): number;
|
|
2022
|
+
getDriftTierTimes?(): number[];
|
|
2023
|
+
isDriftLatched(): boolean;
|
|
2024
|
+
getDriftDirection(): number;
|
|
2025
|
+
getBoostTime(): number;
|
|
2026
|
+
getBoostGrantCount?(): number;
|
|
2027
|
+
getLastBoostSource?(): number;
|
|
2028
|
+
isBoosting(): boolean;
|
|
2029
|
+
isAntiGravity(): boolean;
|
|
2030
|
+
isTricking(): boolean;
|
|
2031
|
+
isGrounded(): boolean;
|
|
2032
|
+
sparkTier1Color?: string;
|
|
2033
|
+
sparkTier2Color?: string;
|
|
2034
|
+
sparkTier3Color?: string;
|
|
2035
|
+
antiGravityTireColor?: string;
|
|
2036
|
+
hasUnderwaterHandling?(): boolean;
|
|
2037
|
+
Is_Dirt_Track?: boolean;
|
|
2038
|
+
getRealCurrentSpeed?(): number;
|
|
2039
|
+
isDrifting?(): boolean;
|
|
2040
|
+
isGliding?(): boolean;
|
|
2041
|
+
isJumpPanelling?(): boolean;
|
|
2042
|
+
getThrottleInput?(): number;
|
|
2043
|
+
isBrakeHeld?(): boolean;
|
|
2044
|
+
isAutoDriving?(): boolean;
|
|
2045
|
+
useBulletBillModel?: boolean;
|
|
2046
|
+
isReverseSkidding?(): boolean;
|
|
2047
|
+
hasStar?(): boolean;
|
|
2048
|
+
RACE_STARTED?: boolean;
|
|
2049
|
+
}
|
|
2050
|
+
export interface IKartEmitterGroup {
|
|
2051
|
+
name: string;
|
|
2052
|
+
mount: BABYLON.TransformNode | null;
|
|
2053
|
+
systems: ShurikenParticles[];
|
|
2054
|
+
playing: boolean;
|
|
2055
|
+
placeholder: boolean;
|
|
2056
|
+
simulationSpace: number;
|
|
2057
|
+
}
|
|
2058
|
+
export declare class StandardKartEffects extends ScriptComponent {
|
|
2059
|
+
private static readonly CURVE_MODE_CONSTANT;
|
|
2060
|
+
private static readonly CURVE_MODE_CURVE;
|
|
2061
|
+
private static readonly CURVE_MODE_TWO_CURVES;
|
|
2062
|
+
private static readonly CURVE_MODE_TWO_CONSTANTS;
|
|
2063
|
+
kart: IKartEffectsTarget;
|
|
2064
|
+
mountNode: BABYLON.TransformNode;
|
|
2065
|
+
modelNodeName: string;
|
|
2066
|
+
effectsEnabled: boolean;
|
|
2067
|
+
sparksEnabled: boolean;
|
|
2068
|
+
driftDustEnabled: boolean;
|
|
2069
|
+
driftDustWholeDrift: boolean;
|
|
2070
|
+
driftDustEmissionScale: number;
|
|
2071
|
+
driftDustSizeScale: number;
|
|
2072
|
+
driftDustLifetimeScale: number;
|
|
2073
|
+
boostBurstEnabled: boolean;
|
|
2074
|
+
boostFlamesEnabled: boolean;
|
|
2075
|
+
antiGravSpinEnabled: boolean;
|
|
2076
|
+
tireGlowEnabled: boolean;
|
|
2077
|
+
antiGravityTireColor: string;
|
|
2078
|
+
protected tireGlow: KartTireGlow;
|
|
2079
|
+
trickParticlesEnabled: boolean;
|
|
2080
|
+
groundLandEnabled: boolean;
|
|
2081
|
+
createPlaceholderEmitters: boolean;
|
|
2082
|
+
driftPSNodeName: string;
|
|
2083
|
+
rightWheelDriftNodeName: string;
|
|
2084
|
+
leftWheelDriftNodeName: string;
|
|
2085
|
+
driftDustLeftNodeName: string;
|
|
2086
|
+
driftDustRightNodeName: string;
|
|
2087
|
+
boostBurstNodeName: string;
|
|
2088
|
+
boostPSNodeName: string;
|
|
2089
|
+
antiGravSpinNodeName: string;
|
|
2090
|
+
trickParticlesNodeName: string;
|
|
2091
|
+
groundLandNodeName: string;
|
|
2092
|
+
dustNodeName: string;
|
|
2093
|
+
starNodeName: string;
|
|
2094
|
+
exhaustNodeName: string;
|
|
2095
|
+
startDustNodeName: string;
|
|
2096
|
+
sparkTier1Color: string;
|
|
2097
|
+
sparkTier2Color: string;
|
|
2098
|
+
sparkTier3Color: string;
|
|
2099
|
+
protected readonly groups: Map<string, IKartEmitterGroup>;
|
|
2100
|
+
protected activeSparkColor: string;
|
|
2101
|
+
protected lastBoostTime: number;
|
|
2102
|
+
protected lastBoostGrantCount: number;
|
|
2103
|
+
protected boostBurstCount: number;
|
|
2104
|
+
protected antiGravSpinTimer: number;
|
|
2105
|
+
protected antiGravSpinArmed: boolean;
|
|
2106
|
+
protected lastAntiGravity: boolean;
|
|
2107
|
+
protected lastTricking: boolean;
|
|
2108
|
+
protected lastGrounded: boolean;
|
|
2109
|
+
private readonly scratchColor;
|
|
2110
|
+
protected awake(): void;
|
|
2111
|
+
protected start(): void;
|
|
2112
|
+
protected update(): void;
|
|
2113
|
+
protected destroy(): void;
|
|
2114
|
+
protected awakeEffectsState(): void;
|
|
2115
|
+
protected initEffectsState(): void;
|
|
2116
|
+
protected destroyEffectsState(): void;
|
|
2117
|
+
protected updateEffectsState(): void;
|
|
2118
|
+
protected tickTrackDust(): void;
|
|
2119
|
+
protected isDirtTrackDustDue(): boolean;
|
|
2120
|
+
protected isKartBraking(): boolean;
|
|
2121
|
+
protected tickStartDust(): void;
|
|
2122
|
+
protected tickStar(): void;
|
|
2123
|
+
protected tickDriftEffects(): void;
|
|
2124
|
+
protected tickBoostEffects(): void;
|
|
2125
|
+
protected isFlameRideRunning(): boolean;
|
|
2126
|
+
protected tickAntiGravSpin(dt: number): void;
|
|
2127
|
+
protected tickTireGlow(deltaSeconds: number): void;
|
|
2128
|
+
protected tickOneShots(): void;
|
|
2129
|
+
protected playGroup(name: string): void;
|
|
2130
|
+
protected stopGroup(name: string): void;
|
|
2131
|
+
private static AnySystemPlaying;
|
|
2132
|
+
protected restartGroup(name: string): void;
|
|
2133
|
+
protected stopAllGroups(): void;
|
|
2134
|
+
protected applySparkColor(hex: string): void;
|
|
2135
|
+
protected writeGroupColor(name: string, hex: string): void;
|
|
2136
|
+
protected resolveMountNode(): BABYLON.TransformNode;
|
|
2137
|
+
protected resolveSimulationSpace(group: IKartEmitterGroup, kind: string): number;
|
|
2138
|
+
protected findChildNode(name: string): BABYLON.TransformNode;
|
|
2139
|
+
protected resolveKartRoot(): BABYLON.TransformNode;
|
|
2140
|
+
protected buildGroups(): void;
|
|
2141
|
+
protected registerGroup(key: string, nodeName: string, parent: BABYLON.TransformNode, count: number, offset: BABYLON.Vector3, kind: string, placeholderAllowed?: boolean): void;
|
|
2142
|
+
protected scaleDriftDustSystems(groupName: string): void;
|
|
2143
|
+
protected scaleDustStartSize(main: IParticleMainModule, particles: BABYLON.ParticleSystem, sizeScale: number): void;
|
|
2144
|
+
protected scaleDustStartLifetime(main: IParticleMainModule, particles: BABYLON.ParticleSystem, lifetimeScale: number): void;
|
|
2145
|
+
protected static ScaleMinMaxCurve(curve: IParticleMinMaxCurve, factor: number): boolean;
|
|
2146
|
+
protected findNamedChildOf(parent: BABYLON.TransformNode, name: string): BABYLON.TransformNode;
|
|
2147
|
+
protected collectParticleComponents(node: BABYLON.TransformNode): ShurikenParticles[];
|
|
2148
|
+
protected createMountNode(name: string, offset: BABYLON.Vector3): BABYLON.TransformNode;
|
|
2149
|
+
protected createPlaceholderSystems(mount: BABYLON.TransformNode, nodeName: string, count: number, kind: string): ShurikenParticles[];
|
|
2150
|
+
protected static Curve(value: number): any;
|
|
2151
|
+
protected static PlaceholderProperties(kind: string, index: number): any;
|
|
2152
|
+
protected static SparkProperties(index: number): any;
|
|
2153
|
+
protected static DustProperties(): any;
|
|
2154
|
+
protected static BurstProperties(): any;
|
|
2155
|
+
protected static FlameProperties(): any;
|
|
2156
|
+
protected static SpinProperties(): any;
|
|
2157
|
+
isGroupPlaying(name: string): boolean;
|
|
2158
|
+
getGroupSystemCount(name: string): number;
|
|
2159
|
+
isGroupPlaceholder(name: string): boolean;
|
|
2160
|
+
getGroupNames(): string[];
|
|
2161
|
+
getActiveSparkColor(): string;
|
|
2162
|
+
getBoostBurstCount(): number;
|
|
2163
|
+
getAntiGravSpinTimer(): number;
|
|
2164
|
+
static SourceBursts(source: number): boolean;
|
|
2165
|
+
static HexToColor4(hex: string, result: BABYLON.Color4): BABYLON.Color4;
|
|
2166
|
+
}
|
|
7
2167
|
export declare class CheckpointManager extends ScriptComponent {
|
|
8
2168
|
private checkPointList;
|
|
9
2169
|
private checkPointCount;
|
|
@@ -110,116 +2270,6 @@ export declare class RaceTrackManager extends ScriptComponent {
|
|
|
110
2270
|
static GetLeaderboardPositionList(): PlayerRaceStats[];
|
|
111
2271
|
private static SortLeaderboardPositionList;
|
|
112
2272
|
}
|
|
113
|
-
export declare class RemoteCarController extends ScriptComponent {
|
|
114
|
-
private static ShowSensorLines;
|
|
115
|
-
centerOfMass: number;
|
|
116
|
-
burnoutWheelPitch: number;
|
|
117
|
-
linkTrackManager: boolean;
|
|
118
|
-
playVehicleSounds: boolean;
|
|
119
|
-
smokeTexture: BABYLON.Texture;
|
|
120
|
-
skidThreashold: number;
|
|
121
|
-
smokeIntensity: number;
|
|
122
|
-
wheelDrawVelocity: number;
|
|
123
|
-
smokeOpacity: number;
|
|
124
|
-
smokeDonuts: number;
|
|
125
|
-
private steeringWheelHub;
|
|
126
|
-
private steeringWheelAxis;
|
|
127
|
-
private maxSteeringAngle;
|
|
128
|
-
private maxSteeringSpeed;
|
|
129
|
-
private _animator;
|
|
130
|
-
private _engineAudioSource;
|
|
131
|
-
private _skidAudioSource;
|
|
132
|
-
private brakeLightsMesh;
|
|
133
|
-
private brakeLightsTrans;
|
|
134
|
-
private reverseLightsMesh;
|
|
135
|
-
private reverseLightsTrans;
|
|
136
|
-
private frontLeftWheelTrans;
|
|
137
|
-
private frontRightWheelTrans;
|
|
138
|
-
private backLeftWheelTrans;
|
|
139
|
-
private backRightWheelTrans;
|
|
140
|
-
private frontLeftWheelMesh;
|
|
141
|
-
private frontRightWheelMesh;
|
|
142
|
-
private backLeftWheelMesh;
|
|
143
|
-
private backRightWheelMesh;
|
|
144
|
-
private frontLeftWheelEmitter;
|
|
145
|
-
private frontRightWheelEmitter;
|
|
146
|
-
private backLeftWheelEmitter;
|
|
147
|
-
private backRightWheelEmitter;
|
|
148
|
-
private frontLeftWheelParticle;
|
|
149
|
-
private frontRightWheelParticle;
|
|
150
|
-
private backLeftWheelParticle;
|
|
151
|
-
private backRightWheelParticle;
|
|
152
|
-
private frontLeftContact;
|
|
153
|
-
private frontRightContact;
|
|
154
|
-
private rearLeftContact;
|
|
155
|
-
private rearRightContact;
|
|
156
|
-
private frontLeftContactTag;
|
|
157
|
-
private frontRightContactTag;
|
|
158
|
-
private rearLeftContactTag;
|
|
159
|
-
private rearRightContactTag;
|
|
160
|
-
private frontLeftContactPoint;
|
|
161
|
-
private frontRightContactPoint;
|
|
162
|
-
private rearLeftContactPoint;
|
|
163
|
-
private rearRightContactPoint;
|
|
164
|
-
private frontLeftContactNormal;
|
|
165
|
-
private frontRightContactNormal;
|
|
166
|
-
private rearLeftContactNormal;
|
|
167
|
-
private rearRightContactNormal;
|
|
168
|
-
private startRaycastPosition;
|
|
169
|
-
private endRaycastPosition;
|
|
170
|
-
private smokeIntensityFactor;
|
|
171
|
-
private downDirection;
|
|
172
|
-
private downDistance;
|
|
173
|
-
private lastPitch;
|
|
174
|
-
private lastBrake;
|
|
175
|
-
private lastReverse;
|
|
176
|
-
private lastBurnout;
|
|
177
|
-
private lastSteering;
|
|
178
|
-
private lastSKID_FL;
|
|
179
|
-
private lastSKID_FR;
|
|
180
|
-
private lastSKID_RL;
|
|
181
|
-
private lastSKID_RR;
|
|
182
|
-
private lastSPIN_FL;
|
|
183
|
-
private lastSPIN_FR;
|
|
184
|
-
private lastSPIN_RL;
|
|
185
|
-
private lastSPIN_RR;
|
|
186
|
-
private PITCH_FL;
|
|
187
|
-
private PITCH_FR;
|
|
188
|
-
private PITCH_RL;
|
|
189
|
-
private PITCH_RR;
|
|
190
|
-
private WHEEL_SKID_PITCH;
|
|
191
|
-
getFrontLeftWheelContact(): boolean;
|
|
192
|
-
getFrontRightWheelContact(): boolean;
|
|
193
|
-
getRearLeftWheelContact(): boolean;
|
|
194
|
-
getRearRightWheelContact(): boolean;
|
|
195
|
-
getFrontLeftWheelContactTag(): string;
|
|
196
|
-
getFrontRightWheelContactTag(): string;
|
|
197
|
-
getRearLeftWheelContactTag(): string;
|
|
198
|
-
getRearRightWheelContactTag(): string;
|
|
199
|
-
getFrontLeftWheelContactPoint(): BABYLON.Vector3;
|
|
200
|
-
getFrontRightWheelContactPoint(): BABYLON.Vector3;
|
|
201
|
-
getRearLeftWheelContactPoint(): BABYLON.Vector3;
|
|
202
|
-
getRearRightWheelContactPoint(): BABYLON.Vector3;
|
|
203
|
-
getFrontLeftWheelContactNormal(): BABYLON.Vector3;
|
|
204
|
-
getFrontRightWheelContactNormal(): BABYLON.Vector3;
|
|
205
|
-
getRearLeftWheelContactNormal(): BABYLON.Vector3;
|
|
206
|
-
getRearRightWheelContactNormal(): BABYLON.Vector3;
|
|
207
|
-
protected m_frontLeftWheelSkid: number;
|
|
208
|
-
protected m_frontRightWheelSkid: number;
|
|
209
|
-
protected m_backLeftWheelSkid: number;
|
|
210
|
-
protected m_backRightWheelSkid: number;
|
|
211
|
-
protected m_velocityOffset: BABYLON.Vector3;
|
|
212
|
-
protected m_linearVelocity: BABYLON.Vector3;
|
|
213
|
-
protected m_lastPosition: BABYLON.Vector3;
|
|
214
|
-
protected m_positionCenter: BABYLON.Vector3;
|
|
215
|
-
protected m_scaledVelocity: number;
|
|
216
|
-
protected awake(): void;
|
|
217
|
-
protected start(): void;
|
|
218
|
-
protected update(): void;
|
|
219
|
-
protected destroy(): void;
|
|
220
|
-
protected updateVehicleProperties(): void;
|
|
221
|
-
private createSmokeParticleSystem;
|
|
222
|
-
}
|
|
223
2273
|
export declare class SideCameraController extends ScriptComponent {
|
|
224
2274
|
private _camera;
|
|
225
2275
|
private _adt;
|
|
@@ -389,10 +2439,6 @@ export declare class StandardCarController extends ScriptComponent {
|
|
|
389
2439
|
private BACK_RIGHT;
|
|
390
2440
|
private WHEEL_SKID_PITCH;
|
|
391
2441
|
private POWER_BOOST_PITCH;
|
|
392
|
-
private SPIN_FL_Rotation;
|
|
393
|
-
private SPIN_FR_Rotation;
|
|
394
|
-
private SPIN_RL_Rotation;
|
|
395
|
-
private SPIN_RR_Rotation;
|
|
396
2442
|
isBraking(): boolean;
|
|
397
2443
|
isBoosting(): boolean;
|
|
398
2444
|
private allowRollingReverseBurnout;
|
|
@@ -563,7 +2609,6 @@ export declare class StandardCarController extends ScriptComponent {
|
|
|
563
2609
|
powerBooster: boolean;
|
|
564
2610
|
linkTrackManager: boolean;
|
|
565
2611
|
playVehicleSounds: boolean;
|
|
566
|
-
postNetworkAttributes: boolean;
|
|
567
2612
|
wheelDriveType: number;
|
|
568
2613
|
gearBoxMultiplier: number;
|
|
569
2614
|
currentPitchScale: number;
|
|
@@ -1026,23 +3071,6 @@ export declare class VehicleInputController extends ScriptComponent {
|
|
|
1026
3071
|
protected generateRandonNumber(min: number, max: number, decimals?: number): number;
|
|
1027
3072
|
protected destroyVehicleController(): void;
|
|
1028
3073
|
}
|
|
1029
|
-
export declare class VehicleNetworkLabel extends ScriptComponent {
|
|
1030
|
-
label: BABYLON.GUI.TextBlock;
|
|
1031
|
-
rect: BABYLON.GUI.Rectangle;
|
|
1032
|
-
autoCreate: boolean;
|
|
1033
|
-
offsetX: number;
|
|
1034
|
-
offsetY: number;
|
|
1035
|
-
labelColor: BABYLON.Color3;
|
|
1036
|
-
borderColor: BABYLON.Color3;
|
|
1037
|
-
backgroundColor: BABYLON.Color3;
|
|
1038
|
-
labelCreated: boolean;
|
|
1039
|
-
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1040
|
-
protected update(): void;
|
|
1041
|
-
createLabel(name: string): void;
|
|
1042
|
-
protected destroy(): void;
|
|
1043
|
-
private static AdvDynamicTexture;
|
|
1044
|
-
static GetFullscreenUI(scene: BABYLON.Scene, sampling?: number): BABYLON.GUI.AdvancedDynamicTexture;
|
|
1045
|
-
}
|
|
1046
3074
|
export declare class DoubleSided extends CustomShaderMaterial {
|
|
1047
3075
|
constructor(name: string, scene: BABYLON.Scene);
|
|
1048
3076
|
awake(): void;
|
|
@@ -1066,6 +3094,102 @@ export declare class VertexSplatPlugin extends CustomShaderMaterialPlugin {
|
|
|
1066
3094
|
prepareDefines(defines: BABYLON.MaterialDefines, scene: BABYLON.Scene, mesh: BABYLON.AbstractMesh): void;
|
|
1067
3095
|
bindForSubMesh(uniformBuffer: BABYLON.UniformBuffer, scene: BABYLON.Scene, engine: BABYLON.AbstractEngine, subMesh: BABYLON.SubMesh): void;
|
|
1068
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
|
+
}
|
|
1069
3193
|
export declare class DebugInformation extends ScriptComponent {
|
|
1070
3194
|
static GetVersion(): string;
|
|
1071
3195
|
private keys;
|
|
@@ -1182,6 +3306,641 @@ export declare class MobileShadowMaterial extends ScriptComponent {
|
|
|
1182
3306
|
protected awake(): void;
|
|
1183
3307
|
protected destroy(): void;
|
|
1184
3308
|
}
|
|
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
|
+
}
|
|
1185
3944
|
export declare class SnapshotManager extends ScriptComponent {
|
|
1186
3945
|
static IsSnapshotRenderingEnabled(): boolean;
|
|
1187
3946
|
static EnableSnapshotRendering(): void;
|
|
@@ -1260,6 +4019,21 @@ export declare class SoundManager extends ScriptComponent {
|
|
|
1260
4019
|
setGroupVolume(volume: number, time?: number): void;
|
|
1261
4020
|
getAudioSource(name: string): AudioSource;
|
|
1262
4021
|
}
|
|
4022
|
+
export declare class WindowsPlatform {
|
|
4023
|
+
static IsXboxLiveUserSignedIn(systemUser?: Windows.System.User, player?: PlayerNumber): boolean;
|
|
4024
|
+
static XboxLiveUserSignIn(player?: PlayerNumber, oncomplete?: (result: Microsoft.Xbox.Services.System.SignInResult) => void, onerror?: (error: any) => void, onprogress?: (progress: any) => void): void;
|
|
4025
|
+
static XboxLiveUserSilentSignIn(player?: PlayerNumber, oncomplete?: (result: Microsoft.Xbox.Services.System.SignInResult) => void, onerror?: (error: any) => void, onprogress?: (progress: any) => void): Windows.Foundation.Projections.Promise<void>;
|
|
4026
|
+
static XboxLiveUserDialogSignIn(player?: PlayerNumber, oncomplete?: (result: Microsoft.Xbox.Services.System.SignInResult) => void, onerror?: (error: any) => void, onprogress?: (progress: any) => void): Windows.Foundation.Projections.Promise<void>;
|
|
4027
|
+
static LoadXboxLiveUserProfile(player?: PlayerNumber, oncomplete?: (result: Microsoft.Xbox.Services.Social.XboxUserProfile) => void, onerror?: (error: any) => void, onprogress?: (progress: any) => void): Windows.Foundation.Projections.Promise<void>;
|
|
4028
|
+
static GetXboxLiveUser(player?: PlayerNumber): Microsoft.Xbox.Services.System.XboxLiveUser;
|
|
4029
|
+
static GetXboxLiveSystemUser(systemUser: Windows.System.User, player?: PlayerNumber): Microsoft.Xbox.Services.System.XboxLiveUser;
|
|
4030
|
+
static GetXboxLiveUserContext(player?: PlayerNumber): Microsoft.Xbox.Services.XboxLiveContext;
|
|
4031
|
+
static ResetXboxLiveUserContext(player?: PlayerNumber): void;
|
|
4032
|
+
static GetXboxLiveContextProperty(name: any): any;
|
|
4033
|
+
static SetXboxLiveContextProperty(name: any, property: any): void;
|
|
4034
|
+
static ResetXboxLivePropertyContexts(): void;
|
|
4035
|
+
static SetXboxLiveSignOutHandler(handler?: (result: Microsoft.Xbox.Services.System.SignOutCompletedEventArgs) => void): void;
|
|
4036
|
+
}
|
|
1263
4037
|
declare global {
|
|
1264
4038
|
interface Window {
|
|
1265
4039
|
PROJECT: Record<string, unknown>;
|