Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Onelio |
I have a Sprite3D with an AnimationTree over a 3D space and wanted it to transition between perspectives according to the camera position so I did this:
# Process perspective
var trans = camera.get_camera_transform()
animationTree.set("parameters/Idle/blend_position", Vector2(trans.origin.x, trans.origin.z))
And this is the result:
There are some issues with the correct set of sprites to use when looking at it from the sides but that I can solve easily. My question is: How can I modify it so the “front” part is not always facing the same direction? I want it to face a Vector3 position given by me.