Skip to content

Commit 7d95963

Browse files
authored
Merge pull request #1864 from INEEDSSD/LayaAir_3.2
fix: Fixed the issue with navigation mesh dynamic obstacles not working.
2 parents ae9980b + bfe91b0 commit 7d95963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layaAir/laya/navigation/Component/NavMeshModifierVolume.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class NavMeshModifierVolume extends Component {
100100
Vector3.scale(this._size, 0.5, tempVec3);
101101
Matrix4x4.createAffineTransformation(this._center, Quaternion.DEFAULT, tempVec3, this._transfrom);
102102
Matrix4x4.multiply((<Sprite3D>this.owner).transform.worldMatrix, this._transfrom, this._transfrom);
103-
let min = tempVec31;
103+
let min = tempVec3;
104104
let max = tempVec31;
105105
min.setValue(-1, -1, -1);
106106
max.setValue(1, 1, 1);
@@ -128,7 +128,7 @@ export class NavMeshModifierVolume extends Component {
128128
element._addCovexVoume(this);
129129
});
130130
this._onWorldMatNeedChange();
131-
(this.owner as Sprite3D).transform.on(Event.TRANSFORM_CHANGED, this, this._onWorldMatNeedChange)
131+
(this.owner as Sprite3D).transform.on(Event.TRANSFORM_CHANGED, this, this._onWorldMatNeedChange);
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)