Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attached light entities are now correctly parented to the main entity, and their attachment offset is encoded into the attached entity's localToParent() matrix. Some changes were required to Light which has previously always assumed that its "origin" key IS the light position - we now transform the local origin by localToWorld() which takes into account both the "origin" key and any transformation applied to the light entity or its parent. Attached lights are now appearing in the correct position and tests pass, but the attached light does not move when the parent entity is dragged.
- Loading branch information
Matthew Mott
committed
Feb 9, 2021
1 parent
3b48627
commit affe686
Showing
4 changed files
with
108 additions
and
17 deletions.
There are no files selected for viewing
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
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