@galacean/engine-core 1.6.0-beta.0 → 1.6.0-beta.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/dist/main.js +106 -72
- package/dist/main.js.map +1 -1
- package/dist/module.js +106 -72
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/physics/PhysicsScene.d.ts +116 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "1.6.0-beta.
|
|
21
|
+
"@galacean/engine-math": "1.6.0-beta.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "1.6.0-beta.
|
|
24
|
+
"@galacean/engine-design": "1.6.0-beta.1"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
|
@@ -91,6 +91,42 @@ export declare class PhysicsScene {
|
|
|
91
91
|
* @returns Returns True if the ray intersects with a collider, otherwise false.
|
|
92
92
|
*/
|
|
93
93
|
raycast(ray: Ray, distance: number, layerMask: Layer, outHitResult: HitResult): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Casts a box through the Scene and returns true if there is any hit.
|
|
96
|
+
* @param center - The center of the box
|
|
97
|
+
* @param halfExtents - Half the size of the box in each dimension
|
|
98
|
+
* @param direction - The direction to sweep along
|
|
99
|
+
* @returns Returns true if the box intersects with any collider, otherwise false
|
|
100
|
+
*/
|
|
101
|
+
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Casts a box through the Scene and returns true if there is any hit.
|
|
104
|
+
* @param center - The center of the box
|
|
105
|
+
* @param halfExtents - Half the size of the box in each dimension
|
|
106
|
+
* @param direction - The direction to sweep along
|
|
107
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
108
|
+
* @returns Returns true if the box intersects with any collider, otherwise false
|
|
109
|
+
*/
|
|
110
|
+
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3, outHitResult: HitResult): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Casts a box through the Scene and returns true if there is any hit.
|
|
113
|
+
* @param center - The center of the box
|
|
114
|
+
* @param halfExtents - Half the size of the box in each dimension
|
|
115
|
+
* @param direction - The direction to sweep along
|
|
116
|
+
* @param distance - The max distance to sweep
|
|
117
|
+
* @returns Returns true if the box intersects with any collider, otherwise false
|
|
118
|
+
*/
|
|
119
|
+
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3, distance: number): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Casts a box through the Scene and returns true if there is any hit.
|
|
122
|
+
* @param center - The center of the box
|
|
123
|
+
* @param halfExtents - Half the size of the box in each dimension
|
|
124
|
+
* @param direction - The direction to sweep along
|
|
125
|
+
* @param distance - The max distance to sweep
|
|
126
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
127
|
+
* @returns Returns true if the box intersects with any collider, otherwise false
|
|
128
|
+
*/
|
|
129
|
+
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3, distance: number, outHitResult: HitResult): boolean;
|
|
94
130
|
/**
|
|
95
131
|
* Casts a box through the Scene and returns true if there is any hit.
|
|
96
132
|
* @param center - The center of the box
|
|
@@ -102,7 +138,43 @@ export declare class PhysicsScene {
|
|
|
102
138
|
* @param outHitResult - Optional HitResult object to store detailed hit information
|
|
103
139
|
* @returns Returns true if the box intersects with any collider, otherwise false
|
|
104
140
|
*/
|
|
105
|
-
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3, orientation
|
|
141
|
+
boxCast(center: Vector3, halfExtents: Vector3, direction: Vector3, orientation: Quaternion, distance: number, layerMask: Layer, outHitResult?: HitResult): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Casts a sphere through the Scene and returns true if there is any hit.
|
|
144
|
+
* @param center - The center of the sphere
|
|
145
|
+
* @param radius - The radius of the sphere
|
|
146
|
+
* @param direction - The direction to sweep along
|
|
147
|
+
* @returns Returns true if the sphere intersects with any collider, otherwise false
|
|
148
|
+
*/
|
|
149
|
+
sphereCast(center: Vector3, radius: number, direction: Vector3): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Casts a sphere through the Scene and returns true if there is any hit.
|
|
152
|
+
* @param center - The center of the sphere
|
|
153
|
+
* @param radius - The radius of the sphere
|
|
154
|
+
* @param direction - The direction to sweep along
|
|
155
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
156
|
+
* @returns Returns true if the sphere intersects with any collider, otherwise false
|
|
157
|
+
*/
|
|
158
|
+
sphereCast(center: Vector3, radius: number, direction: Vector3, outHitResult: HitResult): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Casts a sphere through the Scene and returns true if there is any hit.
|
|
161
|
+
* @param center - The center of the sphere
|
|
162
|
+
* @param radius - The radius of the sphere
|
|
163
|
+
* @param direction - The direction to sweep along
|
|
164
|
+
* @param distance - The max distance to sweep
|
|
165
|
+
* @returns Returns true if the sphere intersects with any collider, otherwise false
|
|
166
|
+
*/
|
|
167
|
+
sphereCast(center: Vector3, radius: number, direction: Vector3, distance: number): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Casts a sphere through the Scene and returns true if there is any hit.
|
|
170
|
+
* @param center - The center of the sphere
|
|
171
|
+
* @param radius - The radius of the sphere
|
|
172
|
+
* @param direction - The direction to sweep along
|
|
173
|
+
* @param distance - The max distance to sweep
|
|
174
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
175
|
+
* @returns Returns true if the sphere intersects with any collider, otherwise false
|
|
176
|
+
*/
|
|
177
|
+
sphereCast(center: Vector3, radius: number, direction: Vector3, distance: number, outHitResult: HitResult): boolean;
|
|
106
178
|
/**
|
|
107
179
|
* Casts a sphere through the Scene and returns true if there is any hit.
|
|
108
180
|
* @param center - The center of the sphere
|
|
@@ -111,9 +183,49 @@ export declare class PhysicsScene {
|
|
|
111
183
|
* @param distance - The max distance to sweep. @defaultValue `Number.MAX_VALUE`
|
|
112
184
|
* @param layerMask - Layer mask that is used to selectively ignore Colliders when sweeping. @defaultValue `Layer.Everything`
|
|
113
185
|
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
114
|
-
* @returns Returns
|
|
186
|
+
* @returns Returns true if the sphere intersects with any collider, otherwise false
|
|
187
|
+
*/
|
|
188
|
+
sphereCast(center: Vector3, radius: number, direction: Vector3, distance: number, layerMask: Layer, outHitResult?: HitResult): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Casts a capsule through the Scene and returns true if there is any hit.
|
|
191
|
+
* @param center - The center of the capsule
|
|
192
|
+
* @param radius - The radius of the capsule
|
|
193
|
+
* @param height - The height of the capsule
|
|
194
|
+
* @param direction - The direction to sweep along
|
|
195
|
+
* @returns Returns true if the capsule intersects with any collider, otherwise false
|
|
196
|
+
*/
|
|
197
|
+
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Casts a capsule through the Scene and returns true if there is any hit.
|
|
200
|
+
* @param center - The center of the capsule
|
|
201
|
+
* @param radius - The radius of the capsule
|
|
202
|
+
* @param height - The height of the capsule
|
|
203
|
+
* @param direction - The direction to sweep along
|
|
204
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
205
|
+
* @returns Returns true if the capsule intersects with any collider, otherwise false
|
|
206
|
+
*/
|
|
207
|
+
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3, outHitResult: HitResult): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Casts a capsule through the Scene and returns true if there is any hit.
|
|
210
|
+
* @param center - The center of the capsule
|
|
211
|
+
* @param radius - The radius of the capsule
|
|
212
|
+
* @param height - The height of the capsule
|
|
213
|
+
* @param direction - The direction to sweep along
|
|
214
|
+
* @param distance - The max distance to sweep
|
|
215
|
+
* @returns Returns true if the capsule intersects with any collider, otherwise false
|
|
216
|
+
*/
|
|
217
|
+
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3, distance: number): boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Casts a capsule through the Scene and returns true if there is any hit.
|
|
220
|
+
* @param center - The center of the capsule
|
|
221
|
+
* @param radius - The radius of the capsule
|
|
222
|
+
* @param height - The height of the capsule
|
|
223
|
+
* @param direction - The direction to sweep along
|
|
224
|
+
* @param distance - The max distance to sweep
|
|
225
|
+
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
226
|
+
* @returns Returns true if the capsule intersects with any collider, otherwise false
|
|
115
227
|
*/
|
|
116
|
-
|
|
228
|
+
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3, distance: number, outHitResult: HitResult): boolean;
|
|
117
229
|
/**
|
|
118
230
|
* Casts a capsule through the Scene and returns true if there is any hit.
|
|
119
231
|
* @param center - The center of the capsule
|
|
@@ -126,7 +238,7 @@ export declare class PhysicsScene {
|
|
|
126
238
|
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
127
239
|
* @returns Returns True if the capsule intersects with any collider, otherwise false
|
|
128
240
|
*/
|
|
129
|
-
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3, orientation
|
|
241
|
+
capsuleCast(center: Vector3, radius: number, height: number, direction: Vector3, orientation: Quaternion, distance: number, layerMask: Layer, outHitResult?: HitResult): boolean;
|
|
130
242
|
/**
|
|
131
243
|
* Get all colliders that overlap with a box in the scene.
|
|
132
244
|
* @param center - The center of the box
|