Hi buddies
thank you for your help in advance
func process(delta: float) -> void:
var camerapos = getviewport().getcamera().globaltransform.origin
camerapos.y = 0
lookat(camerapos, Vector3.UP)
pass
I used this code for my flat plane in Godot v3.3.4, its working but it has an issue, the problem is when I get close to the sprite on 3D view , my plain rotate in x or z axis,in other word flat sprite will band towards the camera (its because origin of the sprite is facing to the camera on the character head)
another issue is what if I have more than one camera on the scene!
so in this case "Look_at" will chose which one?
About billboard method , its working but it has another issue which is when I`m going behind the flat plain my artwork (sprite) gonna flip or upside down.
I think the solution is, put a 3D position in foot of character and link "look_at" to that point instead of camera on the head.what you guys think?
but how can I find that 3D position on player scene from other sprite scene!?