fix: non-uniform scaling #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "flxw/quality-godot-first-person:fix/non-uniform-scaling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there,

this pull request changes the crouch behavior. Instead of changing the scale of the Mesh and CollisionShape3D only on one axis, the height of the Mesh/Shape should be changed, as non-uniform scaling is not supported by the Jolt physics engine (and it is also not recommended for CollisionShape3Ds when using the default physics engine, which you can see in the screenshot below)
This error occurs when crouching while using the Jolt physics engine:

The reason why I propose this change directly here instead of changing it only locally for me (as it is bound to an specific addon) is that the Jolt physics engine will be included by default in the engine with Godot 4.4. Also, as this change does not break the crouch behavior with the default Godot physics engine, there is pretty much no reason to not change this to the default behavior.
Looks good, I'll test it on Monday. Thanks for the PR! (It's currently 10:31 PST for me so I need to sleep)