Skip to content

Dragon icon preview rotation bug - #3640

Closed
tcm390 wants to merge 1 commit into
masterfrom
tcm-dragon-rotation-bug
Closed

Dragon icon preview rotation bug#3640
tcm390 wants to merge 1 commit into
masterfrom
tcm-dragon-rotation-bug

Conversation

@tcm390

@tcm390 tcm390 commented Aug 16, 2022

Copy link
Copy Markdown
Contributor

In fitCameraToBoundingBox function, we set the direction according to the camera position and bounding box center. So I think we should also set the camera position based on the bounding box center in object-spriter.js

app/util.js

Line 720 in 0f2afad

const direction = center

related:
#3501

related PR (No previews for bow bug)
webaverse/bow#11

Result:

Webaverse.-.Google.Chrome.2022-08-15.21-03-35.mp4
Webaverse.-.Google.Chrome.2022-08-15.21-04-28.mp4
Webaverse.-.Google.Chrome.2022-08-15.21-05-17.mp4

@zenkale

zenkale commented Aug 19, 2022

Copy link
Copy Markdown

Looks good to me. Dragon preview is working fine.

@avaer avaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, I think we can merge it upstream.

@avaer

avaer commented Aug 20, 2022

Copy link
Copy Markdown
Contributor

Also this should not be related to the dragon -- it should be a fix for all apps.

@avaer

avaer commented Aug 21, 2022

Copy link
Copy Markdown
Contributor

Merged upstream.

@avaer avaer closed this Aug 21, 2022
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.

4 participants