/**************************************************************************/ /* openxr_hand.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "openxr_hand.h" #include "../extensions/openxr_hand_tracking_extension.h" #include "../openxr_api.h" #include "scene/3d/skeleton_3d.h" #include "servers/xr_server.h" void OpenXRHand::_bind_methods() { … } OpenXRHand::OpenXRHand() { … } void OpenXRHand::set_hand(Hands p_hand) { … } OpenXRHand::Hands OpenXRHand::get_hand() const { … } void OpenXRHand::set_hand_skeleton(const NodePath &p_hand_skeleton) { … } void OpenXRHand::set_motion_range(MotionRange p_motion_range) { … } OpenXRHand::MotionRange OpenXRHand::get_motion_range() const { … } NodePath OpenXRHand::get_hand_skeleton() const { … } void OpenXRHand::_set_motion_range() { … } void OpenXRHand::set_skeleton_rig(SkeletonRig p_skeleton_rig) { … } OpenXRHand::SkeletonRig OpenXRHand::get_skeleton_rig() const { … } void OpenXRHand::set_bone_update(BoneUpdate p_bone_update) { … } OpenXRHand::BoneUpdate OpenXRHand::get_bone_update() const { … } Skeleton3D *OpenXRHand::get_skeleton() { … } void OpenXRHand::_get_joint_data() { … } void OpenXRHand::_update_skeleton() { … } void OpenXRHand::_notification(int p_what) { … }