Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TR1 camera positions #18

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

lahm86
Copy link
Contributor

@lahm86 lahm86 commented Dec 13, 2024

  • Adds support in TR1 for moving fixed cameras
  • Creates injections for Return to Egypt, Temple of the Cat and Natla's Mines

@lahm86 lahm86 self-assigned this Dec 13, 2024
@lahm86 lahm86 requested a review from rr- December 13, 2024 11:47
X = x == -1 ? camera.X : x,
Y = y == -1 ? camera.Y : y,
Z = z == -1 ? camera.Z : z,
Room = roomNum == -1 ? camera.Room : roomNum,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't we be better off calling this function SetCameraPosition? Shift sounds like we're dealing with relative offsets. Additionally I think the defaults for the XYZ arguments should be -1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I started off with the idea of doing shifts but it was getting too complicated to track, so easier to set the position fully. Will update.

@lahm86 lahm86 requested a review from rr- December 13, 2024 12:40
@lahm86 lahm86 merged commit 2b465ba into LostArtefacts:main Dec 13, 2024
@lahm86 lahm86 deleted the tr1-camera-fixes branch December 13, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants