Skip to content

Convert rotation attribute to use degrees instead of radians #128

Description

@bnolan

Radians are great because they're natively supported in three, and I don't even know how we'll manage to do degrees with the euler angles with degrees, but it's really painful typing "0 0 0.707" when you mean '0 0 45". So I recommend we move to degrees (super noob mode).

Maybe, we could have something like css:

rotation="0 0 45deg"
rotation="0 0 0.707rad"
rotation="0 1 0 0.707"

The last one would be quaternion style, with an axis vector and rotation in radians. That one would actually be quite handy for doing rotations that are tricky to type by hand because of the way euler angles are converted (X then Y then Z) to quaternions.

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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