pandemonium_engine/scene/resources
Relintai 521934ff55 Ported from Godot4: New and improved IK system for Skeleton2D
This PR and commit adds a new IK system for 2D with the Skeleton2D node
that adds several new IK solvers, a way to control bones in a Skeleton2D
node similar to that in Skeleton3D. It also adds additional changes
and functionality.
This work was sponsored by GSoC 2020 and TwistedTwigleg.
Full list of changes:
* Adds a SkeletonModifier2D resource
  * This resource is the base where all IK code is written and executed
  * Has a function for clamping angles, since it is so commonly used
  * Modifiers are unique when duplicated so it works with instancing
* Adds a SkeletonModifierStack2D resource
  * This resource manages a series of SkeletonModification2Ds
  * This is what the Skeleton2D directly interfaces with to make IK possible
* Adds SkeletonModifier2D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK
  * Each modification is in its own file
  * There is also a SkeletonModifier2D resource that acts as a stack for using multiple stacks together
* Adds a PhysicalBone2D node
  * Works similar to the PhysicalBone3D node, but uses a RigidBody2D node
* Changes to Skeleton2D listed below:
  * Skeleton2D now holds a single SkeletonModificationStack2D for IK
  * Skeleton2D now has a local_pose_override, which overrides the Bone2D position similar to how the overrides work in Skeleton3D
* Changes to Bone2D listed below:
  * The default_length property has been changed to length. Length is the length of the bone to its child bone node
  * New bone_angle property, which is the angle the bone has to its first child bone node
  * Bone2D caches its transform when not modified by IK for IK interpolation purposes
  * Bone2D draws its own editor gizmo, though this is stated to change in the future
* Changes to CanvasItemEditor listed below:
  * Bone2D gizmo drawing code removed
  * The 2D IK code is removed. Now Bone2D is the only bone system for 2D
* Transform2D now has a looking_at function for rotating to face a position
* Two new node notifications: NOTIFICATION_EDITOR_PRE_SAVE and NOTIFICATION_EDITOR_POST_SAVE
  * These notifications only are called in the editor right before and after saving a scene
  * Needed for not saving the IK position when executing IK in the editor
* Documentation for all the changes listed above.
- TwistedTwigleg
8aa3c2f091
2022-08-18 18:47:30 +02:00
..
default_theme Fix hover being drawn twice inside PopupMenus 2022-07-28 13:42:35 +02:00
animation.cpp Renamed Quat to Quaternion for consistency with the other engine math classes. 2022-08-13 15:22:33 +02:00
animation.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
audio_stream_sample.cpp
audio_stream_sample.h
bit_map.cpp
bit_map.h Moved a few more core classes. 2022-08-17 17:43:49 +02:00
box_shape.cpp
box_shape.h
capsule_shape_2d.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
capsule_shape_2d.h
capsule_shape.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
capsule_shape.h
circle_shape_2d.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
circle_shape_2d.h
concave_polygon_shape_2d.cpp
concave_polygon_shape_2d.h
concave_polygon_shape.cpp
concave_polygon_shape.h
convex_polygon_shape_2d.cpp
convex_polygon_shape_2d.h
convex_polygon_shape.cpp
convex_polygon_shape.h
curve.cpp
curve.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
cylinder_shape.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
cylinder_shape.h
dynamic_font.cpp Fix Label3D oversampling. 2022-07-28 11:46:40 +02:00
dynamic_font.h Moved around more classes in core. 2022-08-17 16:01:01 +02:00
environment.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
environment.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
font.cpp Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
font.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
gradient.cpp Add interpolation modes to Gradient - Linear, Constant, and Cubic interpolation modes - Partial backport of #53321 2022-07-27 18:12:14 +02:00
gradient.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
height_map_shape.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
height_map_shape.h
immediate_mesh.cpp Clear surfaces in ImmediateMesh before adding a new one. 2022-08-11 18:09:33 +02:00
immediate_mesh.h Moved container related classes in core under a new containers directory. 2022-08-17 12:53:49 +02:00
importer_mesh.cpp Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
importer_mesh.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
line_shape_2d.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
line_shape_2d.h
material.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
material.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
mesh_data_tool.cpp
mesh_data_tool.h
mesh.cpp Moved around more classes in core. 2022-08-17 16:01:01 +02:00
mesh.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
multimesh.cpp Renamed elements in Transform2D to columns. 2022-08-14 15:37:05 +02:00
multimesh.h
navigation_mesh.cpp Ported: [3.5] Update NavigationServer backport 2022-07-28 22:34:28 +02:00
navigation_mesh.h
occluder_shape_polygon.cpp
occluder_shape_polygon.h
occluder_shape.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
occluder_shape.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
packed_scene.cpp Moved base input related classes to core/input. 2022-08-17 17:02:24 +02:00
packed_scene.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
particles_material.cpp
particles_material.h Moved around more classes in core. 2022-08-17 16:01:01 +02:00
physics_material.cpp
physics_material.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
plane_shape.cpp
plane_shape.h
polygon_path_finder.cpp Ported: Fix warnings found by Emscripten 3.1.10 2022-07-27 18:39:35 +02:00
polygon_path_finder.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
primitive_meshes.cpp Tweak TextMesh decomposition error message to mention self-intersecting lines 2022-07-28 10:37:18 +02:00
primitive_meshes.h Ported: Backport TextMesh and expose dynamic font vector outlines - bruvzg 2022-07-28 00:01:20 +02:00
ray_shape.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
ray_shape.h
rectangle_shape_2d.cpp
rectangle_shape_2d.h
resource_format_text.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
resource_format_text.h Moved Variant related classes under a variant folder in core. 2022-08-17 13:17:12 +02:00
SCsub
segment_shape_2d.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
segment_shape_2d.h
shader.cpp Now Vector4, Vector4i, Projection, PoolVector4Array, PoolVector4iArray, are built in variant types. Also reordered the Variant's Type enum, renamed _RID in it to RID, fixed a few smaller issues and removed some very old compat code. 2022-08-16 21:55:56 +02:00
shader.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
shape_2d.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
shape_2d.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
shape.cpp
shape.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
skeleton_modification_2d_ccdik.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_ccdik.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_fabrik.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_fabrik.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_jiggle.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_jiggle.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_lookat.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_lookat.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_physicalbones.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_physicalbones.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_stackholder.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_stackholder.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_twoboneik.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d_twoboneik.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_2d.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_3d_ccdik.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_ccdik.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_fabrik.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_fabrik.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_jiggle.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_jiggle.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_lookat.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_lookat.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_stackholder.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_stackholder.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_twoboneik.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d_twoboneik.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_3d.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
skeleton_modification_stack_2d.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_stack_2d.h Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_stack_3d.cpp Ported from Godot4: New and improved IK system for Skeleton2D 2022-08-18 18:47:30 +02:00
skeleton_modification_stack_3d.h Moved container related classes in core under a new containers directory. 2022-08-17 12:53:49 +02:00
skin.cpp
skin.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
sky.cpp
sky.h
sphere_shape.cpp Improve range property hints for various collision shapes 2022-07-25 17:48:29 +02:00
sphere_shape.h
style_box.cpp Add a Skew property to StyleBoxFlat 2022-07-27 13:07:30 +02:00
style_box.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
surface_tool.cpp Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
surface_tool.h
text_file.cpp
text_file.h
texture.cpp Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
texture.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
theme.cpp Moved String and related classes under a string folder in core. 2022-08-17 14:19:55 +02:00
theme.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
video_stream.h
world_2d.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
world_2d.h Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
world.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
world.h Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00