-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use @wowserhq/[email protected] with updated Matrix4 and Vector3 (#12)
- Loading branch information
1 parent
c7a0a11
commit 8290732
Showing
5 changed files
with
9 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
import math from '@wowserhq/math'; | ||
|
||
class Matrix4 extends math.Matrix4 { | ||
// TODO: Remove this once new package is published | ||
translate(move) { | ||
this[12] = this[8] * move[2] + this[4] * move[1] + this[0] * move[0] + this[12]; | ||
this[13] = this[9] * move[2] + this[5] * move[1] + this[1] * move[0] + this[13]; | ||
this[14] = this[10] * move[2] + this[6] * move[1] + this[2] * move[0] + this[14]; | ||
return this; | ||
} | ||
} | ||
|
||
export default Matrix4; | ||
export default math.Matrix4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters