Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rayohvv |
I have a Player scene with an AnimationTree child, the animation tree has a script to handle its animations, and it has member variables to keep it updated with the player scene.
func send_values_to_anim_tree():
animTree.velocity_length = velocity.length()
animTree.is_crouching = crouching
animTree.camera_pitch = cameraSystem.pitchPivot.rotation.x
animTree.input_strafing = input_dir.x
This function gets called on the player’s physics process,
is there a cleaner and more orthodox way to do this?