mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 01:43:36 +00:00
Little Bits
-=-=-=-=-=- -Fixed small bugs all around -Added ability to show/hide entire sections of the spatial (3D) tree -WIP new vehicle (not ready yet) based on Bullet
This commit is contained in:
parent
c3e1d7b7c7
commit
2ee4ac183b
56 changed files with 3943 additions and 1757 deletions
|
@ -237,6 +237,14 @@ Transform Skeleton::get_bone_transform(int p_bone) const {
|
|||
return bones[p_bone].pose_global * bones[p_bone].rest_global_inverse;
|
||||
}
|
||||
|
||||
Transform Skeleton::get_bone_global_pose(int p_bone) const {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_bone,bones.size(),Transform());
|
||||
if (dirty)
|
||||
const_cast<Skeleton*>(this)->notification(NOTIFICATION_UPDATE_SKELETON);
|
||||
return bones[p_bone].pose_global;
|
||||
}
|
||||
|
||||
RID Skeleton::get_skeleton() const {
|
||||
|
||||
return skeleton;
|
||||
|
@ -511,6 +519,8 @@ void Skeleton::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("get_bone_pose","bone_idx"),&Skeleton::get_bone_pose);
|
||||
ObjectTypeDB::bind_method(_MD("set_bone_pose","bone_idx","pose"),&Skeleton::set_bone_pose);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_bone_global_pose","bone_idx"),&Skeleton::get_bone_global_pose);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_bone_custom_pose","bone_idx"),&Skeleton::get_bone_custom_pose);
|
||||
ObjectTypeDB::bind_method(_MD("set_bone_custom_pose","bone_idx","custom_pose"),&Skeleton::set_bone_custom_pose);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue