diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-10 11:28:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 11:28:12 +0200 |
commit | 16d73fefdb0286f58b9cba86faeaf9155484d94b (patch) | |
tree | c675943a2083cbde012e459f785c8c0c44e09392 /editor | |
parent | 8b960a2d2b456b98efabd736e4db776580a5f846 (diff) | |
parent | 9f3ae0adcd734a16c299cd0f023212478b3960d3 (diff) |
Merge pull request #50682 from aaronfranke/basis-looking-at
Move code for looking_at to Basis
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/skeleton_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/skeleton_3d_editor_plugin.cpp b/editor/plugins/skeleton_3d_editor_plugin.cpp index 4202d8b611..3de2ffc137 100644 --- a/editor/plugins/skeleton_3d_editor_plugin.cpp +++ b/editor/plugins/skeleton_3d_editor_plugin.cpp @@ -397,7 +397,7 @@ PhysicalBone3D *Skeleton3DEditor::create_physical_bone(int bone_id, int bone_chi bone_shape->set_transform(capsule_transform); Transform3D body_transform; - body_transform.set_look_at(Vector3(0, 0, 0), child_rest.origin); + body_transform.basis = Basis::looking_at(child_rest.origin); body_transform.origin = body_transform.basis.xform(Vector3(0, 0, -half_height)); Transform3D joint_transform; |