Skip to content

Commit

Permalink
fix(transform): fix wrong localRotQuat
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed May 30, 2024
1 parent 5197317 commit 8c5e2b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ export class Transform extends ComponentBase {
* The transformation property of the object relative to the parent, stored in the from of a quaternion
*/
public get localRotQuat(): Quaternion {
if (this.localChange) {
this.updateWorldMatrix();
}
return this._localRotQuat;
}

Expand Down

0 comments on commit 8c5e2b3

Please sign in to comment.