[SOLVED] Sprite3D.look_at() resets sprite size?!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Emilio Moretti

Hi, so… I created an animated billboard sprite. nothing fancy, it works OK and it looks good when it’s in editor mode, BUT the texture looks VERY small when I hit play.

Check the obvious differences:

I can make the texture not lose the size by commenting out this line:

camera = get_node('../Camera')
character = get_node('Sprite3D')
character.look_at(Vector3(camera.global_transform.origin.x,character.global_transform.origin.y,camera.global_transform.origin.z), Vector3(0,1,0))

The problem is… I need the Sprite 3D To always face at the camera. I don’t know why my texture is being resized like that

:bust_in_silhouette: Reply From: volzhs

The fix is merged to master branch.

it will be fixed with godot 3.2, but sure about 3.1.x

Thank you very much. I though I was doing something wrong. I’ll wait for the fix then.

Emilio Moretti | 2019-05-09 16:55