Skip to content
This repository was archived by the owner on Jul 3, 2021. It is now read-only.
This repository was archived by the owner on Jul 3, 2021. It is now read-only.

Gymbal lock #45

@StanleyRussian

Description

@StanleyRussian

If you launch example, then physically rotate to the left or to the right, then try to look up or down you will get rotation by wrong axle. As mentioned in title I believe it is due to cymbal lock.
Here's great answer on stack exchange regarding this issue: https://gamedev.stackexchange.com/a/136175

Unfortunately, my knowledge of swift is not sufficient to fix it, but if someone points me to line where the rotation is actually applied to camera I will try to fix it, since I did similar thing for UnityEngine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions