[Bug/Feature] Tool no longer moves with the camera when in first person in certain cases. #593
Labels
bug
Something isn't working
dev/informed
issue forwarded to dev team for consideration
experimental
issues discovered in experimental builds
type/engine
Issues related to the Game Engine
Describe the bug
On the stable branch (1.5.4) the functions
AttachCameraTo
andSetCameraOffsetTransform
modify the placement of the player's held tool as well as the camera. This is not the case on the experimental branch (1.6.0). While I think this may have been on purpose, the changes do break something I was working on, so here I am.Steps to reproduce the behavior
Expected behavior
I'd expect the tool to move with camera, but it doesn't on the experimental branch. Note that while
SetCameraOffsetTransform
doesn't change the tool's position,SetPlayerCameraOffsetTransform
does. I'm guessing this is on purpose, however I wouldn't be able to use it for my project as I still use AttachCameraTo to stop the player's automatic height adjustment from messing with the camera. See below for what might be a better solution.Environment
Additional context
Possible alternative/better solution:
A
SetPlayerHeight
function in the API to forcefully set the player's height for that frame. It would allow me to work around the issue in my specific use case, while also still making sense and being useful to other people.Here are also some videos I recorded to better demonstrate the behaviour I've been experiencing.
Stable Branch:
https://github.com/Teardown-Issue-Tracker-Maintainers/Teardown-Issue-Tracker/assets/136792894/52bf47dd-8b6e-423c-a7e6-cda1e521e6c2
Experimental Branch:
https://github.com/Teardown-Issue-Tracker-Maintainers/Teardown-Issue-Tracker/assets/136792894/c02a60cb-42c8-4e27-8a2b-067f2c907d2b
The text was updated successfully, but these errors were encountered: