Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour under a 3d camera #4

Closed
Hakukano opened this issue Mar 17, 2023 · 2 comments
Closed

Weird behaviour under a 3d camera #4

Hakukano opened this issue Mar 17, 2023 · 2 comments

Comments

@Hakukano
Copy link

issue.mov

Setup: bevy 0.10 + bevy_sprite3d
Issue: A part of character sprite disappears at some positions

The character and all tiles are individual 3d sprites. The tiles are rotated PI/2 along x axis to make a flat floor. (as shown in the video, the floor is indeed flat)

The character moves along x/z and after passing half of the tile, the lower part of the character disappears. This happens for every single tile.

Other than this issue, everything else works fine, including lighting and shadows.

@Hakukano
Copy link
Author

Thanks to a guy on Discord, I found that this is an issue of the pivot. I should've put the pivots of tiles to (0.5, 0) before the rotation. Case closed.

@FraserLee
Copy link
Owner

Oh that's a weird one. Glad you managed to solve it!

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

No branches or pull requests

2 participants