@galacean/engine-design 2.0.0-alpha.47 → 2.0.0-alpha.49
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-design",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.49",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"types": "types/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
20
|
+
"@galacean/engine-math": "2.0.0-alpha.49"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"b:types": "tsc"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Quaternion,
|
|
1
|
+
import { Quaternion, Vector3 } from "@galacean/engine-math";
|
|
2
2
|
import { ICharacterController } from "./ICharacterController";
|
|
3
3
|
import { ICollider } from "./ICollider";
|
|
4
4
|
import { IPhysicsEvents } from "./IPhysicsEvents";
|
|
@@ -48,13 +48,14 @@ export interface IPhysicsScene {
|
|
|
48
48
|
updateEvents(): IPhysicsEvents;
|
|
49
49
|
/**
|
|
50
50
|
* Casts a ray through the Scene and returns the first hit.
|
|
51
|
-
* @param
|
|
51
|
+
* @param origin - The origin of the ray
|
|
52
|
+
* @param direction - The direction of the ray, which must be normalized
|
|
52
53
|
* @param distance - The max distance the ray should check
|
|
53
54
|
* @param onRaycast - The raycast result callback which pre filter result
|
|
54
55
|
* @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
|
|
55
56
|
* @returns Returns True if the ray intersects with a collider, otherwise false
|
|
56
57
|
*/
|
|
57
|
-
raycast(
|
|
58
|
+
raycast(origin: Vector3, direction: Vector3, distance: number, onRaycast: (obj: number) => boolean, outHitResult?: (shapeUniqueID: number, distance: number, point: Vector3, normal: Vector3) => void): boolean;
|
|
58
59
|
/**
|
|
59
60
|
* Casts a box through the scene and returns true if there is any hit.
|
|
60
61
|
*/
|