@babylonjs-toolkit/next 9.10.1
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/README.md +312 -0
- package/lib/blendtreeposition.d.ts +5 -0
- package/lib/blendtreeposition.d.ts.map +1 -0
- package/lib/blendtreeposition.js +5 -0
- package/lib/channelmixerplugin.d.ts +11 -0
- package/lib/channelmixerplugin.d.ts.map +1 -0
- package/lib/channelmixerplugin.js +34 -0
- package/lib/collisioncontact.d.ts +7 -0
- package/lib/collisioncontact.d.ts.map +1 -0
- package/lib/collisioncontact.js +7 -0
- package/lib/collisionfilters.d.ts +10 -0
- package/lib/collisionfilters.d.ts.map +1 -0
- package/lib/collisionfilters.js +10 -0
- package/lib/collisionflags.d.ts +14 -0
- package/lib/collisionflags.d.ts.map +1 -0
- package/lib/collisionflags.js +14 -0
- package/lib/collisionstate.d.ts +8 -0
- package/lib/collisionstate.d.ts.map +1 -0
- package/lib/collisionstate.js +8 -0
- package/lib/customloadingscreen.d.ts +16 -0
- package/lib/customloadingscreen.d.ts.map +1 -0
- package/lib/customloadingscreen.js +48 -0
- package/lib/entitycontroller.d.ts +11 -0
- package/lib/entitycontroller.d.ts.map +1 -0
- package/lib/entitycontroller.js +41 -0
- package/lib/fontmanifestentry.d.ts +8 -0
- package/lib/fontmanifestentry.d.ts.map +1 -0
- package/lib/fontmanifestentry.js +1 -0
- package/lib/handedness.d.ts +6 -0
- package/lib/handedness.d.ts.map +1 -0
- package/lib/handedness.js +6 -0
- package/lib/ianimationcurve.d.ts +14 -0
- package/lib/ianimationcurve.d.ts.map +1 -0
- package/lib/ianimationcurve.js +1 -0
- package/lib/index.d.ts +94 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +90 -0
- package/lib/intersectionprecision.d.ts +5 -0
- package/lib/intersectionprecision.d.ts.map +1 -0
- package/lib/intersectionprecision.js +5 -0
- package/lib/iparticlesystemtransform.d.ts +9 -0
- package/lib/iparticlesystemtransform.d.ts.map +1 -0
- package/lib/iparticlesystemtransform.js +1 -0
- package/lib/irecastnavigationplugin.d.ts +92 -0
- package/lib/irecastnavigationplugin.d.ts.map +1 -0
- package/lib/irecastnavigationplugin.js +1 -0
- package/lib/linesmeshrenderer.d.ts +22 -0
- package/lib/linesmeshrenderer.d.ts.map +1 -0
- package/lib/linesmeshrenderer.js +79 -0
- package/lib/localmessagebus.d.ts +9 -0
- package/lib/localmessagebus.d.ts.map +1 -0
- package/lib/localmessagebus.js +44 -0
- package/lib/lutblendplugin.d.ts +13 -0
- package/lib/lutblendplugin.d.ts.map +1 -0
- package/lib/lutblendplugin.js +153 -0
- package/lib/mousebuttonmode.d.ts +6 -0
- package/lib/mousebuttonmode.d.ts.map +1 -0
- package/lib/mousebuttonmode.js +6 -0
- package/lib/movementtype.d.ts +5 -0
- package/lib/movementtype.d.ts.map +1 -0
- package/lib/movementtype.js +5 -0
- package/lib/noisefunction2d.d.ts +2 -0
- package/lib/noisefunction2d.d.ts.map +1 -0
- package/lib/noisefunction2d.js +1 -0
- package/lib/noisefunction3d.d.ts +2 -0
- package/lib/noisefunction3d.d.ts.map +1 -0
- package/lib/noisefunction3d.js +1 -0
- package/lib/noisefunction4d.d.ts +2 -0
- package/lib/noisefunction4d.d.ts.map +1 -0
- package/lib/noisefunction4d.js +1 -0
- package/lib/perlin2d.d.ts +9 -0
- package/lib/perlin2d.d.ts.map +1 -0
- package/lib/perlin2d.js +45 -0
- package/lib/playercontrol.d.ts +5 -0
- package/lib/playercontrol.d.ts.map +1 -0
- package/lib/playercontrol.js +5 -0
- package/lib/prefabobjectpool.d.ts +20 -0
- package/lib/prefabobjectpool.d.ts.map +1 -0
- package/lib/prefabobjectpool.js +96 -0
- package/lib/project.d.ts +2283 -0
- package/lib/project.d.ts.map +1 -0
- package/lib/project.js +10497 -0
- package/lib/randomfn.d.ts +2 -0
- package/lib/randomfn.d.ts.map +1 -0
- package/lib/randomfn.js +1 -0
- package/lib/raycasthitresult.d.ts +21 -0
- package/lib/raycasthitresult.d.ts.map +1 -0
- package/lib/raycasthitresult.js +36 -0
- package/lib/recastclassctor.d.ts +2 -0
- package/lib/recastclassctor.d.ts.map +1 -0
- package/lib/recastclassctor.js +1 -0
- package/lib/roomerrormessage.d.ts +5 -0
- package/lib/roomerrormessage.d.ts.map +1 -0
- package/lib/roomerrormessage.js +2 -0
- package/lib/scenemanager.d.ts +4212 -0
- package/lib/scenemanager.d.ts.map +1 -0
- package/lib/scenemanager.js +41292 -0
- package/lib/simplexnoise.d.ts +21 -0
- package/lib/simplexnoise.d.ts.map +1 -0
- package/lib/simplexnoise.js +362 -0
- package/lib/touchjoystickhandler.d.ts +39 -0
- package/lib/touchjoystickhandler.d.ts.map +1 -0
- package/lib/touchjoystickhandler.js +175 -0
- package/lib/touchmousebutton.d.ts +6 -0
- package/lib/touchmousebutton.d.ts.map +1 -0
- package/lib/touchmousebutton.js +6 -0
- package/lib/triggervolume.d.ts +6 -0
- package/lib/triggervolume.d.ts.map +1 -0
- package/lib/triggervolume.js +6 -0
- package/lib/unitydropdownmenu.d.ts +20 -0
- package/lib/unitydropdownmenu.d.ts.map +1 -0
- package/lib/unitydropdownmenu.js +144 -0
- package/lib/unityscrollbar.d.ts +11 -0
- package/lib/unityscrollbar.d.ts.map +1 -0
- package/lib/unityscrollbar.js +38 -0
- package/lib/unityslider.d.ts +4 -0
- package/lib/unityslider.d.ts.map +1 -0
- package/lib/unityslider.js +3 -0
- package/lib/universalcharactercontroller.d.ts +3 -0
- package/lib/universalcharactercontroller.d.ts.map +1 -0
- package/lib/universalcharactercontroller.js +1 -0
- package/lib/userinputpointer.d.ts +6 -0
- package/lib/userinputpointer.d.ts.map +1 -0
- package/lib/userinputpointer.js +6 -0
- package/lib/windowsplatform.d.ts +17 -0
- package/lib/windowsplatform.d.ts.map +1 -0
- package/lib/windowsplatform.js +133 -0
- package/lib/xbox360trigger.d.ts +5 -0
- package/lib/xbox360trigger.d.ts.map +1 -0
- package/lib/xbox360trigger.js +5 -0
- package/package.json +217 -0
package/lib/project.d.ts
ADDED
|
@@ -0,0 +1,2283 @@
|
|
|
1
|
+
import type * as BABYLON from "@babylonjs/core/Legacy/legacy";
|
|
2
|
+
declare const BABYLON: any;
|
|
3
|
+
import { ScriptComponent, IUnityVector3, IUnityVector4, IUnityColor, AnimationState, AudioSource, RigidbodyPhysics, RaycastVehicle, btWheelInfo, PlayerNumber, CustomShaderMaterial, CustomShaderMaterialPlugin, PreloadAssetsManager, IAssetPreloader, CharacterController } from './scenemanager';
|
|
4
|
+
import { LocalMessageBus } from './localmessagebus';
|
|
5
|
+
import { NoiseFunction2D } from './noisefunction2d';
|
|
6
|
+
import { TouchJoystickHandler } from './touchjoystickhandler';
|
|
7
|
+
export declare class CheckpointManager extends ScriptComponent {
|
|
8
|
+
private checkPointList;
|
|
9
|
+
private checkPointCount;
|
|
10
|
+
private checkPointIndex;
|
|
11
|
+
private nextCheckPoint;
|
|
12
|
+
private startRaceTime;
|
|
13
|
+
private totalRaceTime;
|
|
14
|
+
private lapNumber;
|
|
15
|
+
private lapTimer;
|
|
16
|
+
private lapTimes;
|
|
17
|
+
private playerID;
|
|
18
|
+
private playerName;
|
|
19
|
+
private raceOver;
|
|
20
|
+
register(id: number, name: string): void;
|
|
21
|
+
getLapTimes(): number[];
|
|
22
|
+
getLapNumber(): number;
|
|
23
|
+
getCheckPoint(): number;
|
|
24
|
+
getPlayerName(): string;
|
|
25
|
+
getPlayerID(): number;
|
|
26
|
+
getRaceTime(): number;
|
|
27
|
+
getRaceOver(): boolean;
|
|
28
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
29
|
+
protected start(): void;
|
|
30
|
+
private nextCheckPointName;
|
|
31
|
+
protected update(): void;
|
|
32
|
+
protected late(): void;
|
|
33
|
+
startRaceTimer(): void;
|
|
34
|
+
}
|
|
35
|
+
export interface ITrackNode {
|
|
36
|
+
radius: number;
|
|
37
|
+
position: IUnityVector3;
|
|
38
|
+
rotation: IUnityVector4;
|
|
39
|
+
localPosition: BABYLON.Vector3;
|
|
40
|
+
localRotation: BABYLON.Quaternion;
|
|
41
|
+
localDistance: number;
|
|
42
|
+
}
|
|
43
|
+
export interface IControlPoint {
|
|
44
|
+
speed: number;
|
|
45
|
+
tvalue: number;
|
|
46
|
+
position: IUnityVector3;
|
|
47
|
+
}
|
|
48
|
+
export declare class RoutePoint {
|
|
49
|
+
position: BABYLON.Vector3;
|
|
50
|
+
direction: BABYLON.Vector3;
|
|
51
|
+
}
|
|
52
|
+
export declare class PlayerRaceStats {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
position: number;
|
|
56
|
+
}
|
|
57
|
+
export declare class RaceTrackManager extends ScriptComponent {
|
|
58
|
+
static TrackLength: number;
|
|
59
|
+
static TotalLapCount: number;
|
|
60
|
+
static WinnerTransform: BABYLON.TransformNode;
|
|
61
|
+
private static CheckPointTag;
|
|
62
|
+
private static CheckPointList;
|
|
63
|
+
private static LeaderBoardList;
|
|
64
|
+
private static PlayerVehicleList;
|
|
65
|
+
private trackNodes;
|
|
66
|
+
private raceLineData_1;
|
|
67
|
+
private raceLineData_2;
|
|
68
|
+
private raceLineData_3;
|
|
69
|
+
private raceLineData_4;
|
|
70
|
+
private raceLineData_5;
|
|
71
|
+
private raceLineColor_1;
|
|
72
|
+
private raceLineColor_2;
|
|
73
|
+
private raceLineColor_3;
|
|
74
|
+
private raceLineColor_4;
|
|
75
|
+
private raceLineColor_5;
|
|
76
|
+
private debugMeshLines_1;
|
|
77
|
+
private debugMeshLines_2;
|
|
78
|
+
private debugMeshLines_3;
|
|
79
|
+
private debugMeshLines_4;
|
|
80
|
+
private debugMeshLines_5;
|
|
81
|
+
private p0n;
|
|
82
|
+
private p1n;
|
|
83
|
+
private p2n;
|
|
84
|
+
private p3n;
|
|
85
|
+
private i;
|
|
86
|
+
private static _EventBus;
|
|
87
|
+
static get EventBus(): LocalMessageBus;
|
|
88
|
+
drawDebugLines: boolean;
|
|
89
|
+
getTrackNodes(): ITrackNode[];
|
|
90
|
+
getControlPoints(line: number): IControlPoint[];
|
|
91
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
92
|
+
protected awake(): void;
|
|
93
|
+
protected start(): void;
|
|
94
|
+
protected after(): void;
|
|
95
|
+
protected destroy(): void;
|
|
96
|
+
getRoutePoint(distance: number): RoutePoint;
|
|
97
|
+
getRoutePointToRef(distance: number, result: RoutePoint): void;
|
|
98
|
+
getRoutePosition(distance: number): BABYLON.Vector3;
|
|
99
|
+
getRoutePositionToRef(distance: number, result: BABYLON.Vector3): void;
|
|
100
|
+
static GetCheckpointTag(): string;
|
|
101
|
+
static GetCheckpointList(): BABYLON.AbstractMesh[];
|
|
102
|
+
static GetCheckpointCount(): number;
|
|
103
|
+
private static GetCheckpointDistance;
|
|
104
|
+
static RegisterVehicle(vehicle: BABYLON.TransformNode): void;
|
|
105
|
+
static GetPlayerVehicles(): BABYLON.TransformNode[];
|
|
106
|
+
static RegisterPlayer(id: number, name: string): void;
|
|
107
|
+
static UpdateLeaderboard(id: number, lap: number, checkpoint: number, position: BABYLON.Vector3): void;
|
|
108
|
+
static GetLeaderboardPosition(id: number): number;
|
|
109
|
+
static GetLeaderboardPositionList(): PlayerRaceStats[];
|
|
110
|
+
private static SortLeaderboardPositionList;
|
|
111
|
+
}
|
|
112
|
+
export declare class RemoteCarController extends ScriptComponent {
|
|
113
|
+
private static ShowSensorLines;
|
|
114
|
+
centerOfMass: number;
|
|
115
|
+
burnoutWheelPitch: number;
|
|
116
|
+
linkTrackManager: boolean;
|
|
117
|
+
playVehicleSounds: boolean;
|
|
118
|
+
smokeTexture: BABYLON.Texture;
|
|
119
|
+
skidThreashold: number;
|
|
120
|
+
smokeIntensity: number;
|
|
121
|
+
wheelDrawVelocity: number;
|
|
122
|
+
smokeOpacity: number;
|
|
123
|
+
smokeDonuts: number;
|
|
124
|
+
private steeringWheelHub;
|
|
125
|
+
private steeringWheelAxis;
|
|
126
|
+
private maxSteeringAngle;
|
|
127
|
+
private maxSteeringSpeed;
|
|
128
|
+
private _animator;
|
|
129
|
+
private _engineAudioSource;
|
|
130
|
+
private _skidAudioSource;
|
|
131
|
+
private brakeLightsMesh;
|
|
132
|
+
private brakeLightsTrans;
|
|
133
|
+
private reverseLightsMesh;
|
|
134
|
+
private reverseLightsTrans;
|
|
135
|
+
private frontLeftWheelTrans;
|
|
136
|
+
private frontRightWheelTrans;
|
|
137
|
+
private backLeftWheelTrans;
|
|
138
|
+
private backRightWheelTrans;
|
|
139
|
+
private frontLeftWheelMesh;
|
|
140
|
+
private frontRightWheelMesh;
|
|
141
|
+
private backLeftWheelMesh;
|
|
142
|
+
private backRightWheelMesh;
|
|
143
|
+
private frontLeftWheelEmitter;
|
|
144
|
+
private frontRightWheelEmitter;
|
|
145
|
+
private backLeftWheelEmitter;
|
|
146
|
+
private backRightWheelEmitter;
|
|
147
|
+
private frontLeftWheelParticle;
|
|
148
|
+
private frontRightWheelParticle;
|
|
149
|
+
private backLeftWheelParticle;
|
|
150
|
+
private backRightWheelParticle;
|
|
151
|
+
private frontLeftContact;
|
|
152
|
+
private frontRightContact;
|
|
153
|
+
private rearLeftContact;
|
|
154
|
+
private rearRightContact;
|
|
155
|
+
private frontLeftContactTag;
|
|
156
|
+
private frontRightContactTag;
|
|
157
|
+
private rearLeftContactTag;
|
|
158
|
+
private rearRightContactTag;
|
|
159
|
+
private frontLeftContactPoint;
|
|
160
|
+
private frontRightContactPoint;
|
|
161
|
+
private rearLeftContactPoint;
|
|
162
|
+
private rearRightContactPoint;
|
|
163
|
+
private frontLeftContactNormal;
|
|
164
|
+
private frontRightContactNormal;
|
|
165
|
+
private rearLeftContactNormal;
|
|
166
|
+
private rearRightContactNormal;
|
|
167
|
+
private startRaycastPosition;
|
|
168
|
+
private endRaycastPosition;
|
|
169
|
+
private smokeIntensityFactor;
|
|
170
|
+
private downDirection;
|
|
171
|
+
private downDistance;
|
|
172
|
+
private lastPitch;
|
|
173
|
+
private lastBrake;
|
|
174
|
+
private lastReverse;
|
|
175
|
+
private lastBurnout;
|
|
176
|
+
private lastSteering;
|
|
177
|
+
private lastSKID_FL;
|
|
178
|
+
private lastSKID_FR;
|
|
179
|
+
private lastSKID_RL;
|
|
180
|
+
private lastSKID_RR;
|
|
181
|
+
private lastSPIN_FL;
|
|
182
|
+
private lastSPIN_FR;
|
|
183
|
+
private lastSPIN_RL;
|
|
184
|
+
private lastSPIN_RR;
|
|
185
|
+
private PITCH_FL;
|
|
186
|
+
private PITCH_FR;
|
|
187
|
+
private PITCH_RL;
|
|
188
|
+
private PITCH_RR;
|
|
189
|
+
private WHEEL_SKID_PITCH;
|
|
190
|
+
getFrontLeftWheelContact(): boolean;
|
|
191
|
+
getFrontRightWheelContact(): boolean;
|
|
192
|
+
getRearLeftWheelContact(): boolean;
|
|
193
|
+
getRearRightWheelContact(): boolean;
|
|
194
|
+
getFrontLeftWheelContactTag(): string;
|
|
195
|
+
getFrontRightWheelContactTag(): string;
|
|
196
|
+
getRearLeftWheelContactTag(): string;
|
|
197
|
+
getRearRightWheelContactTag(): string;
|
|
198
|
+
getFrontLeftWheelContactPoint(): BABYLON.Vector3;
|
|
199
|
+
getFrontRightWheelContactPoint(): BABYLON.Vector3;
|
|
200
|
+
getRearLeftWheelContactPoint(): BABYLON.Vector3;
|
|
201
|
+
getRearRightWheelContactPoint(): BABYLON.Vector3;
|
|
202
|
+
getFrontLeftWheelContactNormal(): BABYLON.Vector3;
|
|
203
|
+
getFrontRightWheelContactNormal(): BABYLON.Vector3;
|
|
204
|
+
getRearLeftWheelContactNormal(): BABYLON.Vector3;
|
|
205
|
+
getRearRightWheelContactNormal(): BABYLON.Vector3;
|
|
206
|
+
protected m_frontLeftWheelSkid: number;
|
|
207
|
+
protected m_frontRightWheelSkid: number;
|
|
208
|
+
protected m_backLeftWheelSkid: number;
|
|
209
|
+
protected m_backRightWheelSkid: number;
|
|
210
|
+
protected m_velocityOffset: BABYLON.Vector3;
|
|
211
|
+
protected m_linearVelocity: BABYLON.Vector3;
|
|
212
|
+
protected m_lastPosition: BABYLON.Vector3;
|
|
213
|
+
protected m_positionCenter: BABYLON.Vector3;
|
|
214
|
+
protected m_scaledVelocity: number;
|
|
215
|
+
protected awake(): void;
|
|
216
|
+
protected start(): void;
|
|
217
|
+
protected update(): void;
|
|
218
|
+
protected destroy(): void;
|
|
219
|
+
protected updateVehicleProperties(): void;
|
|
220
|
+
private createSmokeParticleSystem;
|
|
221
|
+
}
|
|
222
|
+
export declare class SideCameraController extends ScriptComponent {
|
|
223
|
+
private _camera;
|
|
224
|
+
private _adt;
|
|
225
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
226
|
+
protected awake(): void;
|
|
227
|
+
protected start(): void;
|
|
228
|
+
protected ready(): void;
|
|
229
|
+
protected update(): void;
|
|
230
|
+
protected late(): void;
|
|
231
|
+
protected step(): void;
|
|
232
|
+
protected fixed(): void;
|
|
233
|
+
protected after(): void;
|
|
234
|
+
protected reset(): void;
|
|
235
|
+
protected destroy(): void;
|
|
236
|
+
private enableWindowView;
|
|
237
|
+
}
|
|
238
|
+
export declare class SkidMarkSection {
|
|
239
|
+
Pos: BABYLON.Vector3;
|
|
240
|
+
Normal: BABYLON.Vector3;
|
|
241
|
+
Tangent: BABYLON.Vector4;
|
|
242
|
+
Posl: BABYLON.Vector3;
|
|
243
|
+
Posr: BABYLON.Vector3;
|
|
244
|
+
Intensity: number;
|
|
245
|
+
LastIndex: number;
|
|
246
|
+
}
|
|
247
|
+
export declare class SkidMarkManager extends ScriptComponent {
|
|
248
|
+
private static MAX_MARKS;
|
|
249
|
+
private static GROUND_OFFSET;
|
|
250
|
+
private static GPU_TRIANGLES;
|
|
251
|
+
private static MARK_COLOR;
|
|
252
|
+
private static MARK_WIDTH;
|
|
253
|
+
private static TEX_INTENSITY;
|
|
254
|
+
private static MIN_DISTANCE;
|
|
255
|
+
private static MIN_SQR_DISTANCE;
|
|
256
|
+
private static TEXTURE_MARKS;
|
|
257
|
+
private static SkidBufferPositions;
|
|
258
|
+
private static SkidBufferNormals;
|
|
259
|
+
private static SkidBufferTangents;
|
|
260
|
+
private static SkidBufferColors;
|
|
261
|
+
private static SkidBufferUvs;
|
|
262
|
+
private static SkidBufferIndices;
|
|
263
|
+
private static SkidMarkSections;
|
|
264
|
+
private static SkidMarkIndex;
|
|
265
|
+
private static SkidMarkMesh;
|
|
266
|
+
private static SkidMarkUpdated;
|
|
267
|
+
private static TempVector3_POS;
|
|
268
|
+
private static TempVector3_DIR;
|
|
269
|
+
private static TempVector3_XDIR;
|
|
270
|
+
private static TempVector3_SDIR;
|
|
271
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
272
|
+
protected start(): void;
|
|
273
|
+
protected update(): void;
|
|
274
|
+
static AddSkidMarkSegment(pos: BABYLON.Vector3, normal: BABYLON.Vector3, intensity: number, lastIndex: number): BABYLON.Nullable<number>;
|
|
275
|
+
private static CreateSkidMarkManager;
|
|
276
|
+
private static AddSkidMarkVertexData;
|
|
277
|
+
private static UpdateSkidMarkManager;
|
|
278
|
+
}
|
|
279
|
+
export declare class StandardCarController extends ScriptComponent {
|
|
280
|
+
static DEFAULT_SKID_FACTOR: number;
|
|
281
|
+
static DEFAULT_PITCH_FACTOR: number;
|
|
282
|
+
static DEFAULT_SPEED_FACTOR: number;
|
|
283
|
+
static DEFAULT_DONUT_FACTOR: number;
|
|
284
|
+
static DEFAULT_BRAKE_DEADZONE: number;
|
|
285
|
+
static SimplexNoise2D: NoiseFunction2D;
|
|
286
|
+
MIN_RPM: number;
|
|
287
|
+
MAX_RPM: number;
|
|
288
|
+
private _animator;
|
|
289
|
+
private _rigidbody;
|
|
290
|
+
private _engineAudioSource;
|
|
291
|
+
private _skidAudioSource;
|
|
292
|
+
private _nosAudioSource;
|
|
293
|
+
private _positionLocked;
|
|
294
|
+
private _prevHandBrakeRequested;
|
|
295
|
+
private _donutEngineScale;
|
|
296
|
+
private _donutEntryBlend;
|
|
297
|
+
private _donutEntrySpeedMps;
|
|
298
|
+
private steeringWheelHub;
|
|
299
|
+
private steeringWheelAxis;
|
|
300
|
+
private maxSteeringAngle;
|
|
301
|
+
private maxSteeringSpeed;
|
|
302
|
+
private gearIndex;
|
|
303
|
+
private shiftingTime;
|
|
304
|
+
private shiftingSide;
|
|
305
|
+
private shiftingBrake;
|
|
306
|
+
private engineForce;
|
|
307
|
+
private footBraking;
|
|
308
|
+
private handBraking;
|
|
309
|
+
private linearDamping;
|
|
310
|
+
private angularDamping;
|
|
311
|
+
private forwardSpeed;
|
|
312
|
+
private absoluteSpeed;
|
|
313
|
+
private americanSpeed;
|
|
314
|
+
private gradientSpeed;
|
|
315
|
+
private smoothedGradientSpeed;
|
|
316
|
+
private smoothedSteeringSpeed;
|
|
317
|
+
private frontWheelPower;
|
|
318
|
+
private backWheelPower;
|
|
319
|
+
private wheelBrakingForce;
|
|
320
|
+
private enginePitchLevel;
|
|
321
|
+
private smokeIntensityFactor;
|
|
322
|
+
private handBrakingHoldTimer;
|
|
323
|
+
private raycastVehicle;
|
|
324
|
+
private brakeLightsMesh;
|
|
325
|
+
private brakeLightsTrans;
|
|
326
|
+
private reverseLightsMesh;
|
|
327
|
+
private reverseLightsTrans;
|
|
328
|
+
private frontLeftWheelTrans;
|
|
329
|
+
private frontRightWheelTrans;
|
|
330
|
+
private backLeftWheelTrans;
|
|
331
|
+
private backRightWheelTrans;
|
|
332
|
+
private frontLeftWheelMesh;
|
|
333
|
+
private frontRightWheelMesh;
|
|
334
|
+
private backLeftWheelMesh;
|
|
335
|
+
private backRightWheelMesh;
|
|
336
|
+
private frontLeftWheelEmitter;
|
|
337
|
+
private frontRightWheelEmitter;
|
|
338
|
+
private backLeftWheelEmitter;
|
|
339
|
+
private backRightWheelEmitter;
|
|
340
|
+
private frontLeftWheelParticle;
|
|
341
|
+
private frontRightWheelParticle;
|
|
342
|
+
private backLeftWheelParticle;
|
|
343
|
+
private backRightWheelParticle;
|
|
344
|
+
private frontLeftWheelCollider;
|
|
345
|
+
private frontRightWheelCollider;
|
|
346
|
+
private backLeftWheelCollider;
|
|
347
|
+
private backRightWheelCollider;
|
|
348
|
+
private engineTorqueCurve;
|
|
349
|
+
private physicsSteerAngleL;
|
|
350
|
+
private physicsSteerAngleR;
|
|
351
|
+
private visualSteerAngleL;
|
|
352
|
+
private visualSteerAngleR;
|
|
353
|
+
private visualSteerBoostL;
|
|
354
|
+
private visualSteerBoostR;
|
|
355
|
+
private idleNoiseDelta;
|
|
356
|
+
private driveNoiseDelta;
|
|
357
|
+
private boostSpeedTimer;
|
|
358
|
+
private burnoutMeter;
|
|
359
|
+
private donutMeter;
|
|
360
|
+
private wheelRadius;
|
|
361
|
+
private engineRPM;
|
|
362
|
+
private pitchRPM;
|
|
363
|
+
private shiftRPM;
|
|
364
|
+
private wheelRPM;
|
|
365
|
+
private transmissionInputRPM;
|
|
366
|
+
private actualEngineRPM;
|
|
367
|
+
private targetEngineRPM;
|
|
368
|
+
private throttleRPM;
|
|
369
|
+
private engineLoad;
|
|
370
|
+
private gearShiftCooldown;
|
|
371
|
+
private isShifting;
|
|
372
|
+
private shiftDirection;
|
|
373
|
+
private clutchEngagement;
|
|
374
|
+
private engineBraking;
|
|
375
|
+
private shiftHysteresis;
|
|
376
|
+
private SKID_FL;
|
|
377
|
+
private SKID_FR;
|
|
378
|
+
private SKID_RL;
|
|
379
|
+
private SKID_RR;
|
|
380
|
+
private PITCH_FL;
|
|
381
|
+
private PITCH_FR;
|
|
382
|
+
private PITCH_RL;
|
|
383
|
+
private PITCH_RR;
|
|
384
|
+
private FRONT_LEFT;
|
|
385
|
+
private FRONT_RIGHT;
|
|
386
|
+
private BACK_LEFT;
|
|
387
|
+
private BACK_RIGHT;
|
|
388
|
+
private WHEEL_SKID_PITCH;
|
|
389
|
+
private POWER_BOOST_PITCH;
|
|
390
|
+
private SPIN_FL_Rotation;
|
|
391
|
+
private SPIN_FR_Rotation;
|
|
392
|
+
private SPIN_RL_Rotation;
|
|
393
|
+
private SPIN_RR_Rotation;
|
|
394
|
+
isBraking(): boolean;
|
|
395
|
+
isBoosting(): boolean;
|
|
396
|
+
private allowRollingReverseBurnout;
|
|
397
|
+
getFootBraking(): boolean;
|
|
398
|
+
getHandBraking(): boolean;
|
|
399
|
+
getLinearVelocity(): BABYLON.Vector3;
|
|
400
|
+
getCurrentForward(): number;
|
|
401
|
+
getCurrentTurning(): number;
|
|
402
|
+
getCurrentSkidding(): boolean;
|
|
403
|
+
getBurnoutButton(): boolean;
|
|
404
|
+
getDonutButton(): boolean;
|
|
405
|
+
getReverseThrottle(): boolean;
|
|
406
|
+
getEnginePitchLevel(): number;
|
|
407
|
+
getCurrentBurnout(): boolean;
|
|
408
|
+
getFrontLeftSkid(): number;
|
|
409
|
+
getFrontRightSkid(): number;
|
|
410
|
+
getBackLeftSkid(): number;
|
|
411
|
+
getBackRightSkid(): number;
|
|
412
|
+
getWheelSkidPitch(): number;
|
|
413
|
+
getRigidbodyPhysics(): RigidbodyPhysics;
|
|
414
|
+
getRaycastVehicle(): RaycastVehicle;
|
|
415
|
+
getGradientSpeed(): number;
|
|
416
|
+
getForwardSpeed(): number;
|
|
417
|
+
getAbsoluteSpeed(): number;
|
|
418
|
+
getAmericanSpeed(): number;
|
|
419
|
+
getTopEngineSpeed(): number;
|
|
420
|
+
getNormalizedSpeed(): number;
|
|
421
|
+
getMaxReversePower(): number;
|
|
422
|
+
getCurrentGearIndex(): number;
|
|
423
|
+
getCurrentEngineRPM(): number;
|
|
424
|
+
getCurrentEngineForce(): number;
|
|
425
|
+
getCurrentEnginePitch(): number;
|
|
426
|
+
getGearShiftRatioCount(): number;
|
|
427
|
+
getSmokeTextureMask(): BABYLON.Texture;
|
|
428
|
+
getBrakeLightsMesh(): BABYLON.TransformNode;
|
|
429
|
+
getReverseLightsMesh(): BABYLON.TransformNode;
|
|
430
|
+
getFrontLeftWheelNode(): BABYLON.TransformNode;
|
|
431
|
+
getFrontRightWheelNode(): BABYLON.TransformNode;
|
|
432
|
+
getBackLeftWheelNode(): BABYLON.TransformNode;
|
|
433
|
+
getBackRightWheelNode(): BABYLON.TransformNode;
|
|
434
|
+
getWheelBurnoutEnabled(): boolean;
|
|
435
|
+
getWheelDonutsEnabled(): boolean;
|
|
436
|
+
getCurrentDonutSpinTime(): number;
|
|
437
|
+
isStartPositionLocked(): boolean;
|
|
438
|
+
lockStartPosition(): void;
|
|
439
|
+
unlockStartPosition(): void;
|
|
440
|
+
getSmokeIntensityFactor(): number;
|
|
441
|
+
getWheelVelocityOffset(): BABYLON.Vector3;
|
|
442
|
+
smokeTexture: BABYLON.Texture;
|
|
443
|
+
skidThreashold: number;
|
|
444
|
+
wheelDrawVelocity: number;
|
|
445
|
+
smokeIntensity: number;
|
|
446
|
+
smokeOpacity: number;
|
|
447
|
+
smokeDonuts: number;
|
|
448
|
+
burnoutTurnFactor: number;
|
|
449
|
+
maxSteerBoost: number;
|
|
450
|
+
overSteerSpeed: number;
|
|
451
|
+
overSteerTimeout: number;
|
|
452
|
+
topEngineSpeed: number;
|
|
453
|
+
topBoosterSpeed: number;
|
|
454
|
+
powerChangeRate: number;
|
|
455
|
+
powerCoefficient: number;
|
|
456
|
+
boosterCoefficient: number;
|
|
457
|
+
gravitationalForce: number;
|
|
458
|
+
driftSpeedDampener: number;
|
|
459
|
+
lowGearCoefficient: number;
|
|
460
|
+
lowGearDampener: number;
|
|
461
|
+
stationaryBoost: number;
|
|
462
|
+
lowSpeedSteering: number;
|
|
463
|
+
highSpeedSteering: number;
|
|
464
|
+
steeringInputCurve: number;
|
|
465
|
+
maximumYawRateLow: number;
|
|
466
|
+
maximumYawRateHigh: number;
|
|
467
|
+
debugBurnout: boolean;
|
|
468
|
+
debugBurnoutEveryNFrames: number;
|
|
469
|
+
debugSteering: boolean;
|
|
470
|
+
debugSteeringEveryNFrames: number;
|
|
471
|
+
private _debugSteeringCounter;
|
|
472
|
+
debugDonut: boolean;
|
|
473
|
+
debugDonutEveryNFrames: number;
|
|
474
|
+
private _donutLogCounter;
|
|
475
|
+
donutTurningRadius: number;
|
|
476
|
+
donutPowerBlend: number;
|
|
477
|
+
donutSpeedScaling: number;
|
|
478
|
+
donutRotationBoost: number;
|
|
479
|
+
donutAngularDamping: number;
|
|
480
|
+
donutFrontFriction: number;
|
|
481
|
+
donutRearFriction: number;
|
|
482
|
+
donutFrontWheelPull: number;
|
|
483
|
+
donutYawDegPerSec: number;
|
|
484
|
+
donutYawResponse: number;
|
|
485
|
+
donutSlipAngle: number;
|
|
486
|
+
donutEntryTime: number;
|
|
487
|
+
donutVelocityPinEnabled: boolean;
|
|
488
|
+
donutVelocityPinResponse: number;
|
|
489
|
+
roadConnectAccel: number;
|
|
490
|
+
smoothFlyingImpulse: number;
|
|
491
|
+
stableDownImpulse: number;
|
|
492
|
+
constImpulseForce: number;
|
|
493
|
+
transmissionRatio: number;
|
|
494
|
+
differentialRatio: number;
|
|
495
|
+
burnoutFirstGearMultiplier: number;
|
|
496
|
+
maxBoosterTime: number;
|
|
497
|
+
minBoosterSpeed: number;
|
|
498
|
+
maxFrontBraking: number;
|
|
499
|
+
maxReversePower: number;
|
|
500
|
+
minBrakingForce: number;
|
|
501
|
+
maxBrakingForce: number;
|
|
502
|
+
handBrakingForce: number;
|
|
503
|
+
handBrakingTimer: number;
|
|
504
|
+
defaultBrakingWindow: number;
|
|
505
|
+
counterSteerLockoutWindowPercent: number;
|
|
506
|
+
counterSteerLockoutDeadzone: number;
|
|
507
|
+
linearBrakingForce: number;
|
|
508
|
+
angularBrakingForce: number;
|
|
509
|
+
frontSkidFriction: number;
|
|
510
|
+
rearSkidFriction: number;
|
|
511
|
+
burnoutTimeDelay: number;
|
|
512
|
+
burnoutWheelPitch: number;
|
|
513
|
+
stationaryBurnoutSkidPitch: number;
|
|
514
|
+
burnoutPeelAwaySkidPitch: number;
|
|
515
|
+
burnoutPeelAwayPitchRampTime: number;
|
|
516
|
+
burnoutLaunchChirpSound: string;
|
|
517
|
+
burnoutCoefficient: number;
|
|
518
|
+
burnoutTriggerMark: number;
|
|
519
|
+
stationaryBurnoutPrimeSpeedMph: number;
|
|
520
|
+
stationaryBurnoutPrimeHoldTime: number;
|
|
521
|
+
stationaryBurnoutPrimeReleaseSpeedMph: number;
|
|
522
|
+
stationaryBurnoutRevMinRpmOffset: number;
|
|
523
|
+
stationaryBurnoutRevMaxFactor: number;
|
|
524
|
+
stationaryBurnoutRevLerpSpeed: number;
|
|
525
|
+
burnoutLaunchRpmCarryTime: number;
|
|
526
|
+
burnoutLaunchRpmCarryFloorFactor: number;
|
|
527
|
+
normalLaunchTractionRamp: number;
|
|
528
|
+
normalLaunchTractionMin: number;
|
|
529
|
+
burnoutLaunchKickDuration: number;
|
|
530
|
+
burnoutLaunchKickMultiplier: number;
|
|
531
|
+
burnoutLaunchFrictionRestore: number;
|
|
532
|
+
debugLaunch: boolean;
|
|
533
|
+
debugLaunchEveryNFrames: number;
|
|
534
|
+
debugFrictionRestore: boolean;
|
|
535
|
+
debugFrictionRestoreEveryNFrames: number;
|
|
536
|
+
debugFrictionSnapDelta: number;
|
|
537
|
+
skidSlideEnabled: boolean;
|
|
538
|
+
skidSlideMinAngle: number;
|
|
539
|
+
skidSlideMaxAngle: number;
|
|
540
|
+
skidSlideMinSpeed: number;
|
|
541
|
+
skidRecoverDuration: number;
|
|
542
|
+
skidRecoverCurve: number;
|
|
543
|
+
debugSkidSlide: boolean;
|
|
544
|
+
debugSkidSlideEveryNFrames: number;
|
|
545
|
+
skidReleaseBrakeFadeTime: number;
|
|
546
|
+
skidReleaseSnapRatio: number;
|
|
547
|
+
skidStopFrictionResetSpeed: number;
|
|
548
|
+
skidLaunchFrictionResetSpeed: number;
|
|
549
|
+
burnoutStopFrictionResetSpeed: number;
|
|
550
|
+
burnoutLaunchFrictionResetSpeed: number;
|
|
551
|
+
burnoutExitArcadeFadeTime: number;
|
|
552
|
+
burnoutExitFrictionRampTime: number;
|
|
553
|
+
burnoutExitArcadeReleaseTime: number;
|
|
554
|
+
enableAutoBurnouts: boolean;
|
|
555
|
+
grassPenaltyMask: number;
|
|
556
|
+
curbPenaltyMask: number;
|
|
557
|
+
minPenaltySpeed: number;
|
|
558
|
+
linearWheelDrag: number;
|
|
559
|
+
frictionWheelSlip: number;
|
|
560
|
+
showSensorLines: boolean;
|
|
561
|
+
powerBooster: boolean;
|
|
562
|
+
linkTrackManager: boolean;
|
|
563
|
+
playVehicleSounds: boolean;
|
|
564
|
+
postNetworkAttributes: boolean;
|
|
565
|
+
wheelDriveType: number;
|
|
566
|
+
gearBoxMultiplier: number;
|
|
567
|
+
currentPitchScale: number;
|
|
568
|
+
gearBoxPitchScale: number;
|
|
569
|
+
gearBoxShiftDelay: number;
|
|
570
|
+
gearBoxShiftRatios: number[];
|
|
571
|
+
gearBoxShiftUpRanges: number[];
|
|
572
|
+
gearBoxShiftDownRanges: number[];
|
|
573
|
+
throttleBrakingForce: number;
|
|
574
|
+
throttleEngineSpeed: number;
|
|
575
|
+
frictionLerpSpeed: number;
|
|
576
|
+
burnoutLerpSpeed: number;
|
|
577
|
+
skidTurningAssist: number;
|
|
578
|
+
skidSteeringKick: number;
|
|
579
|
+
skidSteeringAngle: number;
|
|
580
|
+
skidReleaseWindow: number;
|
|
581
|
+
skidReleaseLinger: number;
|
|
582
|
+
ackermanWheelBase: number;
|
|
583
|
+
ackermanRearTrack: number;
|
|
584
|
+
ackermanTurnRadius: number;
|
|
585
|
+
ackermanMaxRadius: number;
|
|
586
|
+
ackermanTurnFactor: number;
|
|
587
|
+
radiusBrakingForce: number;
|
|
588
|
+
steeringSlewTau: number;
|
|
589
|
+
minSteeringSlew: number;
|
|
590
|
+
readBurnoutMeter(): number;
|
|
591
|
+
resetBurnoutMeter(): void;
|
|
592
|
+
readDonutMeter(): number;
|
|
593
|
+
resetDonutMeter(): void;
|
|
594
|
+
getBoosterTime(): number;
|
|
595
|
+
setBoosterTime(time: number): void;
|
|
596
|
+
resetBoosterTime(): void;
|
|
597
|
+
roadSurfaceFactor: number;
|
|
598
|
+
movementTilting: boolean;
|
|
599
|
+
surfaceDetection: boolean;
|
|
600
|
+
idleShakeRate: number;
|
|
601
|
+
idleShakeNoise: number;
|
|
602
|
+
maxForwardAngle: number;
|
|
603
|
+
maxLateralAngle: number;
|
|
604
|
+
lerpForwardFactor: number;
|
|
605
|
+
lerpLateralFactor: number;
|
|
606
|
+
shiftForwardExtra: number;
|
|
607
|
+
shiftLateralExtra: number;
|
|
608
|
+
forwardPitchFactor: number;
|
|
609
|
+
lateralRollFactor: number;
|
|
610
|
+
forwardRecoverRate: number;
|
|
611
|
+
lateralRecoverRate: number;
|
|
612
|
+
lowSpeedScale: number;
|
|
613
|
+
highSpeedScale: number;
|
|
614
|
+
lowForwardNoise: number;
|
|
615
|
+
highForwardNoise: number;
|
|
616
|
+
lowLateralNoise: number;
|
|
617
|
+
highLateralNoise: number;
|
|
618
|
+
speedThreashold: number;
|
|
619
|
+
boosterTransform: BABYLON.TransformNode;
|
|
620
|
+
chassisTransform: BABYLON.TransformNode;
|
|
621
|
+
tiltChassisEulers: BABYLON.Vector3;
|
|
622
|
+
protected m_physicsWorld: any;
|
|
623
|
+
protected m_frontLeftWheel: btWheelInfo;
|
|
624
|
+
protected m_frontRightWheel: btWheelInfo;
|
|
625
|
+
protected m_backLeftWheel: btWheelInfo;
|
|
626
|
+
protected m_backRightWheel: btWheelInfo;
|
|
627
|
+
protected m_frontLeftWheelSkid: number;
|
|
628
|
+
protected m_frontRightWheelSkid: number;
|
|
629
|
+
protected m_backLeftWheelSkid: number;
|
|
630
|
+
protected m_backRightWheelSkid: number;
|
|
631
|
+
protected m_angularDampener: BABYLON.Vector3;
|
|
632
|
+
protected m_velocityOffset: BABYLON.Vector3;
|
|
633
|
+
protected m_linearVelocity: BABYLON.Vector3;
|
|
634
|
+
protected m_lastPosition: BABYLON.Vector3;
|
|
635
|
+
protected m_scaledVelocity: number;
|
|
636
|
+
protected awake(): void;
|
|
637
|
+
protected start(): void;
|
|
638
|
+
protected update(): void;
|
|
639
|
+
protected destroy(): void;
|
|
640
|
+
protected awakeVehicleState(): void;
|
|
641
|
+
protected initVehicleState(): void;
|
|
642
|
+
protected updateVehicleState(): void;
|
|
643
|
+
protected destroyVehicleState(): void;
|
|
644
|
+
private donutButton;
|
|
645
|
+
private burnoutButton;
|
|
646
|
+
private burnoutTimer;
|
|
647
|
+
private burnoutElapsed;
|
|
648
|
+
private restoreTimer;
|
|
649
|
+
private restoreTimerDuration;
|
|
650
|
+
private cooldownTimer;
|
|
651
|
+
private wheelDonuts;
|
|
652
|
+
private wheelBurnout;
|
|
653
|
+
private _prevBurnoutButton;
|
|
654
|
+
private _burnoutLatchedDriveSign;
|
|
655
|
+
private _stationaryBurnoutPrimed;
|
|
656
|
+
private _stationaryBurnoutPrimeTimer;
|
|
657
|
+
private _prevStationaryBurnoutWanted;
|
|
658
|
+
private _burnoutLaunchKickTimer;
|
|
659
|
+
private _burnoutLaunchHoldRpm;
|
|
660
|
+
private _burnoutLaunchRpmCarryTimer;
|
|
661
|
+
private _burnoutLaunchRpmCarryDuration;
|
|
662
|
+
private _burnoutPeelAwayPitchRampTimer;
|
|
663
|
+
private _burnoutPeelAwayPitchRampDuration;
|
|
664
|
+
private _stationaryLaunchSnapActive;
|
|
665
|
+
private _burnoutLowGearClimbActive;
|
|
666
|
+
private _burnoutLowGearClimbStationary;
|
|
667
|
+
private _burnoutLowGearClimbDriveSign;
|
|
668
|
+
private _burnoutStartedFromStationary;
|
|
669
|
+
private _launchLogCounter;
|
|
670
|
+
private _handBrakeEntrySteerSign;
|
|
671
|
+
private _skidReleaseBrakeTimer;
|
|
672
|
+
private _skidFrictionRestorePending;
|
|
673
|
+
private _skidRecoverActive;
|
|
674
|
+
private _skidRecoverElapsed;
|
|
675
|
+
private _skidRecoverFrontStart;
|
|
676
|
+
private _skidRecoverRearStart;
|
|
677
|
+
private _skidSlideLogCounter;
|
|
678
|
+
private _burnoutExitArcadeFadeTimer;
|
|
679
|
+
private _burnoutExitFrictionRampTimer;
|
|
680
|
+
private _burnoutExitArcadeReleaseTimer;
|
|
681
|
+
private _burnoutResidualFrictionRestorePending;
|
|
682
|
+
private _prevWheelBurnoutState;
|
|
683
|
+
private _lockedPosition;
|
|
684
|
+
private _lockedRotationQuaternion;
|
|
685
|
+
private wheelSkidding;
|
|
686
|
+
private donutSpinTime;
|
|
687
|
+
private currentForward;
|
|
688
|
+
private currentTurning;
|
|
689
|
+
private rampedTurning;
|
|
690
|
+
private currentBoosting;
|
|
691
|
+
private currentSkidding;
|
|
692
|
+
private currentDrivePower;
|
|
693
|
+
private targetDrivePower;
|
|
694
|
+
private animatorSteerAngle;
|
|
695
|
+
drive(throttle: number, steering: number, braking: boolean, burnout: boolean, booster?: number, autopilot?: boolean, nos?: boolean, donut?: boolean): void;
|
|
696
|
+
private processAckermanSteering;
|
|
697
|
+
private syncVehicleState;
|
|
698
|
+
private currentPitch;
|
|
699
|
+
private currentRoll;
|
|
700
|
+
private previousSpeed;
|
|
701
|
+
private syncVehicleTilting;
|
|
702
|
+
private updateGearShifting;
|
|
703
|
+
private shouldUpshift;
|
|
704
|
+
private shouldDownshift;
|
|
705
|
+
private initiateGearShift;
|
|
706
|
+
private armBurnoutLowGearClimb;
|
|
707
|
+
private resetBurnoutLowGearClimb;
|
|
708
|
+
private isBurnoutLowGearClimbActive;
|
|
709
|
+
private updateBurnoutLowGearClimbState;
|
|
710
|
+
private armBurnoutLaunchAudio;
|
|
711
|
+
private isStationaryBurnoutSkidAudioActive;
|
|
712
|
+
private isBurnoutPeelAwaySkidAudioActive;
|
|
713
|
+
private getWheelSkidAudioPitchScale;
|
|
714
|
+
private getBurnoutLaunchRpmCarryFloor;
|
|
715
|
+
private updateClutchEngagement;
|
|
716
|
+
private getIdleRPM;
|
|
717
|
+
private writeTransformMetadata;
|
|
718
|
+
private getVehicleEngineTorque;
|
|
719
|
+
private createSmokeParticleSystem;
|
|
720
|
+
private updateCurrentSkidInfo;
|
|
721
|
+
private computeSlideSkid;
|
|
722
|
+
private logSkidSlide;
|
|
723
|
+
private updateCurrentContactMask;
|
|
724
|
+
private hasPenaltyContactMask;
|
|
725
|
+
private updateCurrentBrakeDamping;
|
|
726
|
+
private updateCurrentRotationDelta;
|
|
727
|
+
private updateCurrentRotationBoost;
|
|
728
|
+
private clearWheelRotationBoost;
|
|
729
|
+
private hasBurnoutResidualState;
|
|
730
|
+
private resetBurnoutFrictionForStopOrLaunch;
|
|
731
|
+
private resetSkidFrictionForStopOrLaunch;
|
|
732
|
+
private restoreWheelFrictionToDefault;
|
|
733
|
+
private isWheelFrictionAtDefault;
|
|
734
|
+
private updateSkidFrictionRecovery;
|
|
735
|
+
private updateCurrentFrictionSlip;
|
|
736
|
+
private armBurnoutExitSmoothing;
|
|
737
|
+
private clearBurnoutExitSmoothing;
|
|
738
|
+
private frontLeftContact;
|
|
739
|
+
private frontRightContact;
|
|
740
|
+
private rearLeftContact;
|
|
741
|
+
private rearRightContact;
|
|
742
|
+
private frontLeftContactTag;
|
|
743
|
+
private frontRightContactTag;
|
|
744
|
+
private rearLeftContactTag;
|
|
745
|
+
private rearRightContactTag;
|
|
746
|
+
private frontLeftContactMask;
|
|
747
|
+
private frontRightContactMask;
|
|
748
|
+
private rearLeftContactMask;
|
|
749
|
+
private rearRightContactMask;
|
|
750
|
+
private frontLeftContactPoint;
|
|
751
|
+
private frontRightContactPoint;
|
|
752
|
+
private rearLeftContactPoint;
|
|
753
|
+
private rearRightContactPoint;
|
|
754
|
+
private frontLeftContactNormal;
|
|
755
|
+
private frontRightContactNormal;
|
|
756
|
+
private rearLeftContactNormal;
|
|
757
|
+
private rearRightContactNormal;
|
|
758
|
+
private frontLeftFrictionLerping;
|
|
759
|
+
private frontRightFrictionLerping;
|
|
760
|
+
private rearLeftFrictionLerping;
|
|
761
|
+
private rearRightFrictionLerping;
|
|
762
|
+
private frontLeftFrictionPenalty;
|
|
763
|
+
private frontRightFrictionPenalty;
|
|
764
|
+
private rearLeftFrictionPenalty;
|
|
765
|
+
private rearRightFrictionPenalty;
|
|
766
|
+
private startRaycastPosition;
|
|
767
|
+
private endRaycastPosition;
|
|
768
|
+
private downDirection;
|
|
769
|
+
private downDistance;
|
|
770
|
+
getFrontLeftWheelContact(): boolean;
|
|
771
|
+
getFrontRightWheelContact(): boolean;
|
|
772
|
+
getRearLeftWheelContact(): boolean;
|
|
773
|
+
getRearRightWheelContact(): boolean;
|
|
774
|
+
getFrontLeftWheelContactTag(): string;
|
|
775
|
+
getFrontRightWheelContactTag(): string;
|
|
776
|
+
getRearLeftWheelContactTag(): string;
|
|
777
|
+
getRearRightWheelContactTag(): string;
|
|
778
|
+
getFrontLeftWheelContactPoint(): BABYLON.Vector3;
|
|
779
|
+
getFrontRightWheelContactPoint(): BABYLON.Vector3;
|
|
780
|
+
getRearLeftWheelContactPoint(): BABYLON.Vector3;
|
|
781
|
+
getRearRightWheelContactPoint(): BABYLON.Vector3;
|
|
782
|
+
getFrontLeftWheelContactNormal(): BABYLON.Vector3;
|
|
783
|
+
getFrontRightWheelContactNormal(): BABYLON.Vector3;
|
|
784
|
+
getRearLeftWheelContactNormal(): BABYLON.Vector3;
|
|
785
|
+
getRearRightWheelContactNormal(): BABYLON.Vector3;
|
|
786
|
+
}
|
|
787
|
+
export declare class VehicleCameraManager extends ScriptComponent {
|
|
788
|
+
enableCamera: boolean;
|
|
789
|
+
followTarget: boolean;
|
|
790
|
+
followHeight: number;
|
|
791
|
+
pitchingAngle: number;
|
|
792
|
+
rotationDamping: number;
|
|
793
|
+
minimumDistance: number;
|
|
794
|
+
maximumDistance: number;
|
|
795
|
+
buttonCamera: number;
|
|
796
|
+
keyboardCamera: number;
|
|
797
|
+
tickRemoteEntities: boolean;
|
|
798
|
+
fastMotionBlur: boolean;
|
|
799
|
+
lowSpeedBlurring: number;
|
|
800
|
+
highSpeedBlurring: number;
|
|
801
|
+
motionBlurSamples: number;
|
|
802
|
+
isObjectBasedBlur: boolean;
|
|
803
|
+
fastCameraShake: boolean;
|
|
804
|
+
lowSpeedShaking: number;
|
|
805
|
+
highSpeedShaking: number;
|
|
806
|
+
autoAttachCamera: boolean;
|
|
807
|
+
private firstPerson;
|
|
808
|
+
private cameraPivot;
|
|
809
|
+
private targetEulers;
|
|
810
|
+
private cameraRotation;
|
|
811
|
+
private cameraPivotOffset;
|
|
812
|
+
private motionBlurAttached;
|
|
813
|
+
protected m_freeCamera: BABYLON.FreeCamera;
|
|
814
|
+
protected m_motionBlur: BABYLON.MotionBlurPostProcess;
|
|
815
|
+
protected m_cameraTransform: BABYLON.TransformNode;
|
|
816
|
+
protected m_inputController: VehicleInputController;
|
|
817
|
+
protected m_standardController: StandardCarController;
|
|
818
|
+
protected m_firstPersonOffset: BABYLON.Vector3;
|
|
819
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
820
|
+
protected awake(): void;
|
|
821
|
+
protected start(): void;
|
|
822
|
+
protected late(): void;
|
|
823
|
+
protected destroy(): void;
|
|
824
|
+
protected awakeCameraManager(): void;
|
|
825
|
+
protected initCameraManager(): void;
|
|
826
|
+
protected lateUpdateCameraManager(): void;
|
|
827
|
+
protected destroyCameraManager(): void;
|
|
828
|
+
attachPlayerCamera(player: PlayerNumber): void;
|
|
829
|
+
togglePlayerCamera(): void;
|
|
830
|
+
firstPersonCamera(): void;
|
|
831
|
+
thirdPersonCamera(): void;
|
|
832
|
+
}
|
|
833
|
+
export interface ISteeringWheelDevice {
|
|
834
|
+
deviceName: string;
|
|
835
|
+
forwardButton: number;
|
|
836
|
+
backwardButton: number;
|
|
837
|
+
leftHandBrake: number;
|
|
838
|
+
rightHandBrake: number;
|
|
839
|
+
leftBurnoutBoost: number;
|
|
840
|
+
rightBurnoutBoost: number;
|
|
841
|
+
leftDonutBoost: number;
|
|
842
|
+
rightDonutBoost: number;
|
|
843
|
+
}
|
|
844
|
+
export declare class VehicleInputController extends ScriptComponent {
|
|
845
|
+
private playerDeltaX;
|
|
846
|
+
private playerDeltaY;
|
|
847
|
+
private playerMouseX;
|
|
848
|
+
private playerMouseY;
|
|
849
|
+
private ackermanRadius;
|
|
850
|
+
private autoturnRadius;
|
|
851
|
+
private recoveryRadius;
|
|
852
|
+
private waypointPosition;
|
|
853
|
+
private waypointCount;
|
|
854
|
+
private waypointIndex;
|
|
855
|
+
private noMovementTime;
|
|
856
|
+
private reverseFixMode;
|
|
857
|
+
private recoveryFixMode;
|
|
858
|
+
private nextTargetSpeed;
|
|
859
|
+
private prevTargetSpeed;
|
|
860
|
+
private vehicleResetCheck;
|
|
861
|
+
private randomSkillFactor;
|
|
862
|
+
private showChaseRabbit;
|
|
863
|
+
private showSensorLines;
|
|
864
|
+
private steeringWheelMode;
|
|
865
|
+
private rabbitTrackerLine;
|
|
866
|
+
private rabbitTrackerColor;
|
|
867
|
+
private greenTrackingColor;
|
|
868
|
+
private redTrackingColor;
|
|
869
|
+
private localTargetPosition;
|
|
870
|
+
private avoidPositionOffset;
|
|
871
|
+
private avoidanceLerp;
|
|
872
|
+
private avoidanceTimer;
|
|
873
|
+
private avoidanceValue;
|
|
874
|
+
private _avoidanceSteerSmoothed;
|
|
875
|
+
private _debugAvoidanceCounter;
|
|
876
|
+
private _frontThreatHit;
|
|
877
|
+
private _frontThreatDistance;
|
|
878
|
+
private _frontThreatSensor;
|
|
879
|
+
private _frontThreatTag;
|
|
880
|
+
private randomTurning;
|
|
881
|
+
private randomBoosting;
|
|
882
|
+
private randomDistance;
|
|
883
|
+
private lastCheckpoint;
|
|
884
|
+
private mainCenterSensorLine;
|
|
885
|
+
private mainRightSensorLine;
|
|
886
|
+
private mainLeftSensorLine;
|
|
887
|
+
private angleRightSensorLine;
|
|
888
|
+
private angleLeftSensorLine;
|
|
889
|
+
private sideRightSensorLine;
|
|
890
|
+
private sideLeftSensorLine;
|
|
891
|
+
private backRightSensorLine;
|
|
892
|
+
private backLeftSensorLine;
|
|
893
|
+
private sidewaysOffsetVector;
|
|
894
|
+
private backBumperEdgeVector;
|
|
895
|
+
private sensorStartPos;
|
|
896
|
+
private sensorPointPos;
|
|
897
|
+
private sensorAnglePos;
|
|
898
|
+
private rsideStartPos;
|
|
899
|
+
private rsidePointPos;
|
|
900
|
+
private lsideStartPos;
|
|
901
|
+
private lsidePointPos;
|
|
902
|
+
private tempScaleVector;
|
|
903
|
+
private rbackStartPos;
|
|
904
|
+
private rbackPointPos;
|
|
905
|
+
private lbackStartPos;
|
|
906
|
+
private lbackPointPos;
|
|
907
|
+
private trackVehiclePosition;
|
|
908
|
+
private trackRabbitPosition;
|
|
909
|
+
getPlayerDeltaX(): number;
|
|
910
|
+
getPlayerDeltaY(): number;
|
|
911
|
+
getPlayerMouseX(): number;
|
|
912
|
+
getPlayerMouseY(): number;
|
|
913
|
+
getWaypointIndex(): number;
|
|
914
|
+
getChaseRabbitMesh(): BABYLON.Mesh;
|
|
915
|
+
resetChaseRabbitMesh(): void;
|
|
916
|
+
getChasePointMesh(): BABYLON.Mesh;
|
|
917
|
+
resetChasePointMesh(): void;
|
|
918
|
+
enableInput: boolean;
|
|
919
|
+
resetTiming: number;
|
|
920
|
+
playerNumber: PlayerNumber;
|
|
921
|
+
pedelForward: number;
|
|
922
|
+
triggerForward: number;
|
|
923
|
+
keyboardForawrd: number;
|
|
924
|
+
auxKeyboardForawrd: number;
|
|
925
|
+
pedalBackward: number;
|
|
926
|
+
triggerBackwards: number;
|
|
927
|
+
keyboardBackwards: number;
|
|
928
|
+
auxKeyboardBackwards: number;
|
|
929
|
+
pedalBooster: number;
|
|
930
|
+
keyboardBooster: number;
|
|
931
|
+
leftButtonBooster: number;
|
|
932
|
+
rightButtonBooster: number;
|
|
933
|
+
buttonHandbrake: number;
|
|
934
|
+
keyboardHandbrake: number;
|
|
935
|
+
leftWheelHandbrake: number;
|
|
936
|
+
rightWheelHandbrake: number;
|
|
937
|
+
keyboardBurnout: number;
|
|
938
|
+
buttonBurnout: number;
|
|
939
|
+
leftWheelBurnout: number;
|
|
940
|
+
rightWheelBurnout: number;
|
|
941
|
+
keyboardDonut: number;
|
|
942
|
+
buttonDonut: number;
|
|
943
|
+
leftWheelDonut: number;
|
|
944
|
+
rightWheelDonut: number;
|
|
945
|
+
raceLineNode: number;
|
|
946
|
+
minLookAhead: number;
|
|
947
|
+
maxLookAhead: number;
|
|
948
|
+
driverSkillLevel: number;
|
|
949
|
+
chaseRabbitSpeed: number;
|
|
950
|
+
throttleSensitivity: number;
|
|
951
|
+
steeringSensitivity: number;
|
|
952
|
+
brakingSensitivity: number;
|
|
953
|
+
brakingTurnAngle: number;
|
|
954
|
+
brakingSpeedLimit: number;
|
|
955
|
+
skiddingSpeedLimit: number;
|
|
956
|
+
linearDampenForce: number;
|
|
957
|
+
driveSpeedMultiplier: number;
|
|
958
|
+
driveLineDistance: number;
|
|
959
|
+
resetMovingTimeout: number;
|
|
960
|
+
reverseThrottleTime: number;
|
|
961
|
+
maxRaceTrackSpeed: number;
|
|
962
|
+
trackManagerIdentity: string;
|
|
963
|
+
vehicleTag: string;
|
|
964
|
+
obstacleTag: string;
|
|
965
|
+
sensorLength: number;
|
|
966
|
+
spacerWidths: number;
|
|
967
|
+
angleFactors: number;
|
|
968
|
+
initialOffsetX: number;
|
|
969
|
+
initialOffsetY: number;
|
|
970
|
+
initialOffsetZ: number;
|
|
971
|
+
sidewaysLength: number;
|
|
972
|
+
sidewaysOffset: number;
|
|
973
|
+
backBumperEdge: number;
|
|
974
|
+
powerBoosting: number;
|
|
975
|
+
wonderDistance: number;
|
|
976
|
+
avoidanceFactor: number;
|
|
977
|
+
avoidanceSpeed: number;
|
|
978
|
+
avoidanceTimeout: number;
|
|
979
|
+
avoidanceDistance: number;
|
|
980
|
+
avoidanceSteeringGain: number;
|
|
981
|
+
avoidanceSteeringGainHigh: number;
|
|
982
|
+
avoidanceSteerSmoothing: number;
|
|
983
|
+
avoidanceSteerDeadband: number;
|
|
984
|
+
frontSlowdownGain: number;
|
|
985
|
+
frontSlowdownMinThrottle: number;
|
|
986
|
+
frontBrakeProximity: number;
|
|
987
|
+
frontBrakeForce: number;
|
|
988
|
+
frontHardBrakeProximity: number;
|
|
989
|
+
frontHardBrakeStrength: number;
|
|
990
|
+
avoidanceProximityBoost: number;
|
|
991
|
+
avoidanceSteerCarryover: number;
|
|
992
|
+
debugAvoidance: boolean;
|
|
993
|
+
debugAvoidanceEveryNFrames: number;
|
|
994
|
+
private reversingFlag;
|
|
995
|
+
private reversingTime;
|
|
996
|
+
private reversingWait;
|
|
997
|
+
private reversingFor;
|
|
998
|
+
protected m_chasePointMesh: BABYLON.Mesh;
|
|
999
|
+
protected m_chaseRabbitMesh: BABYLON.Mesh;
|
|
1000
|
+
protected m_circuitInterfaces: ITrackNode[];
|
|
1001
|
+
protected m_circuitRaceLine_1: IControlPoint[];
|
|
1002
|
+
protected m_circuitRaceLine_2: IControlPoint[];
|
|
1003
|
+
protected m_circuitRaceLine_3: IControlPoint[];
|
|
1004
|
+
protected m_circuitRaceLine_4: IControlPoint[];
|
|
1005
|
+
protected m_circuitRaceLine_5: IControlPoint[];
|
|
1006
|
+
protected m_rigidbodyPhysics: RigidbodyPhysics;
|
|
1007
|
+
protected m_checkpointManager: CheckpointManager;
|
|
1008
|
+
protected m_standardCarController: StandardCarController;
|
|
1009
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1010
|
+
protected awake(): void;
|
|
1011
|
+
protected start(): void;
|
|
1012
|
+
protected update(): void;
|
|
1013
|
+
protected destroy(): void;
|
|
1014
|
+
protected awakeVehicleController(): void;
|
|
1015
|
+
protected initVehicleController(): void;
|
|
1016
|
+
protected updateVehicleController(): void;
|
|
1017
|
+
protected updateManualInputDrive(): void;
|
|
1018
|
+
private autoDriveRaycastResult;
|
|
1019
|
+
protected updateAutoPilotDrive(): void;
|
|
1020
|
+
protected getDriverSkillFactor(): number;
|
|
1021
|
+
protected getCurrentTrackNode(index: number): ITrackNode;
|
|
1022
|
+
protected getCurrentControlPoint(lane: number, index: number): IControlPoint;
|
|
1023
|
+
protected getRandomNumber(min: number, max: number): number;
|
|
1024
|
+
protected generateRandonNumber(min: number, max: number, decimals?: number): number;
|
|
1025
|
+
protected destroyVehicleController(): void;
|
|
1026
|
+
}
|
|
1027
|
+
export declare class VehicleNetworkLabel extends ScriptComponent {
|
|
1028
|
+
label: BABYLON.GUI.TextBlock;
|
|
1029
|
+
rect: BABYLON.GUI.Rectangle;
|
|
1030
|
+
autoCreate: boolean;
|
|
1031
|
+
offsetX: number;
|
|
1032
|
+
offsetY: number;
|
|
1033
|
+
labelColor: BABYLON.Color3;
|
|
1034
|
+
borderColor: BABYLON.Color3;
|
|
1035
|
+
backgroundColor: BABYLON.Color3;
|
|
1036
|
+
labelCreated: boolean;
|
|
1037
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1038
|
+
protected update(): void;
|
|
1039
|
+
createLabel(name: string): void;
|
|
1040
|
+
protected destroy(): void;
|
|
1041
|
+
private static AdvDynamicTexture;
|
|
1042
|
+
static GetFullscreenUI(scene: BABYLON.Scene, sampling?: number): BABYLON.GUI.AdvancedDynamicTexture;
|
|
1043
|
+
}
|
|
1044
|
+
export declare class DoubleSided extends CustomShaderMaterial {
|
|
1045
|
+
constructor(name: string, scene: BABYLON.Scene);
|
|
1046
|
+
awake(): void;
|
|
1047
|
+
update(): void;
|
|
1048
|
+
getShaderName(): string;
|
|
1049
|
+
}
|
|
1050
|
+
export declare class VertexSplat extends CustomShaderMaterial {
|
|
1051
|
+
constructor(name: string, scene: BABYLON.Scene);
|
|
1052
|
+
awake(): void;
|
|
1053
|
+
update(): void;
|
|
1054
|
+
getShaderName(): string;
|
|
1055
|
+
getCustomVertexCode(wgsl: boolean): string;
|
|
1056
|
+
}
|
|
1057
|
+
export declare class VertexSplatPlugin extends CustomShaderMaterialPlugin {
|
|
1058
|
+
constructor(customMaterial: CustomShaderMaterial, shaderName: string);
|
|
1059
|
+
isCompatible(shaderLanguage: BABYLON.ShaderLanguage): boolean;
|
|
1060
|
+
getCustomCode(shaderType: string, shaderLanguage: BABYLON.ShaderLanguage): any;
|
|
1061
|
+
getUniforms(shaderLanguage: BABYLON.ShaderLanguage): any;
|
|
1062
|
+
getSamplers(samplers: string[]): void;
|
|
1063
|
+
getAttributes(attributes: string[], scene: BABYLON.Scene, mesh: BABYLON.AbstractMesh): void;
|
|
1064
|
+
prepareDefines(defines: BABYLON.MaterialDefines, scene: BABYLON.Scene, mesh: BABYLON.AbstractMesh): void;
|
|
1065
|
+
bindForSubMesh(uniformBuffer: BABYLON.UniformBuffer, scene: BABYLON.Scene, engine: BABYLON.AbstractEngine, subMesh: BABYLON.SubMesh): void;
|
|
1066
|
+
}
|
|
1067
|
+
export declare class DefaultCameraSystem extends ScriptComponent {
|
|
1068
|
+
protected static PlayerOneCamera: BABYLON.FreeCamera;
|
|
1069
|
+
protected static PlayerTwoCamera: BABYLON.FreeCamera;
|
|
1070
|
+
protected static PlayerThreeCamera: BABYLON.FreeCamera;
|
|
1071
|
+
protected static PlayerFourCamera: BABYLON.FreeCamera;
|
|
1072
|
+
protected static XRExperienceHelper: BABYLON.WebXRDefaultExperience;
|
|
1073
|
+
private static multiPlayerView;
|
|
1074
|
+
private static multiPlayerCount;
|
|
1075
|
+
private static multiPlayerCameras;
|
|
1076
|
+
private static stereoCameras;
|
|
1077
|
+
private static startupMode;
|
|
1078
|
+
private static cameraReady;
|
|
1079
|
+
private static cameraInstance;
|
|
1080
|
+
private static renderingPipeline;
|
|
1081
|
+
private static screenSpacePipeline;
|
|
1082
|
+
static GetRenderingPipeline(): BABYLON.DefaultRenderingPipeline;
|
|
1083
|
+
static GetScreenSpacePipeline(): BABYLON.SSAORenderingPipeline;
|
|
1084
|
+
static IsCameraSystemReady(): boolean;
|
|
1085
|
+
static OnXRExperienceHelperObservable: any;
|
|
1086
|
+
static FOLLOW_SPEED: number;
|
|
1087
|
+
private mainCamera;
|
|
1088
|
+
private cameraType;
|
|
1089
|
+
private cameraInertia;
|
|
1090
|
+
private cameraController;
|
|
1091
|
+
private immersiveOptions;
|
|
1092
|
+
private arcRotateConfig;
|
|
1093
|
+
private multiPlayerSetup;
|
|
1094
|
+
private fullScreenToggle;
|
|
1095
|
+
private setPointerLock;
|
|
1096
|
+
private setCameraTarget;
|
|
1097
|
+
private setSpatialAudio;
|
|
1098
|
+
private editorPostProcessing;
|
|
1099
|
+
protected m_cameraRig: BABYLON.TargetCamera;
|
|
1100
|
+
isMainCamera(): boolean;
|
|
1101
|
+
getCameraType(): number;
|
|
1102
|
+
getTargetTransform(): BABYLON.TransformNode;
|
|
1103
|
+
setTargetTransform(target: BABYLON.TransformNode): void;
|
|
1104
|
+
enableSpatialAudio(value: boolean): void;
|
|
1105
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1106
|
+
protected awake(): void;
|
|
1107
|
+
protected start(): void;
|
|
1108
|
+
protected update(): void;
|
|
1109
|
+
protected destroy(): void;
|
|
1110
|
+
protected awakeCameraSystemState(): void;
|
|
1111
|
+
protected startCameraSystemState(): Promise<void>;
|
|
1112
|
+
protected updateCameraSystemState(): void;
|
|
1113
|
+
protected cleanCameraSystemState(): void;
|
|
1114
|
+
protected destroyCameraSystemState(): void;
|
|
1115
|
+
targetCameraOffset: BABYLON.Vector3;
|
|
1116
|
+
getCameraPivotPosition(): BABYLON.Vector3;
|
|
1117
|
+
getCameraPivotRotation(): BABYLON.Quaternion;
|
|
1118
|
+
getCameraBoomNode(): BABYLON.TransformNode;
|
|
1119
|
+
getCameraTransform(): BABYLON.TransformNode;
|
|
1120
|
+
private cameraNode;
|
|
1121
|
+
private cameraPivot;
|
|
1122
|
+
private cameraDistance;
|
|
1123
|
+
private cameraPivotOffset;
|
|
1124
|
+
private cameraBoomPosition;
|
|
1125
|
+
private dollyDirection;
|
|
1126
|
+
private rotationEulers;
|
|
1127
|
+
private scaledCamDirection;
|
|
1128
|
+
private scaledMaxDirection;
|
|
1129
|
+
private parentNodePosition;
|
|
1130
|
+
private maximumCameraPos;
|
|
1131
|
+
private cameraRaycastShape;
|
|
1132
|
+
private targetRotationVector;
|
|
1133
|
+
private resetCameraRotation;
|
|
1134
|
+
private updateCameraController;
|
|
1135
|
+
getBoomArmMaxDistance(): number;
|
|
1136
|
+
setBoomArmMaxDistance(distance: number): void;
|
|
1137
|
+
setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
|
|
1138
|
+
private smoothBoomArmLength;
|
|
1139
|
+
private smoothBoomArmSpeed;
|
|
1140
|
+
private updateSmoothBoomArmLength;
|
|
1141
|
+
static EnableTracking(value: boolean): void;
|
|
1142
|
+
static IsTrackingEnabled(): boolean;
|
|
1143
|
+
static SetAutoUpdate(value: boolean): void;
|
|
1144
|
+
static IsAutoUpdateEnabled(): boolean;
|
|
1145
|
+
static GetFollowTarget(): BABYLON.TransformNode;
|
|
1146
|
+
static SetFollowTarget(target: BABYLON.TransformNode): void;
|
|
1147
|
+
static ResetFollowTarget(): void;
|
|
1148
|
+
static UpdateFollowTarget(): void;
|
|
1149
|
+
static GetWebXR(): BABYLON.WebXRDefaultExperience;
|
|
1150
|
+
static IsInWebXR(): boolean;
|
|
1151
|
+
private static SetupNavigationWebXR;
|
|
1152
|
+
static GetMainCamera(scene: BABYLON.Scene, detach?: boolean): BABYLON.FreeCamera;
|
|
1153
|
+
static GetPlayerCamera(scene: BABYLON.Scene, player?: PlayerNumber, detach?: boolean): BABYLON.FreeCamera;
|
|
1154
|
+
static GetCameraTransform(scene: BABYLON.Scene, player?: PlayerNumber): BABYLON.TransformNode;
|
|
1155
|
+
static IsStereoCameras(): boolean;
|
|
1156
|
+
static IsMultiPlayerView(): boolean;
|
|
1157
|
+
static GetMultiPlayerCount(): number;
|
|
1158
|
+
static ActivateMultiPlayerCameras(scene: BABYLON.Scene): boolean;
|
|
1159
|
+
static DisposeMultiPlayerCameras(): void;
|
|
1160
|
+
static SetMultiPlayerViewLayout(scene: BABYLON.Scene, totalNumPlayers: number): boolean;
|
|
1161
|
+
}
|
|
1162
|
+
export interface IEditorArcRtotate {
|
|
1163
|
+
alpha: number;
|
|
1164
|
+
beta: number;
|
|
1165
|
+
radius: number;
|
|
1166
|
+
target: IUnityVector3;
|
|
1167
|
+
}
|
|
1168
|
+
export interface IEditorPostProcessing {
|
|
1169
|
+
usePostProcessing: boolean;
|
|
1170
|
+
highDynamicRange: boolean;
|
|
1171
|
+
screenAntiAliasing: IEditorAntiAliasing;
|
|
1172
|
+
focalDepthOfField: IEditorDepthOfField;
|
|
1173
|
+
chromaticAberration: IEditorChromaticAberration;
|
|
1174
|
+
glowLayerProperties: IEditorGlowLayer;
|
|
1175
|
+
grainEffectProperties: IEditorGrainEffect;
|
|
1176
|
+
sharpEffectProperties: IEditorSharpenEffect;
|
|
1177
|
+
bloomEffectProperties: IEditorBloomProcessing;
|
|
1178
|
+
imageProcessingConfig: IEditorImageProcessing;
|
|
1179
|
+
screenSpaceRendering: IEditorScreenSpace;
|
|
1180
|
+
}
|
|
1181
|
+
export interface IEditorScreenSpace {
|
|
1182
|
+
SSAO: boolean;
|
|
1183
|
+
SSAORatio: number;
|
|
1184
|
+
combineRatio: number;
|
|
1185
|
+
totalStrength: number;
|
|
1186
|
+
radius: number;
|
|
1187
|
+
area: number;
|
|
1188
|
+
fallOff: number;
|
|
1189
|
+
baseValue: number;
|
|
1190
|
+
}
|
|
1191
|
+
export interface IEditorAntiAliasing {
|
|
1192
|
+
msaaSamples: number;
|
|
1193
|
+
fxaaEnabled: boolean;
|
|
1194
|
+
fxaaScaling: boolean;
|
|
1195
|
+
fxaaSamples: number;
|
|
1196
|
+
}
|
|
1197
|
+
export interface IEditorDepthOfField {
|
|
1198
|
+
depthOfField: boolean;
|
|
1199
|
+
blurLevel: number;
|
|
1200
|
+
focalStop: number;
|
|
1201
|
+
focalLength: number;
|
|
1202
|
+
focusDistance: number;
|
|
1203
|
+
maxLensSize: number;
|
|
1204
|
+
}
|
|
1205
|
+
export interface IEditorChromaticAberration {
|
|
1206
|
+
aberrationEnabled: boolean;
|
|
1207
|
+
aberrationAmount: number;
|
|
1208
|
+
adaptScaleViewport: boolean;
|
|
1209
|
+
alphaMode: number;
|
|
1210
|
+
alwaysForcePOT: boolean;
|
|
1211
|
+
pixelPerfectMode: boolean;
|
|
1212
|
+
fullscreenViewport: boolean;
|
|
1213
|
+
}
|
|
1214
|
+
export interface IEditorGlowLayer {
|
|
1215
|
+
glowEnabled: boolean;
|
|
1216
|
+
glowIntensity: number;
|
|
1217
|
+
blurKernelSize: number;
|
|
1218
|
+
}
|
|
1219
|
+
export interface IEditorGrainEffect {
|
|
1220
|
+
grainEnabled: boolean;
|
|
1221
|
+
grainAnimated: boolean;
|
|
1222
|
+
grainIntensity: number;
|
|
1223
|
+
adaptScaleViewport: boolean;
|
|
1224
|
+
}
|
|
1225
|
+
export interface IEditorSharpenEffect {
|
|
1226
|
+
sharpenEnabled: boolean;
|
|
1227
|
+
sharpEdgeAmount: number;
|
|
1228
|
+
sharpColorAmount: number;
|
|
1229
|
+
adaptScaleViewport: boolean;
|
|
1230
|
+
}
|
|
1231
|
+
export interface IEditorBloomProcessing {
|
|
1232
|
+
bloomEnabled: boolean;
|
|
1233
|
+
bloomKernel: number;
|
|
1234
|
+
bloomScale: number;
|
|
1235
|
+
bloomWeight: number;
|
|
1236
|
+
bloomThreshold: number;
|
|
1237
|
+
}
|
|
1238
|
+
export interface IEditorColorCurves {
|
|
1239
|
+
curvesEnabled: boolean;
|
|
1240
|
+
globalDen: number;
|
|
1241
|
+
globalExp: number;
|
|
1242
|
+
globalHue: number;
|
|
1243
|
+
globalSat: number;
|
|
1244
|
+
highlightsDen: number;
|
|
1245
|
+
highlightsExp: number;
|
|
1246
|
+
highlightsHue: number;
|
|
1247
|
+
highlightsSat: number;
|
|
1248
|
+
midtonesDen: number;
|
|
1249
|
+
midtonesExp: number;
|
|
1250
|
+
midtonesHue: number;
|
|
1251
|
+
midtonesSat: number;
|
|
1252
|
+
shadowsDen: number;
|
|
1253
|
+
shadowsExp: number;
|
|
1254
|
+
shadowsHue: number;
|
|
1255
|
+
shadowsSat: number;
|
|
1256
|
+
}
|
|
1257
|
+
export interface IEditorImageProcessing {
|
|
1258
|
+
imageProcessing: boolean;
|
|
1259
|
+
imageContrast: number;
|
|
1260
|
+
imageExposure: number;
|
|
1261
|
+
toneMapping: boolean;
|
|
1262
|
+
toneMapType: number;
|
|
1263
|
+
vignetteEnabled: boolean;
|
|
1264
|
+
vignetteBlendMode: number;
|
|
1265
|
+
vignetteCameraFov: number;
|
|
1266
|
+
vignetteStretch: number;
|
|
1267
|
+
vignetteCentreX: number;
|
|
1268
|
+
vignetteCentreY: number;
|
|
1269
|
+
vignetteWeight: number;
|
|
1270
|
+
vignetteColor: IUnityColor;
|
|
1271
|
+
useColorGrading: boolean;
|
|
1272
|
+
setGradingTexture: any;
|
|
1273
|
+
imagingColorCurves: IEditorColorCurves;
|
|
1274
|
+
}
|
|
1275
|
+
export declare class DebugInformation extends ScriptComponent {
|
|
1276
|
+
static GetVersion(): string;
|
|
1277
|
+
private keys;
|
|
1278
|
+
private show;
|
|
1279
|
+
private popup;
|
|
1280
|
+
private views;
|
|
1281
|
+
private xbox;
|
|
1282
|
+
private color;
|
|
1283
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1284
|
+
protected awake(): void;
|
|
1285
|
+
protected start(): void;
|
|
1286
|
+
protected destroy(): void;
|
|
1287
|
+
protected openFullscreen(elem: any): void;
|
|
1288
|
+
protected closeFullscreen(): void;
|
|
1289
|
+
static _RequestFullscreen(element: HTMLElement): void;
|
|
1290
|
+
static _ExitFullscreen(): void;
|
|
1291
|
+
}
|
|
1292
|
+
export declare class AssetExporter extends ScriptComponent {
|
|
1293
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1294
|
+
protected awake(): void;
|
|
1295
|
+
protected start(): void;
|
|
1296
|
+
protected fixed(): void;
|
|
1297
|
+
protected update(): void;
|
|
1298
|
+
protected late(): void;
|
|
1299
|
+
protected after(): void;
|
|
1300
|
+
protected ready(): void;
|
|
1301
|
+
protected destroy(): void;
|
|
1302
|
+
}
|
|
1303
|
+
export declare class AssetPreloader extends ScriptComponent implements IAssetPreloader {
|
|
1304
|
+
private parentMeshes;
|
|
1305
|
+
private importMeshes;
|
|
1306
|
+
private assetContainers;
|
|
1307
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1308
|
+
protected destroy(): void;
|
|
1309
|
+
addPreloaderTasks(assetsManager: PreloadAssetsManager): void;
|
|
1310
|
+
}
|
|
1311
|
+
export declare class NodeMaterialInstance extends ScriptComponent {
|
|
1312
|
+
private nodeMaterialData;
|
|
1313
|
+
private setCustomRootUrl;
|
|
1314
|
+
getMaterialInstance(): BABYLON.NodeMaterial;
|
|
1315
|
+
protected m_nodeMaterial: BABYLON.NodeMaterial;
|
|
1316
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1317
|
+
protected awake(): void;
|
|
1318
|
+
protected destroy(): void;
|
|
1319
|
+
}
|
|
1320
|
+
export declare class NodeMaterialParticle extends ScriptComponent {
|
|
1321
|
+
private nodeMaterialEditor;
|
|
1322
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1323
|
+
protected awake(): void;
|
|
1324
|
+
protected start(): void;
|
|
1325
|
+
protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
|
|
1326
|
+
protected update(): void;
|
|
1327
|
+
protected late(): void;
|
|
1328
|
+
protected after(): void;
|
|
1329
|
+
protected fixed(): void;
|
|
1330
|
+
protected ready(): void;
|
|
1331
|
+
protected destroy(): void;
|
|
1332
|
+
}
|
|
1333
|
+
export declare class NodeMaterialProcess extends ScriptComponent {
|
|
1334
|
+
private nodeMaterialEditor;
|
|
1335
|
+
private numberOfSamples;
|
|
1336
|
+
private samplingMode;
|
|
1337
|
+
private textureType;
|
|
1338
|
+
private textureFormat;
|
|
1339
|
+
private sizeRatio;
|
|
1340
|
+
private resuable;
|
|
1341
|
+
getPostProcess(): BABYLON.PostProcess;
|
|
1342
|
+
protected m_postProcess: BABYLON.PostProcess;
|
|
1343
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1344
|
+
protected start(): void;
|
|
1345
|
+
protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
|
|
1346
|
+
protected destroy(): void;
|
|
1347
|
+
}
|
|
1348
|
+
export declare class NodeMaterialTexture extends ScriptComponent {
|
|
1349
|
+
private nodeMaterialEditor;
|
|
1350
|
+
private textureSize;
|
|
1351
|
+
getProceduralTexture(): BABYLON.ProceduralTexture;
|
|
1352
|
+
protected m_proceduralTexture: BABYLON.ProceduralTexture;
|
|
1353
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1354
|
+
protected start(): void;
|
|
1355
|
+
protected setupNodeMaterial(materialInstance: BABYLON.NodeMaterial): void;
|
|
1356
|
+
protected destroy(): void;
|
|
1357
|
+
}
|
|
1358
|
+
export declare class MobileInputController extends ScriptComponent {
|
|
1359
|
+
static get Instance(): MobileInputController;
|
|
1360
|
+
private static StaticInstance;
|
|
1361
|
+
private styleSheet;
|
|
1362
|
+
private controlType;
|
|
1363
|
+
private parentElement;
|
|
1364
|
+
private maxReadyTimeout;
|
|
1365
|
+
private maxMoveDistance;
|
|
1366
|
+
private maxMoveDeadzone;
|
|
1367
|
+
private uiParentElement;
|
|
1368
|
+
private leftBaseElement;
|
|
1369
|
+
private rightBaseElement;
|
|
1370
|
+
private buttonBaseElement;
|
|
1371
|
+
private leftStickStyle;
|
|
1372
|
+
private rightStickStyle;
|
|
1373
|
+
private leftStickFactor;
|
|
1374
|
+
private rightStickFactor;
|
|
1375
|
+
private invertLeftStickY;
|
|
1376
|
+
private centerLeftJoystick;
|
|
1377
|
+
private enableLeftJoystick;
|
|
1378
|
+
private invertRightStickY;
|
|
1379
|
+
private centerRightJoystick;
|
|
1380
|
+
private enableRightJoystick;
|
|
1381
|
+
private enableMouseAxes;
|
|
1382
|
+
private enableVirtualButtons;
|
|
1383
|
+
private virtualButtonControls;
|
|
1384
|
+
protected m_leftStick: TouchJoystickHandler;
|
|
1385
|
+
protected m_rightStick: TouchJoystickHandler;
|
|
1386
|
+
protected m_mobileDevice: boolean;
|
|
1387
|
+
getLeftStick(): TouchJoystickHandler;
|
|
1388
|
+
getRightStick(): TouchJoystickHandler;
|
|
1389
|
+
getLeftStickEnabled(): boolean;
|
|
1390
|
+
getRightStickEnabled(): boolean;
|
|
1391
|
+
getLeftStickElement(): HTMLDivElement;
|
|
1392
|
+
getRightStickElement(): HTMLDivElement;
|
|
1393
|
+
showLeftStickElement(show: boolean): void;
|
|
1394
|
+
showRightStickElement(show: boolean): void;
|
|
1395
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1396
|
+
protected awake(): void;
|
|
1397
|
+
protected start(): void;
|
|
1398
|
+
protected ready(): void;
|
|
1399
|
+
protected update(): void;
|
|
1400
|
+
protected destroy(): void;
|
|
1401
|
+
protected loadStyleSheet(): void;
|
|
1402
|
+
protected loadHtmlMarkup(): void;
|
|
1403
|
+
protected createHtmlElements(): void;
|
|
1404
|
+
}
|
|
1405
|
+
export declare class FreeCameraTouchJoystickInput implements BABYLON.ICameraInput<BABYLON.FreeCamera> {
|
|
1406
|
+
camera: BABYLON.FreeCamera;
|
|
1407
|
+
controller: BABYLON.Nullable<MobileInputController>;
|
|
1408
|
+
joystickAngularSensibility: number;
|
|
1409
|
+
joystickMoveSensibility: number;
|
|
1410
|
+
deadzoneDelta: number;
|
|
1411
|
+
private _yAxisScale;
|
|
1412
|
+
get invertYAxis(): boolean;
|
|
1413
|
+
set invertYAxis(value: boolean);
|
|
1414
|
+
private LSValues;
|
|
1415
|
+
private RSValues;
|
|
1416
|
+
private _cameraTransform;
|
|
1417
|
+
private _deltaTransform;
|
|
1418
|
+
private _vector3;
|
|
1419
|
+
private _vector2;
|
|
1420
|
+
private _attached;
|
|
1421
|
+
attachControl(): void;
|
|
1422
|
+
detachControl(): void;
|
|
1423
|
+
checkInputs(): void;
|
|
1424
|
+
getClassName(): string;
|
|
1425
|
+
getSimpleName(): string;
|
|
1426
|
+
}
|
|
1427
|
+
export declare class MobileOccludeMaterial extends ScriptComponent {
|
|
1428
|
+
private applyToMaterial;
|
|
1429
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1430
|
+
protected awake(): void;
|
|
1431
|
+
}
|
|
1432
|
+
export declare class MobileShadowMaterial extends ScriptComponent {
|
|
1433
|
+
private createNewMaterial;
|
|
1434
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1435
|
+
protected awake(): void;
|
|
1436
|
+
protected destroy(): void;
|
|
1437
|
+
}
|
|
1438
|
+
export declare class BallSocketJoint extends ScriptComponent {
|
|
1439
|
+
bodyA: BABYLON.TransformNode;
|
|
1440
|
+
bodyB: BABYLON.TransformNode;
|
|
1441
|
+
pivotA: BABYLON.Vector3;
|
|
1442
|
+
pivotB: BABYLON.Vector3;
|
|
1443
|
+
axisA: BABYLON.Vector3;
|
|
1444
|
+
axisB: BABYLON.Vector3;
|
|
1445
|
+
constraint: BABYLON.BallAndSocketConstraint;
|
|
1446
|
+
collisionsEnabled: boolean;
|
|
1447
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1448
|
+
protected awake(): void;
|
|
1449
|
+
protected destroy(): void;
|
|
1450
|
+
}
|
|
1451
|
+
export declare class DistanceJoint extends ScriptComponent {
|
|
1452
|
+
bodyA: BABYLON.TransformNode;
|
|
1453
|
+
bodyB: BABYLON.TransformNode;
|
|
1454
|
+
maxDistance: number;
|
|
1455
|
+
constraint: BABYLON.DistanceConstraint;
|
|
1456
|
+
collisionsEnabled: boolean;
|
|
1457
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1458
|
+
protected awake(): void;
|
|
1459
|
+
protected destroy(): void;
|
|
1460
|
+
}
|
|
1461
|
+
export declare class FixedHingeJoint extends ScriptComponent {
|
|
1462
|
+
bodyA: BABYLON.TransformNode;
|
|
1463
|
+
bodyB: BABYLON.TransformNode;
|
|
1464
|
+
pivotA: BABYLON.Vector3;
|
|
1465
|
+
pivotB: BABYLON.Vector3;
|
|
1466
|
+
constraint: BABYLON.HingeConstraint;
|
|
1467
|
+
collisionsEnabled: boolean;
|
|
1468
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1469
|
+
protected awake(): void;
|
|
1470
|
+
protected destroy(): void;
|
|
1471
|
+
}
|
|
1472
|
+
export declare class LockedJoint extends ScriptComponent {
|
|
1473
|
+
bodyA: BABYLON.TransformNode;
|
|
1474
|
+
bodyB: BABYLON.TransformNode;
|
|
1475
|
+
pivotA: BABYLON.Vector3;
|
|
1476
|
+
pivotB: BABYLON.Vector3;
|
|
1477
|
+
axisA: BABYLON.Vector3;
|
|
1478
|
+
axisB: BABYLON.Vector3;
|
|
1479
|
+
constraint: BABYLON.LockConstraint;
|
|
1480
|
+
collisionsEnabled: boolean;
|
|
1481
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1482
|
+
protected awake(): void;
|
|
1483
|
+
protected destroy(): void;
|
|
1484
|
+
}
|
|
1485
|
+
export declare class PrismaticJoint extends ScriptComponent {
|
|
1486
|
+
bodyA: BABYLON.TransformNode;
|
|
1487
|
+
bodyB: BABYLON.TransformNode;
|
|
1488
|
+
pivotA: BABYLON.Vector3;
|
|
1489
|
+
pivotB: BABYLON.Vector3;
|
|
1490
|
+
axisA: BABYLON.Vector3;
|
|
1491
|
+
axisB: BABYLON.Vector3;
|
|
1492
|
+
constraint: BABYLON.PrismaticConstraint;
|
|
1493
|
+
collisionsEnabled: boolean;
|
|
1494
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1495
|
+
protected awake(): void;
|
|
1496
|
+
protected destroy(): void;
|
|
1497
|
+
}
|
|
1498
|
+
export declare class SixdofJoint extends ScriptComponent {
|
|
1499
|
+
bodyA: BABYLON.TransformNode;
|
|
1500
|
+
bodyB: BABYLON.TransformNode;
|
|
1501
|
+
pivotA: BABYLON.Vector3;
|
|
1502
|
+
pivotB: BABYLON.Vector3;
|
|
1503
|
+
perpAxisA: BABYLON.Vector3;
|
|
1504
|
+
perpAxisB: BABYLON.Vector3;
|
|
1505
|
+
axisLimits: BABYLON.Physics6DoFLimit[];
|
|
1506
|
+
constraint: BABYLON.Physics6DoFConstraint;
|
|
1507
|
+
collisionsEnabled: boolean;
|
|
1508
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1509
|
+
protected awake(): void;
|
|
1510
|
+
protected destroy(): void;
|
|
1511
|
+
}
|
|
1512
|
+
export declare class SliderJoint extends ScriptComponent {
|
|
1513
|
+
bodyA: BABYLON.TransformNode;
|
|
1514
|
+
bodyB: BABYLON.TransformNode;
|
|
1515
|
+
pivotA: BABYLON.Vector3;
|
|
1516
|
+
pivotB: BABYLON.Vector3;
|
|
1517
|
+
axisA: BABYLON.Vector3;
|
|
1518
|
+
axisB: BABYLON.Vector3;
|
|
1519
|
+
constraint: BABYLON.SliderConstraint;
|
|
1520
|
+
collisionsEnabled: boolean;
|
|
1521
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1522
|
+
protected awake(): void;
|
|
1523
|
+
protected destroy(): void;
|
|
1524
|
+
}
|
|
1525
|
+
export declare class RemotePlayerController extends ScriptComponent {
|
|
1526
|
+
updateStateParams: boolean;
|
|
1527
|
+
smoothMotionTime: number;
|
|
1528
|
+
smoothInputVectors: boolean;
|
|
1529
|
+
private animationState;
|
|
1530
|
+
private animationStateParams;
|
|
1531
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1532
|
+
protected awake(): void;
|
|
1533
|
+
protected update(): void;
|
|
1534
|
+
protected destroy(): void;
|
|
1535
|
+
private attachAnimationController;
|
|
1536
|
+
private validateAnimationStateParams;
|
|
1537
|
+
}
|
|
1538
|
+
export declare class StandardPlayerController extends ScriptComponent {
|
|
1539
|
+
static MIN_VERTICAL_VELOCITY: number;
|
|
1540
|
+
static MIN_GROUND_DISTANCE: number;
|
|
1541
|
+
static MIN_MOVE_EPSILON: number;
|
|
1542
|
+
static MIN_TIMER_OFFSET: number;
|
|
1543
|
+
static MIN_SLOPE_LIMIT: number;
|
|
1544
|
+
static PLAYER_HEIGHT: string;
|
|
1545
|
+
enableInput: boolean;
|
|
1546
|
+
attachCamera: boolean;
|
|
1547
|
+
rotateCamera: boolean;
|
|
1548
|
+
mouseWheel: boolean;
|
|
1549
|
+
toggleView: boolean;
|
|
1550
|
+
freeLooking: boolean;
|
|
1551
|
+
requireSprintButton: boolean;
|
|
1552
|
+
gravitationalForce: number;
|
|
1553
|
+
minFallVelocity: number;
|
|
1554
|
+
verticalStepSpeed: number;
|
|
1555
|
+
minStepUpHeight: number;
|
|
1556
|
+
rigidBodyMass: number;
|
|
1557
|
+
airbornTimeout: number;
|
|
1558
|
+
maxAngle: number;
|
|
1559
|
+
speedFactor: number;
|
|
1560
|
+
rootMotion: boolean;
|
|
1561
|
+
moveSpeed: number;
|
|
1562
|
+
walkSpeed: number;
|
|
1563
|
+
lookSpeed: number;
|
|
1564
|
+
jumpSpeed: number;
|
|
1565
|
+
jumpDelay: number;
|
|
1566
|
+
eyesHeight: number;
|
|
1567
|
+
pivotHeight: number;
|
|
1568
|
+
maxDistance: number;
|
|
1569
|
+
scrollSpeed: number;
|
|
1570
|
+
topLookLimit: number;
|
|
1571
|
+
downLookLimit: number;
|
|
1572
|
+
lowTurnSpeed: number;
|
|
1573
|
+
highTurnSpeed: number;
|
|
1574
|
+
smoothDampTime: number;
|
|
1575
|
+
smoothInputVectors: boolean;
|
|
1576
|
+
smoothAcceleration: boolean;
|
|
1577
|
+
accelerationSpeed: number;
|
|
1578
|
+
decelerationSpeed: number;
|
|
1579
|
+
avatarSkinTag: string;
|
|
1580
|
+
climbVolumeTag: string;
|
|
1581
|
+
vaultVolumeTag: string;
|
|
1582
|
+
maxHeightRanges: any;
|
|
1583
|
+
useClimbSystem: boolean;
|
|
1584
|
+
distanceFactor: number;
|
|
1585
|
+
cameraSmoothing: number;
|
|
1586
|
+
cameraCollisions: boolean;
|
|
1587
|
+
inputMagnitude: number;
|
|
1588
|
+
landingEpsilon: number;
|
|
1589
|
+
minimumDistance: number;
|
|
1590
|
+
movementAllowed: boolean;
|
|
1591
|
+
playerInputX: number;
|
|
1592
|
+
playerInputZ: number;
|
|
1593
|
+
playerMouseX: number;
|
|
1594
|
+
playerMouseY: number;
|
|
1595
|
+
runKeyRequired: boolean;
|
|
1596
|
+
buttonRun: number;
|
|
1597
|
+
keyboardRun: number;
|
|
1598
|
+
buttonJump: number;
|
|
1599
|
+
keyboardJump: number;
|
|
1600
|
+
buttonCamera: number;
|
|
1601
|
+
keyboardCamera: number;
|
|
1602
|
+
postNetworkAttributes: boolean;
|
|
1603
|
+
playerNumber: PlayerNumber;
|
|
1604
|
+
boomPosition: BABYLON.Vector3;
|
|
1605
|
+
airbornVelocity: BABYLON.Vector3;
|
|
1606
|
+
movementVelocity: BABYLON.Vector3;
|
|
1607
|
+
targetCameraOffset: BABYLON.Vector3;
|
|
1608
|
+
isAnimationEnabled(): boolean;
|
|
1609
|
+
isRunButtonPressed(): boolean;
|
|
1610
|
+
isJumpButtonPressed(): boolean;
|
|
1611
|
+
getPlayerJumped(): boolean;
|
|
1612
|
+
getPlayerJumping(): boolean;
|
|
1613
|
+
getPlayerFalling(): boolean;
|
|
1614
|
+
getPlayerSliding(): boolean;
|
|
1615
|
+
getPlayerGrounded(): boolean;
|
|
1616
|
+
getFallTriggered(): boolean;
|
|
1617
|
+
getMovementSpeed(): number;
|
|
1618
|
+
getCameraBoomNode(): BABYLON.TransformNode;
|
|
1619
|
+
getCameraTransform(): BABYLON.TransformNode;
|
|
1620
|
+
getAnimationState(): AnimationState;
|
|
1621
|
+
getVerticalVelocity(): number;
|
|
1622
|
+
getCharacterController(): CharacterController;
|
|
1623
|
+
getPlayerLookRotation(): BABYLON.Vector3;
|
|
1624
|
+
getPlayerMoveDirection(): PlayerMoveDirection;
|
|
1625
|
+
getInputMovementVector(): BABYLON.Vector3;
|
|
1626
|
+
getInputMagnitudeValue(): number;
|
|
1627
|
+
getCameraPivotPosition(): BABYLON.Vector3;
|
|
1628
|
+
getCameraPivotRotation(): BABYLON.Quaternion;
|
|
1629
|
+
rayClimbOffset: number;
|
|
1630
|
+
rayClimbLength: number;
|
|
1631
|
+
getClimbContact(): boolean;
|
|
1632
|
+
getClimbContactNode(): BABYLON.TransformNode;
|
|
1633
|
+
getClimbContactPoint(): BABYLON.Vector3;
|
|
1634
|
+
getClimbContactAngle(): number;
|
|
1635
|
+
getClimbContactNormal(): BABYLON.Vector3;
|
|
1636
|
+
getClimbContactDistance(): number;
|
|
1637
|
+
canClimbObstaclePredicate: (action: number) => boolean;
|
|
1638
|
+
rayHeightOffset: number;
|
|
1639
|
+
rayHeightLength: number;
|
|
1640
|
+
getHeightContact(): boolean;
|
|
1641
|
+
getHeightContactNode(): BABYLON.TransformNode;
|
|
1642
|
+
getHeightContactPoint(): BABYLON.Vector3;
|
|
1643
|
+
getHeightContactAngle(): number;
|
|
1644
|
+
getHeightContactNormal(): BABYLON.Vector3;
|
|
1645
|
+
getHeightContactDistance(): number;
|
|
1646
|
+
private abstractMesh;
|
|
1647
|
+
private cameraDistance;
|
|
1648
|
+
private forwardCamera;
|
|
1649
|
+
private avatarRadius;
|
|
1650
|
+
private groundingObject;
|
|
1651
|
+
private groundingCallback;
|
|
1652
|
+
private dollyDirection;
|
|
1653
|
+
private cameraEulers;
|
|
1654
|
+
private rotationEulers;
|
|
1655
|
+
private cameraPivotOffset;
|
|
1656
|
+
private cameraForwardVector;
|
|
1657
|
+
private cameraRightVector;
|
|
1658
|
+
private desiredForwardVector;
|
|
1659
|
+
private desiredRightVector;
|
|
1660
|
+
private lastRotationQuaternion;
|
|
1661
|
+
private scaledCamDirection;
|
|
1662
|
+
private scaledMaxDirection;
|
|
1663
|
+
private parentNodePosition;
|
|
1664
|
+
private maximumCameraPos;
|
|
1665
|
+
private tempWorldPosition;
|
|
1666
|
+
private cameraRaycastShape;
|
|
1667
|
+
private defaultRaycastGroup;
|
|
1668
|
+
private defaultRaycastMask;
|
|
1669
|
+
private cameraRaycastMask;
|
|
1670
|
+
private avatarSkins;
|
|
1671
|
+
private cameraNode;
|
|
1672
|
+
private cameraPivot;
|
|
1673
|
+
private navigationAgent;
|
|
1674
|
+
private characterController;
|
|
1675
|
+
private verticalVelocity;
|
|
1676
|
+
private smoothMotionSpeed;
|
|
1677
|
+
private movementSpeed;
|
|
1678
|
+
private isRunPressed;
|
|
1679
|
+
private isJumpPressed;
|
|
1680
|
+
private isCharacterSliding;
|
|
1681
|
+
private isCharacterFalling;
|
|
1682
|
+
private isCharacterGrounded;
|
|
1683
|
+
private isCharacterFallTriggered;
|
|
1684
|
+
private isCharacterJumpFrame;
|
|
1685
|
+
private isCharacterJumping;
|
|
1686
|
+
private isCharacterLanding;
|
|
1687
|
+
private isCharacterRising;
|
|
1688
|
+
private isCharacterNavigating;
|
|
1689
|
+
private navigationAngularSpeed;
|
|
1690
|
+
private updateStateParams;
|
|
1691
|
+
private animationStateParams;
|
|
1692
|
+
private sphereCollisionShape;
|
|
1693
|
+
private hasGroundedContact;
|
|
1694
|
+
private showDebugColliders;
|
|
1695
|
+
private colliderVisibility;
|
|
1696
|
+
private colliderRenderGroup;
|
|
1697
|
+
private groundCheckDistance;
|
|
1698
|
+
private deltaTime;
|
|
1699
|
+
private minJumpTimer;
|
|
1700
|
+
private delayJumpTimer;
|
|
1701
|
+
private playerControl;
|
|
1702
|
+
private canPlayerJump;
|
|
1703
|
+
private animationState;
|
|
1704
|
+
private lastJumpVelocity;
|
|
1705
|
+
private inputMovementVector;
|
|
1706
|
+
private playerLookRotation;
|
|
1707
|
+
private playerRotationVector;
|
|
1708
|
+
private playerMovementVelocity;
|
|
1709
|
+
private playerRotationQuaternion;
|
|
1710
|
+
private playerMoveDirection;
|
|
1711
|
+
private forwardDirection;
|
|
1712
|
+
private downDirection;
|
|
1713
|
+
private climbContact;
|
|
1714
|
+
private climbContactNode;
|
|
1715
|
+
private climbContactAngle;
|
|
1716
|
+
private climbContactPoint;
|
|
1717
|
+
private climbContactNormal;
|
|
1718
|
+
private climbContactDistance;
|
|
1719
|
+
private climbSensorLine;
|
|
1720
|
+
private offsetClimbRaycastPosition;
|
|
1721
|
+
private startClimbRaycastPosition;
|
|
1722
|
+
private endClimbRaycastPosition;
|
|
1723
|
+
private heightContact;
|
|
1724
|
+
private heightContactNode;
|
|
1725
|
+
private heightContactAngle;
|
|
1726
|
+
private heightContactPoint;
|
|
1727
|
+
private heightContactNormal;
|
|
1728
|
+
private heightContactDistance;
|
|
1729
|
+
private heightSensorLine;
|
|
1730
|
+
private offsetHeightRaycastPosition;
|
|
1731
|
+
private startHeightRaycastPosition;
|
|
1732
|
+
private endHeightRaycastPosition;
|
|
1733
|
+
protected m_velocityOffset: BABYLON.Vector3;
|
|
1734
|
+
protected m_actualVelocity: BABYLON.Vector3;
|
|
1735
|
+
protected m_linearVelocity: BABYLON.Vector3;
|
|
1736
|
+
protected m_lastPosition: BABYLON.Vector3;
|
|
1737
|
+
protected m_positionCenter: BABYLON.Vector3;
|
|
1738
|
+
protected m_scaledVelocity: number;
|
|
1739
|
+
protected playerDrawVelocity: number;
|
|
1740
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
1741
|
+
protected awake(): void;
|
|
1742
|
+
protected start(): void;
|
|
1743
|
+
protected after(): void;
|
|
1744
|
+
protected update(): void;
|
|
1745
|
+
protected destroy(): void;
|
|
1746
|
+
onPreUpdateObservable: any;
|
|
1747
|
+
onBeforeMoveObservable: any;
|
|
1748
|
+
onPostUpdateObservable: any;
|
|
1749
|
+
onPlayerInputObservable: any;
|
|
1750
|
+
onPlayerPositionObservable: any;
|
|
1751
|
+
onUpdateActionObservable: any;
|
|
1752
|
+
private _deltaMotionPosition;
|
|
1753
|
+
getDeltaMotionPosition(): BABYLON.Vector3;
|
|
1754
|
+
private _deltaMotionRotation;
|
|
1755
|
+
getDeltaMotionRotation(): BABYLON.Quaternion;
|
|
1756
|
+
private isPerformingAction;
|
|
1757
|
+
private isRootMotionAction;
|
|
1758
|
+
private isActionInterruptable;
|
|
1759
|
+
private afterActionHandler;
|
|
1760
|
+
private performActionTimer;
|
|
1761
|
+
private performActionNumber;
|
|
1762
|
+
private playerRotationSpeed;
|
|
1763
|
+
private rotatePlayerTowards;
|
|
1764
|
+
private matchStartTime;
|
|
1765
|
+
private matchTargetTime;
|
|
1766
|
+
private matchTargetOffset;
|
|
1767
|
+
private matchTargetHeight;
|
|
1768
|
+
private lockTargetHeight;
|
|
1769
|
+
private lastStartHeight;
|
|
1770
|
+
private lastTargetHeight;
|
|
1771
|
+
private lastTargetNormal;
|
|
1772
|
+
private lastTargetRotation;
|
|
1773
|
+
private lastDeltaPosition;
|
|
1774
|
+
private lastDeltaRotation;
|
|
1775
|
+
getIsPerformingAction(): boolean;
|
|
1776
|
+
getIsRootMotionAction(): boolean;
|
|
1777
|
+
getIsActionInterruptable(): boolean;
|
|
1778
|
+
playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
|
|
1779
|
+
resetActionAnimationState(): void;
|
|
1780
|
+
private updateAnimationActionState;
|
|
1781
|
+
setWorldPosition(x: number, y: number, z: number): void;
|
|
1782
|
+
setPlayerControl(mode: PlayerInputControl): void;
|
|
1783
|
+
togglePlayerControl(): void;
|
|
1784
|
+
private showAvatarSkins;
|
|
1785
|
+
attachPlayerCamera(player: PlayerNumber): void;
|
|
1786
|
+
private ikLeftFootTarget;
|
|
1787
|
+
private ikLeftPoleTarget;
|
|
1788
|
+
private ikRightFootTarget;
|
|
1789
|
+
private ikRightPoleTarget;
|
|
1790
|
+
private abstractSkinMesh;
|
|
1791
|
+
private rootBoneTransform;
|
|
1792
|
+
private leftFootTransform;
|
|
1793
|
+
private leftFootPoleOffset;
|
|
1794
|
+
private leftFootMaxAngle;
|
|
1795
|
+
private rightFootTransform;
|
|
1796
|
+
private rightFootPoleOffset;
|
|
1797
|
+
private rightFootMaxAngle;
|
|
1798
|
+
private ikLeftController;
|
|
1799
|
+
private ikRightController;
|
|
1800
|
+
onAnimatorIK: () => void;
|
|
1801
|
+
getPlayerMesh(): BABYLON.AbstractMesh;
|
|
1802
|
+
getRootHipBone(): BABYLON.Bone;
|
|
1803
|
+
getLeftFootBone(): BABYLON.Bone;
|
|
1804
|
+
getRightFootBone(): BABYLON.Bone;
|
|
1805
|
+
getLeftFootTarget(): BABYLON.Mesh;
|
|
1806
|
+
getRightFootTarget(): BABYLON.Mesh;
|
|
1807
|
+
getLeftFootPoleTarget(): BABYLON.Mesh;
|
|
1808
|
+
getRightFootPoleTarget(): BABYLON.Mesh;
|
|
1809
|
+
getRootBoneTransform(): BABYLON.TransformNode;
|
|
1810
|
+
getLeftFootTransform(): BABYLON.TransformNode;
|
|
1811
|
+
getRightFootTransform(): BABYLON.TransformNode;
|
|
1812
|
+
getLeftFootController(): BABYLON.BoneIKController;
|
|
1813
|
+
getRightFootController(): BABYLON.BoneIKController;
|
|
1814
|
+
isGroundedFootIKActive(): boolean;
|
|
1815
|
+
setupBoneControllers(): void;
|
|
1816
|
+
private attachAnimationController;
|
|
1817
|
+
private updateAnimatorTargetMeshes;
|
|
1818
|
+
enableCharacterController(state: boolean): void;
|
|
1819
|
+
resetPlayerRotation(): void;
|
|
1820
|
+
resetPlayerJumpingState(): void;
|
|
1821
|
+
private awakePlayerController;
|
|
1822
|
+
private startPlayerController;
|
|
1823
|
+
private updatePlayerPosition;
|
|
1824
|
+
private updatePlayerController;
|
|
1825
|
+
private afterPlayerController;
|
|
1826
|
+
private updateCharacterController;
|
|
1827
|
+
private updateCameraController;
|
|
1828
|
+
getBoomArmMaxDistance(): number;
|
|
1829
|
+
setBoomArmMaxDistance(distance: number): void;
|
|
1830
|
+
setSmoothBoomArmLength(length: number, speed: number, updateMaxDistance?: boolean): void;
|
|
1831
|
+
private smoothBoomArmLength;
|
|
1832
|
+
private smoothBoomArmSpeed;
|
|
1833
|
+
private updateSmoothBoomArmLength;
|
|
1834
|
+
private castPhysicsClimbingVolumeRay;
|
|
1835
|
+
private castPhysicsHeightCheckVolumeRay;
|
|
1836
|
+
private getCheckedVerticalVelocity;
|
|
1837
|
+
private destroyPlayerController;
|
|
1838
|
+
private validateAnimationStateParams;
|
|
1839
|
+
}
|
|
1840
|
+
export interface AnimationStateParams {
|
|
1841
|
+
moveDirection: string;
|
|
1842
|
+
inputMagnitude: string;
|
|
1843
|
+
horizontalInput: string;
|
|
1844
|
+
verticalInput: string;
|
|
1845
|
+
mouseXInput: string;
|
|
1846
|
+
mouseYInput: string;
|
|
1847
|
+
heightInput: string;
|
|
1848
|
+
speedInput: string;
|
|
1849
|
+
jumpFrame: string;
|
|
1850
|
+
jumpState: string;
|
|
1851
|
+
actionState: string;
|
|
1852
|
+
fallingState: string;
|
|
1853
|
+
slidingState: string;
|
|
1854
|
+
groundedState: string;
|
|
1855
|
+
}
|
|
1856
|
+
export declare enum PlayerInputControl {
|
|
1857
|
+
FirstPersonStrafing = 0,
|
|
1858
|
+
ThirdPersonStrafing = 1
|
|
1859
|
+
}
|
|
1860
|
+
export declare enum PlayerMoveDirection {
|
|
1861
|
+
Stationary = 0,
|
|
1862
|
+
Forward = 1,
|
|
1863
|
+
ForwardLeft = 2,
|
|
1864
|
+
ForwardRight = 3,
|
|
1865
|
+
Backward = 4,
|
|
1866
|
+
BackwardLeft = 5,
|
|
1867
|
+
BackwardRight = 6,
|
|
1868
|
+
StrafingLeft = 7,
|
|
1869
|
+
StrafingRight = 8
|
|
1870
|
+
}
|
|
1871
|
+
export declare enum ActionAnimationType {
|
|
1872
|
+
Neutral = 0,
|
|
1873
|
+
StepUp = 1,
|
|
1874
|
+
JumpUp = 2,
|
|
1875
|
+
ClimbUp = 3,
|
|
1876
|
+
VaultOver = 4
|
|
1877
|
+
}
|
|
1878
|
+
export declare class ThirdPersonPlayerController extends ScriptComponent {
|
|
1879
|
+
static MIN_VERTICAL_VELOCITY: number;
|
|
1880
|
+
static MIN_GROUND_DISTANCE: number;
|
|
1881
|
+
static MIN_MOVE_EPSILON: number;
|
|
1882
|
+
static MIN_TIMER_OFFSET: number;
|
|
1883
|
+
static MIN_SLOPE_LIMIT: number;
|
|
1884
|
+
static PLAYER_HEIGHT: string;
|
|
1885
|
+
enableInput: boolean;
|
|
1886
|
+
attachCamera: boolean;
|
|
1887
|
+
mouseWheel: boolean;
|
|
1888
|
+
requireSprintButton: boolean;
|
|
1889
|
+
gravitationalForce: number;
|
|
1890
|
+
minFallVelocity: number;
|
|
1891
|
+
verticalStepSpeed: number;
|
|
1892
|
+
minStepUpHeight: number;
|
|
1893
|
+
rigidBodyMass: number;
|
|
1894
|
+
airbornTimeout: number;
|
|
1895
|
+
maxAngle: number;
|
|
1896
|
+
speedFactor: number;
|
|
1897
|
+
rootMotion: boolean;
|
|
1898
|
+
moveSpeed: number;
|
|
1899
|
+
walkSpeed: number;
|
|
1900
|
+
jumpSpeed: number;
|
|
1901
|
+
jumpDelay: number;
|
|
1902
|
+
lowTurnSpeed: number;
|
|
1903
|
+
highTurnSpeed: number;
|
|
1904
|
+
smoothDampTime: number;
|
|
1905
|
+
smoothInputVectors: boolean;
|
|
1906
|
+
smoothAcceleration: boolean;
|
|
1907
|
+
accelerationSpeed: number;
|
|
1908
|
+
decelerationSpeed: number;
|
|
1909
|
+
climbVolumeTag: string;
|
|
1910
|
+
vaultVolumeTag: string;
|
|
1911
|
+
maxHeightRanges: any;
|
|
1912
|
+
useClimbSystem: boolean;
|
|
1913
|
+
distanceFactor: number;
|
|
1914
|
+
inputMagnitude: number;
|
|
1915
|
+
landingEpsilon: number;
|
|
1916
|
+
minimumDistance: number;
|
|
1917
|
+
movementAllowed: boolean;
|
|
1918
|
+
playerInputX: number;
|
|
1919
|
+
playerInputZ: number;
|
|
1920
|
+
playerMouseX: number;
|
|
1921
|
+
playerMouseY: number;
|
|
1922
|
+
runKeyRequired: boolean;
|
|
1923
|
+
buttonRun: number;
|
|
1924
|
+
keyboardRun: number;
|
|
1925
|
+
buttonJump: number;
|
|
1926
|
+
keyboardJump: number;
|
|
1927
|
+
buttonCamera: number;
|
|
1928
|
+
keyboardCamera: number;
|
|
1929
|
+
postNetworkAttributes: boolean;
|
|
1930
|
+
playerNumber: PlayerNumber;
|
|
1931
|
+
airbornVelocity: BABYLON.Vector3;
|
|
1932
|
+
movementVelocity: BABYLON.Vector3;
|
|
1933
|
+
isAnimationEnabled(): boolean;
|
|
1934
|
+
isRunButtonPressed(): boolean;
|
|
1935
|
+
isJumpButtonPressed(): boolean;
|
|
1936
|
+
getPlayerJumped(): boolean;
|
|
1937
|
+
getPlayerJumping(): boolean;
|
|
1938
|
+
getPlayerFalling(): boolean;
|
|
1939
|
+
getPlayerSliding(): boolean;
|
|
1940
|
+
getPlayerGrounded(): boolean;
|
|
1941
|
+
getFallTriggered(): boolean;
|
|
1942
|
+
getMovementSpeed(): number;
|
|
1943
|
+
getAnimationState(): AnimationState;
|
|
1944
|
+
getVerticalVelocity(): number;
|
|
1945
|
+
getCharacterController(): CharacterController;
|
|
1946
|
+
getPlayerLookRotation(): BABYLON.Vector3;
|
|
1947
|
+
getPlayerMoveDirection(): PlayerMoveDirection;
|
|
1948
|
+
getInputMovementVector(): BABYLON.Vector3;
|
|
1949
|
+
getInputMagnitudeValue(): number;
|
|
1950
|
+
rayClimbOffset: number;
|
|
1951
|
+
rayClimbLength: number;
|
|
1952
|
+
getClimbContact(): boolean;
|
|
1953
|
+
getClimbContactNode(): BABYLON.TransformNode;
|
|
1954
|
+
getClimbContactPoint(): BABYLON.Vector3;
|
|
1955
|
+
getClimbContactAngle(): number;
|
|
1956
|
+
getClimbContactNormal(): BABYLON.Vector3;
|
|
1957
|
+
getClimbContactDistance(): number;
|
|
1958
|
+
canClimbObstaclePredicate: (action: number) => boolean;
|
|
1959
|
+
rayHeightOffset: number;
|
|
1960
|
+
rayHeightLength: number;
|
|
1961
|
+
getHeightContact(): boolean;
|
|
1962
|
+
getHeightContactNode(): BABYLON.TransformNode;
|
|
1963
|
+
getHeightContactPoint(): BABYLON.Vector3;
|
|
1964
|
+
getHeightContactAngle(): number;
|
|
1965
|
+
getHeightContactNormal(): BABYLON.Vector3;
|
|
1966
|
+
getHeightContactDistance(): number;
|
|
1967
|
+
private freeCamera;
|
|
1968
|
+
private cameraForwardVector;
|
|
1969
|
+
private cameraRightVector;
|
|
1970
|
+
private desiredForwardVector;
|
|
1971
|
+
private desiredRightVector;
|
|
1972
|
+
private lastRotationQuaternion;
|
|
1973
|
+
private avatarSkins;
|
|
1974
|
+
private avatarRadius;
|
|
1975
|
+
private navigationAgent;
|
|
1976
|
+
private characterController;
|
|
1977
|
+
private verticalVelocity;
|
|
1978
|
+
private smoothMotionSpeed;
|
|
1979
|
+
private movementSpeed;
|
|
1980
|
+
private isRunPressed;
|
|
1981
|
+
private isJumpPressed;
|
|
1982
|
+
private isCharacterSliding;
|
|
1983
|
+
private isCharacterFalling;
|
|
1984
|
+
private isCharacterGrounded;
|
|
1985
|
+
private isCharacterFallTriggered;
|
|
1986
|
+
private isCharacterJumpFrame;
|
|
1987
|
+
private isCharacterJumping;
|
|
1988
|
+
private isCharacterRising;
|
|
1989
|
+
private isCharacterLanding;
|
|
1990
|
+
private isCharacterNavigating;
|
|
1991
|
+
private navigationAngularSpeed;
|
|
1992
|
+
private updateStateParams;
|
|
1993
|
+
private animationStateParams;
|
|
1994
|
+
private sphereCollisionShape;
|
|
1995
|
+
private hasGroundedContact;
|
|
1996
|
+
private showDebugColliders;
|
|
1997
|
+
private colliderVisibility;
|
|
1998
|
+
private colliderRenderGroup;
|
|
1999
|
+
private groundCheckDistance;
|
|
2000
|
+
private deltaTime;
|
|
2001
|
+
private delayJumpTimer;
|
|
2002
|
+
private canPlayerJump;
|
|
2003
|
+
private animationState;
|
|
2004
|
+
private lastJumpVelocity;
|
|
2005
|
+
private inputMovementVector;
|
|
2006
|
+
private playerLookRotation;
|
|
2007
|
+
private playerMovementVelocity;
|
|
2008
|
+
private playerRotationQuaternion;
|
|
2009
|
+
private playerMoveDirection;
|
|
2010
|
+
private forwardDirection;
|
|
2011
|
+
private downDirection;
|
|
2012
|
+
private climbContact;
|
|
2013
|
+
private climbContactNode;
|
|
2014
|
+
private climbContactAngle;
|
|
2015
|
+
private climbContactPoint;
|
|
2016
|
+
private climbContactNormal;
|
|
2017
|
+
private climbContactDistance;
|
|
2018
|
+
private climbSensorLine;
|
|
2019
|
+
private offsetClimbRaycastPosition;
|
|
2020
|
+
private startClimbRaycastPosition;
|
|
2021
|
+
private endClimbRaycastPosition;
|
|
2022
|
+
private heightContact;
|
|
2023
|
+
private heightContactNode;
|
|
2024
|
+
private heightContactAngle;
|
|
2025
|
+
private heightContactPoint;
|
|
2026
|
+
private heightContactNormal;
|
|
2027
|
+
private heightContactDistance;
|
|
2028
|
+
private heightSensorLine;
|
|
2029
|
+
private offsetHeightRaycastPosition;
|
|
2030
|
+
private startHeightRaycastPosition;
|
|
2031
|
+
private endHeightRaycastPosition;
|
|
2032
|
+
protected m_velocityOffset: BABYLON.Vector3;
|
|
2033
|
+
protected m_actualVelocity: BABYLON.Vector3;
|
|
2034
|
+
protected m_linearVelocity: BABYLON.Vector3;
|
|
2035
|
+
protected m_lastPosition: BABYLON.Vector3;
|
|
2036
|
+
protected m_positionCenter: BABYLON.Vector3;
|
|
2037
|
+
protected m_scaledVelocity: number;
|
|
2038
|
+
protected playerDrawVelocity: number;
|
|
2039
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2040
|
+
protected awake(): void;
|
|
2041
|
+
protected start(): void;
|
|
2042
|
+
protected after(): void;
|
|
2043
|
+
protected update(): void;
|
|
2044
|
+
protected destroy(): void;
|
|
2045
|
+
boomPosition: BABYLON.Vector3;
|
|
2046
|
+
onPreUpdateObservable: any;
|
|
2047
|
+
onBeforeMoveObservable: any;
|
|
2048
|
+
onPostUpdateObservable: any;
|
|
2049
|
+
onPlayerInputObservable: any;
|
|
2050
|
+
onPlayerPositionObservable: any;
|
|
2051
|
+
onUpdateActionObservable: any;
|
|
2052
|
+
onAnimationStateObservable: any;
|
|
2053
|
+
private _deltaMotionPosition;
|
|
2054
|
+
getDeltaMotionPosition(): BABYLON.Vector3;
|
|
2055
|
+
private _deltaMotionRotation;
|
|
2056
|
+
getDeltaMotionRotation(): BABYLON.Quaternion;
|
|
2057
|
+
private isPerformingAction;
|
|
2058
|
+
private isRootMotionAction;
|
|
2059
|
+
private isActionInterruptable;
|
|
2060
|
+
private afterActionHandler;
|
|
2061
|
+
private performActionTimer;
|
|
2062
|
+
private performActionNumber;
|
|
2063
|
+
private playerRotationSpeed;
|
|
2064
|
+
private rotatePlayerTowards;
|
|
2065
|
+
private matchStartTime;
|
|
2066
|
+
private matchTargetTime;
|
|
2067
|
+
private matchTargetOffset;
|
|
2068
|
+
private matchTargetHeight;
|
|
2069
|
+
private lockTargetHeight;
|
|
2070
|
+
private lastStartHeight;
|
|
2071
|
+
private lastTargetHeight;
|
|
2072
|
+
private lastTargetNormal;
|
|
2073
|
+
private lastTargetRotation;
|
|
2074
|
+
private lastDeltaPosition;
|
|
2075
|
+
private lastDeltaRotation;
|
|
2076
|
+
getIsPerformingAction(): boolean;
|
|
2077
|
+
getIsRootMotionAction(): boolean;
|
|
2078
|
+
getIsActionInterruptable(): boolean;
|
|
2079
|
+
playActionAnimation(action: number, interruptableAction?: boolean, enableRootMotion?: boolean, afterActionComplete?: () => void): void;
|
|
2080
|
+
resetActionAnimationState(): void;
|
|
2081
|
+
private updateAnimationActionState;
|
|
2082
|
+
setWorldPosition(x: number, y: number, z: number): void;
|
|
2083
|
+
private ikLeftFootTarget;
|
|
2084
|
+
private ikLeftPoleTarget;
|
|
2085
|
+
private ikRightFootTarget;
|
|
2086
|
+
private ikRightPoleTarget;
|
|
2087
|
+
private abstractSkinMesh;
|
|
2088
|
+
private rootBoneTransform;
|
|
2089
|
+
private leftFootTransform;
|
|
2090
|
+
private leftFootPoleOffset;
|
|
2091
|
+
private leftFootMaxAngle;
|
|
2092
|
+
private rightFootTransform;
|
|
2093
|
+
private rightFootPoleOffset;
|
|
2094
|
+
private rightFootMaxAngle;
|
|
2095
|
+
private ikLeftController;
|
|
2096
|
+
private ikRightController;
|
|
2097
|
+
onAnimatorIK: () => void;
|
|
2098
|
+
getPlayerMesh(): BABYLON.AbstractMesh;
|
|
2099
|
+
getRootHipBone(): BABYLON.Bone;
|
|
2100
|
+
getLeftFootBone(): BABYLON.Bone;
|
|
2101
|
+
getRightFootBone(): BABYLON.Bone;
|
|
2102
|
+
getLeftFootTarget(): BABYLON.Mesh;
|
|
2103
|
+
getRightFootTarget(): BABYLON.Mesh;
|
|
2104
|
+
getLeftFootPoleTarget(): BABYLON.Mesh;
|
|
2105
|
+
getRightFootPoleTarget(): BABYLON.Mesh;
|
|
2106
|
+
getRootBoneTransform(): BABYLON.TransformNode;
|
|
2107
|
+
getLeftFootTransform(): BABYLON.TransformNode;
|
|
2108
|
+
getRightFootTransform(): BABYLON.TransformNode;
|
|
2109
|
+
getLeftFootController(): BABYLON.BoneIKController;
|
|
2110
|
+
getRightFootController(): BABYLON.BoneIKController;
|
|
2111
|
+
isGroundedFootIKActive(): boolean;
|
|
2112
|
+
setupBoneControllers(): void;
|
|
2113
|
+
private attachAnimationController;
|
|
2114
|
+
private updateAnimatorTargetMeshes;
|
|
2115
|
+
enableCharacterController(state: boolean): void;
|
|
2116
|
+
resetPlayerJumpingState(): void;
|
|
2117
|
+
private awakePlayerController;
|
|
2118
|
+
private startPlayerController;
|
|
2119
|
+
private updatePlayerPosition;
|
|
2120
|
+
private updatePlayerController;
|
|
2121
|
+
private afterPlayerController;
|
|
2122
|
+
private updateCharacterController;
|
|
2123
|
+
private castPhysicsClimbingVolumeRay;
|
|
2124
|
+
private castPhysicsHeightCheckVolumeRay;
|
|
2125
|
+
private getCheckedVerticalVelocity;
|
|
2126
|
+
private destroyPlayerController;
|
|
2127
|
+
private validateAnimationStateParams;
|
|
2128
|
+
}
|
|
2129
|
+
export declare enum ThirdPersonControl {
|
|
2130
|
+
ThirdPersonTurning = 0,
|
|
2131
|
+
ThirdPersonForward = 1
|
|
2132
|
+
}
|
|
2133
|
+
export declare class FxParticleSystem extends ScriptComponent {
|
|
2134
|
+
getParticleEmitter(): BABYLON.AbstractMesh;
|
|
2135
|
+
getParticleSystem(): BABYLON.ParticleSystem | BABYLON.GPUParticleSystem;
|
|
2136
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2137
|
+
protected m_particleEmitter: BABYLON.AbstractMesh;
|
|
2138
|
+
protected m_particleSystem: BABYLON.ParticleSystem | BABYLON.GPUParticleSystem;
|
|
2139
|
+
protected awake(): void;
|
|
2140
|
+
protected destroy(): void;
|
|
2141
|
+
}
|
|
2142
|
+
export declare class SkyMaterialSystem extends ScriptComponent {
|
|
2143
|
+
private skyfog;
|
|
2144
|
+
private skysize;
|
|
2145
|
+
private probesize;
|
|
2146
|
+
private reflections;
|
|
2147
|
+
private reflectlevel;
|
|
2148
|
+
private skytintcolor;
|
|
2149
|
+
getSkyboxMesh(): BABYLON.AbstractMesh;
|
|
2150
|
+
getSkyMaterial(): BABYLON.SkyMaterial;
|
|
2151
|
+
getReflectionProbe(): BABYLON.ReflectionProbe;
|
|
2152
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2153
|
+
protected awake(): void;
|
|
2154
|
+
protected start(): void;
|
|
2155
|
+
protected update(): void;
|
|
2156
|
+
protected late(): void;
|
|
2157
|
+
protected after(): void;
|
|
2158
|
+
protected destroy(): void;
|
|
2159
|
+
protected m_skyboxMesh: BABYLON.Mesh;
|
|
2160
|
+
protected m_skyMaterial: BABYLON.SkyMaterial;
|
|
2161
|
+
protected m_reflectProbe: BABYLON.ReflectionProbe;
|
|
2162
|
+
protected awakeSkyboxMaterial(): void;
|
|
2163
|
+
protected destroySkyboxMaterial(): void;
|
|
2164
|
+
setSkyboxTintColor(color: BABYLON.Color3): void;
|
|
2165
|
+
}
|
|
2166
|
+
export declare class WaterMaterialSystem extends ScriptComponent {
|
|
2167
|
+
private waterTag;
|
|
2168
|
+
private targetSize;
|
|
2169
|
+
private renderSize;
|
|
2170
|
+
private depthFactor;
|
|
2171
|
+
private reflectSkybox;
|
|
2172
|
+
private subDivisions;
|
|
2173
|
+
private heightOffset;
|
|
2174
|
+
private windDirection;
|
|
2175
|
+
private windForce;
|
|
2176
|
+
private waveSpeed;
|
|
2177
|
+
private waveLength;
|
|
2178
|
+
private waveHeight;
|
|
2179
|
+
private bumpHeight;
|
|
2180
|
+
private bumpSuperimpose;
|
|
2181
|
+
private bumpAffectsReflection;
|
|
2182
|
+
private waterColor;
|
|
2183
|
+
private colorBlendFactor;
|
|
2184
|
+
private waterColor2;
|
|
2185
|
+
private colorBlendFactor2;
|
|
2186
|
+
private disableClipPlane;
|
|
2187
|
+
private fresnelSeparate;
|
|
2188
|
+
getWaterGeometry(): BABYLON.AbstractMesh;
|
|
2189
|
+
getWaterMaterial(): BABYLON.WaterMaterial;
|
|
2190
|
+
protected m_waterGeometry: BABYLON.AbstractMesh;
|
|
2191
|
+
protected m_waterMaterial: BABYLON.WaterMaterial;
|
|
2192
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2193
|
+
protected awake(): void;
|
|
2194
|
+
protected start(): void;
|
|
2195
|
+
protected update(): void;
|
|
2196
|
+
protected late(): void;
|
|
2197
|
+
protected after(): void;
|
|
2198
|
+
protected destroy(): void;
|
|
2199
|
+
}
|
|
2200
|
+
export declare class SnapshotManager extends ScriptComponent {
|
|
2201
|
+
static IsSnapshotRenderingEnabled(): boolean;
|
|
2202
|
+
static EnableSnapshotRendering(): void;
|
|
2203
|
+
static DisableSnapshotRendering(): void;
|
|
2204
|
+
static ResetSnapshotHelper(scene: BABYLON.Scene): void;
|
|
2205
|
+
static GetSnapshotHelper(): BABYLON.SnapshotRenderingHelper;
|
|
2206
|
+
private static _HelperEnabled;
|
|
2207
|
+
private static _SnapshotHelper;
|
|
2208
|
+
private autoStart;
|
|
2209
|
+
private autoUpdate;
|
|
2210
|
+
private delayTimeout;
|
|
2211
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2212
|
+
protected start(): void;
|
|
2213
|
+
protected ready(): void;
|
|
2214
|
+
protected update(): void;
|
|
2215
|
+
protected destroy(): void;
|
|
2216
|
+
}
|
|
2217
|
+
export declare class SnapshotRenderer extends ScriptComponent {
|
|
2218
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2219
|
+
protected start(): void;
|
|
2220
|
+
}
|
|
2221
|
+
export declare class DefaultMuteButton extends ScriptComponent {
|
|
2222
|
+
private static audioSystemInitialized;
|
|
2223
|
+
static IsAudioSystemInitialized(): boolean;
|
|
2224
|
+
private buttonIdentifier;
|
|
2225
|
+
private buttonClassname;
|
|
2226
|
+
private buttonContainer;
|
|
2227
|
+
private buttonElement;
|
|
2228
|
+
private muteIconElement;
|
|
2229
|
+
private mutedIconElement;
|
|
2230
|
+
private muteButtonState;
|
|
2231
|
+
private mutedIconUrl;
|
|
2232
|
+
private muteIconUrl;
|
|
2233
|
+
private toggleEffects;
|
|
2234
|
+
private autoPlayList;
|
|
2235
|
+
private audioSources;
|
|
2236
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2237
|
+
protected awake(): void;
|
|
2238
|
+
protected start(): void;
|
|
2239
|
+
protected ready(): void;
|
|
2240
|
+
protected createMuteButton(): void;
|
|
2241
|
+
protected handleButtonClick(): void;
|
|
2242
|
+
}
|
|
2243
|
+
export declare class SceneSoundSystem extends ScriptComponent {
|
|
2244
|
+
private static _MUSIC;
|
|
2245
|
+
static get MUSIC(): SoundManager;
|
|
2246
|
+
private static _SFX;
|
|
2247
|
+
static get SFX(): SoundManager;
|
|
2248
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2249
|
+
protected start(): void;
|
|
2250
|
+
}
|
|
2251
|
+
export declare class SoundManager extends ScriptComponent {
|
|
2252
|
+
private groupName;
|
|
2253
|
+
private cachedVolume;
|
|
2254
|
+
private volumeProperty;
|
|
2255
|
+
getGroupName(): string;
|
|
2256
|
+
protected m_soundMap: Map<string, AudioSource>;
|
|
2257
|
+
protected m_soundList: AudioSource[];
|
|
2258
|
+
constructor(transform: BABYLON.TransformNode, scene: BABYLON.Scene, properties?: any, alias?: string);
|
|
2259
|
+
protected awake(): void;
|
|
2260
|
+
protected start(): void;
|
|
2261
|
+
protected update(): void;
|
|
2262
|
+
protected destroy(): void;
|
|
2263
|
+
isPlaying(name: string): boolean;
|
|
2264
|
+
isPaused(name: string): boolean;
|
|
2265
|
+
playTrack(name: string, time?: number, offset?: number, length?: number): Promise<boolean>;
|
|
2266
|
+
pauseTrack(name: string): boolean;
|
|
2267
|
+
pauseAllTracks(): void;
|
|
2268
|
+
stopTrack(name: string, time?: number): boolean;
|
|
2269
|
+
stopAllTracks(time?: number): void;
|
|
2270
|
+
muteTrack(name: string, time?: number): boolean;
|
|
2271
|
+
unmuteTrack(name: string, time?: number): boolean;
|
|
2272
|
+
muteAllTracks(time?: number): void;
|
|
2273
|
+
unmuteAllTracks(time?: number): void;
|
|
2274
|
+
setGroupVolume(volume: number, time?: number): void;
|
|
2275
|
+
getAudioSource(name: string): AudioSource;
|
|
2276
|
+
}
|
|
2277
|
+
declare global {
|
|
2278
|
+
interface Window {
|
|
2279
|
+
PROJECT: Record<string, unknown>;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
export {};
|
|
2283
|
+
//# sourceMappingURL=project.d.ts.map
|