Repository navigation
Make the FNAF creatures face the office when themed - #1147
Merged
Merged
Conversation
The creatures were turned by the Z rotation of their object (-90). A theme model replaces that rotation with its own, so every theme drew them facing sideways or away. Each instance now carries the whole rotation instead (its angle, and its tilt recomputed for the new angle): the placeholders look the same, and theme models face the office like them.
Contributor
Preview the game(s) changed or added in this Pull RequestThis is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two creatures of the FNAF starter were turned by the Z rotation of their object (
rotationZ: -90). A theme model replaces the object's rotation with its own, so in every theme the creatures faced sideways or away from the office.Each instance now carries the whole rotation instead, and the object's
rotationZis 0:Rz(angle)·Ry·Rxcomposed with the object's former Z rotation, then decomposed again).The placeholders are drawn exactly as before, and theme models now face the office. Nothing in the events turns the creatures: they are shown and hidden at their placed positions, so the instances are the whole fix.
This is the same mistake fixed for the haunted house monsters in #1146, whose README change adds the rule (turn a mapped model with the angle of its instances, never with the rotation of its object).
Testing
jest scripts/passes.Generated by Claude Code