Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

3D is wonky and needs redone. #3

@JakeWharton

Description

@JakeWharton

The 3D implementation is fairly wonky as a result from being iterated on rapidly rather than thought out initially. On the rotation extremes, you can clearly see that the layers are being translated along the rotated x/y axes to perceive z-axis movement. While this creates visual separation that looks like spacing, it makes the layer's appear smaller. We need true 3D manipulation where the layers are rotated with the model and moved along the true z-axis.

Note: It's important that the model be perfectly flat when viewed from straight on. Otherwise, the z-axis spacing would cause perceived sizes to be wrong. That is, a control that's a few levels up would appear much larger than if it were on the "ground" layer. This is honored now by scaling the x/y translation by the rotation percentage. For example, a 30 degree rotation is 50% of the max therefore we only separate the layers by 50% of their spacing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions