Skip to content

Added an option to rotate a model in the pitch axis - #29

Merged
iam4722202468 merged 9 commits into
AtlasEngineCa:masterfrom
Lukadcf:patch-1
Oct 30, 2024
Merged

iam4722202468 merged 9 commits into
AtlasEngineCa:masterfrom
Lukadcf:patch-1

Conversation

@Lukadcf

@Lukadcf Lukadcf commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

I also tried to make it so a model spawns with the pitch rotation from the Pos in init()

Because right now it has to do a rotating animation which looks bad because I need a model to spawn with the pitch and yaw from the player but I honestly have no idea how quaternion or euler works.

I would really appreciate if you could add this for me, as it would save me a lot of time trying to figure it out myself

Put the yaw and pitch from params into the stand.setView so people can rotate singular bones if they want. (It used this.getGlobalRotation before)

Also normalized the pitch but without +180 because it would reverse from how pitch normally works.
@iam4722202468
iam4722202468 merged commit 8b6326c into AtlasEngineCa:master Oct 30, 2024
iam4722202468 pushed a commit that referenced this pull request Aug 2, 2026
* Added pitch param to setGlobalRotation

Also normalized the pitch but without +180 because it would reverse from how pitch normally works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants