@galacean/engine 1.1.0-beta.47 → 1.1.0-beta.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/dist/browser.js +8 -4
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -19257,7 +19257,9 @@
|
|
|
19257
19257
|
};
|
|
19258
19258
|
if (hitResult != undefined) {
|
|
19259
19259
|
var result = this._nativePhysicsScene.raycast(ray, distance, onRaycast, function(idx, distance, position, normal) {
|
|
19260
|
-
|
|
19260
|
+
var hitShape = _this._scene.engine._physicalObjectsMap[idx];
|
|
19261
|
+
hitResult.entity = hitShape._collider.entity;
|
|
19262
|
+
hitResult.shape = hitShape;
|
|
19261
19263
|
hitResult.distance = distance;
|
|
19262
19264
|
hitResult.normal.copyFrom(normal);
|
|
19263
19265
|
hitResult.point.copyFrom(position);
|
|
@@ -19266,6 +19268,7 @@
|
|
|
19266
19268
|
return true;
|
|
19267
19269
|
} else {
|
|
19268
19270
|
hitResult.entity = null;
|
|
19271
|
+
hitResult.shape = null;
|
|
19269
19272
|
hitResult.distance = 0;
|
|
19270
19273
|
hitResult.point.set(0, 0, 0);
|
|
19271
19274
|
hitResult.normal.set(0, 0, 0);
|
|
@@ -19923,6 +19926,7 @@
|
|
|
19923
19926
|
/** The distance from the ray's origin to the impact point. */ this.distance = 0;
|
|
19924
19927
|
/** The impact point in world space where the ray hit the collider. */ this.point = new Vector3();
|
|
19925
19928
|
/** The normal of the surface the ray hit. */ this.normal = new Vector3();
|
|
19929
|
+
/** The shape of the collider that was hit. */ this.shape = null;
|
|
19926
19930
|
};
|
|
19927
19931
|
/**
|
|
19928
19932
|
* Describes how physics materials of the colliding objects are combined.
|
|
@@ -26713,7 +26717,7 @@
|
|
|
26713
26717
|
}
|
|
26714
26718
|
// make suer from the same renderer.
|
|
26715
26719
|
if (componentA.instanceId === componentB.instanceId) {
|
|
26716
|
-
return dataA.material._priority - dataB.material._priority
|
|
26720
|
+
return dataA.material._priority - dataB.material._priority;
|
|
26717
26721
|
} else {
|
|
26718
26722
|
var distanceDiff = componentA._distanceForSort - componentB._distanceForSort;
|
|
26719
26723
|
if (distanceDiff === 0) {
|
|
@@ -26736,7 +26740,7 @@
|
|
|
26736
26740
|
}
|
|
26737
26741
|
// make suer from the same renderer.
|
|
26738
26742
|
if (componentA.instanceId === componentB.instanceId) {
|
|
26739
|
-
return dataA.material._priority - dataB.material._priority
|
|
26743
|
+
return dataA.material._priority - dataB.material._priority;
|
|
26740
26744
|
} else {
|
|
26741
26745
|
var distanceDiff = componentB._distanceForSort - componentA._distanceForSort;
|
|
26742
26746
|
if (distanceDiff === 0) {
|
|
@@ -44093,7 +44097,7 @@
|
|
|
44093
44097
|
], GALACEAN_animation_event);
|
|
44094
44098
|
|
|
44095
44099
|
//@ts-ignore
|
|
44096
|
-
var version = "1.1.0-beta.
|
|
44100
|
+
var version = "1.1.0-beta.49";
|
|
44097
44101
|
console.log("Galacean engine version: " + version);
|
|
44098
44102
|
for(var key in CoreObjects){
|
|
44099
44103
|
Loader.registerClass(key, CoreObjects[key]);
|