tweak: comment

main
Sara 2024-12-12 11:51:06 +01:00
parent 5d8b312dbd
commit 52cd856992
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void Player::_process(double delta) {
// process rotations
this->process_rotate(delta); // global character rotation
this->process_transform_camera(delta); // camera input rotation
// set the global motion based on model-space motion vector
// convert model-space motion vector to global space
gd::Basis const &model_basis{this->model_node->get_global_basis()};
this->anim_tree->set_walk_speed(gd::Math::max(0.f, model_basis.get_column(2).dot(this->camera_parent->get_basis().get_column(2))));
gd::Vector3 const local_motion{this->anim_tree->get_root_motion_position()};