Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance when apply bone transform in get_bone_global_pose() #42681

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions doc/classes/Skeleton3D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@
</return>
<argument index="0" name="bone_idx" type="int">
</argument>
<argument index="1" name="update_skins" type="bool" default="false">
</argument>
<description>
Returns the overall transform of the specified bone, with respect to the skeleton. Being relative to the skeleton frame, this is not the actual "global" transform of the bone.
[b]Note:[/b] If [code]update_skins[/code] is [code]false[/code], the skin will be updated at the end of the thread. If you need only bone global pose, not updating skin will improve performance when calling [method get_bone_global_pose] multiple times in the same thread.
</description>
</method>
<method name="get_bone_name" qualifiers="const">
Expand All @@ -110,6 +113,22 @@
[b]Note:[/b] The parent bone returned will always be less than [code]bone_idx[/code].
</description>
</method>
<method name="get_bone_children">
<return type="int">
</return>
<argument index="0" name="bone_idx" type="int">
</argument>
<description>
Returns the array of bone indexes which is the children of the bone at [code]bone_idx[/code]. If array is empty, then bone has no children.
</description>
</method>
<method name="get_bones_root">
<return type="int">
</return>
<description>
Returns the bone index which is the root of the all bones.
</description>
</method>
<method name="get_bone_pose" qualifiers="const">
<return type="Transform">
</return>
Expand Down
Loading