Commit Graph

159 Commits

Author SHA1 Message Date
d08526393e Bind everything in Vector3i. 2022-08-15 18:31:59 +02:00
feb5c025cf Bind everything in Vector3. 2022-08-15 18:22:55 +02:00
e4aebe1783 Bind everything in Vector2i. 2022-08-15 17:40:36 +02:00
88fbeb4fe4 Bind everything in Vector2. 2022-08-15 17:20:15 +02:00
608ba7826a Ported improvements to Vector2, Vector2i, Vector3, Vector3i, Vector4, and Vector4i from Godot4. 2022-08-15 16:13:21 +02:00
4cc1e75f69 Backported improvements to Quaternion from Godot4. Also bound all eligible methods. 2022-08-15 13:00:32 +02:00
f73af59416 Bound more methods. 2022-08-15 09:34:29 +02:00
007f728438 Bound all eligible transform methods. 2022-08-15 09:20:47 +02:00
5cd44e02d0 Backported the improvements to Transform from Godot4. 2022-08-14 20:35:11 +02:00
e9bb723975 Backported some improvements to Transform2D from Godot4. Also bound all eligible methods. 2022-08-14 19:19:51 +02:00
e4cad690a3 Renamed elements in Transform2D to columns. 2022-08-14 15:37:05 +02:00
d9a8497546 Renamed translate in Transform2D to translate_local. 2022-08-14 14:59:46 +02:00
662c3a7e88 Also did Rect2i. 2022-08-14 14:00:32 +02:00
899ac5cbd8 Backported some improvements to Rect2 from Godot4. Also bound all eligible methods. 2022-08-14 13:15:22 +02:00
7650103ce7 Backported some improvements to Plane from Godot4. Also bound all eligible methods. 2022-08-14 10:52:57 +02:00
c7d2307bd5 Backported some of the improvements to Color from Godot4. Also bound all eligible methods. 2022-08-14 01:08:59 +02:00
170a41ca82 Backported improvements to Basis from Godot4. Also bound all eligible methods. 2022-08-14 00:18:21 +02:00
d9e094ab9a Renamed elements in Basis to rows. 2022-08-13 19:07:59 +02:00
c991043c95 Backported improvements to AABB from Godot 4. Also made sure all eligible methods are bound. 2022-08-13 18:21:54 +02:00
6523457c0f Backported the improvements to the Math class from Godot4. 2022-08-13 16:49:47 +02:00
730bce8587 Renamed Quat to Quaternion for consistency with the other engine math classes. 2022-08-13 15:22:33 +02:00
ec9eb18aaf Backported from Godot4: Make blend animation to use ResetTrack as default value - TokageItLab
860fac4e6f
2022-08-12 17:16:52 +02:00
d1fe0ae433 Backported from Godot4: Fix blend animation to solve TRS track bug & blend order inconsistency - TokageItLab
b06d253920
2022-08-12 16:48:31 +02:00
9d9271b518 Removed the SNAME macro, I'll probably keep static counting support for StringNames though. 2022-08-11 20:22:51 +02:00
22ce231a4e Backported from Godot 4: New and improved IK system for Skeleton3D
This PR and commit adds a new IK system for 3D with the Skeleton3D node
that adds several new IK solvers, as well as additional changes and functionality
for making bone manipulation in Godot easier.
This work was sponsored by GSoC 2020 and TwistedTwigleg
Full list of changes:
* Adds a SkeletonModification3D resource
  * This resource is the base where all IK code is written and executed
* Adds a SkeletonModificationStack3D resource
  * This node oversees the execution of the modifications and acts as a bridge of sorts for the modifications to the Skeleton3D node
* Adds SkeletonModification3D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK
  * Each modification is in it's own file
* Several changes to Skeletons, listed below:
  * Added local_pose_override, which acts just like global_pose_override but keeps bone-child relationships intract
    * So if you move a bone using local_pose_override, all of the bones that are children will also be moved. This is different than global_pose_override, which only affects the individual bone
  * Internally bones keep track of their children. This removes the need of a processing list, makes it possible to update just a few select bones at a time, and makes it easier to traverse down the bone chain
  * Additional functions added for converting from world transform to global poses, global poses to local poses, and all the same changes but backwards (local to global, global to world). This makes it much easier to work with bone transforms without needing to think too much about how to convert them.
  * New signal added, bone_pose_changed, that can be used to tell if a specific bone changed its transform. Needed for BoneAttachment3D
  * Added functions for getting the forward position of a bone
* BoneAttachment3D node refactored heavily
  * BoneAttachment3D node is now completely standalone in its functionality.
    * This makes the code easier and less interconnected, as well as allowing them to function properly without being direct children of Skeleton3D nodes
  * BoneAttachment3D now can be set either using the index or the bone name.
  * BoneAttachment3D nodes can now set the bone transform instead of just following it. This is disabled by default for compatibility
  * BoneAttachment3D now shows a warning when not configured correctly
* Added rotate_to_align function in Basis
* Added class reference documentation for all changes
- TwistedTwigleg
5ffed49907
Note: It still needs some work.
2022-08-10 01:01:38 +02:00
5cd0ea7e60 Fix serializing variants into binary files. 2022-08-09 15:50:30 +02:00
6decccc54f Now Color::clamp() actually has an implementation. 2022-08-08 18:00:42 +02:00
0517f3e462 Fix _scs_create's implementation. 2022-08-08 17:58:43 +02:00
a23d917937 use the proper _NO_DISCARD_ macro. 2022-08-08 17:36:15 +02:00
0b1ae86963 Backported the improvements to StringName from Godot4. 2022-08-08 17:26:23 +02:00
89b1ed9263 Ported contains for String from Godot4. 2022-08-08 16:06:34 +02:00
ffd29397f8 Added clamp() to color from Godot4. 2022-08-08 02:52:30 +02:00
eff5153375 Backported convert_rg_to_ra_rgba8 and convert_ra_rgba8_to_rg from Godot4's Image. 2022-08-08 02:39:21 +02:00
2e30e9f2d6 Ported uri_encode and uri_decode to String from Godot4. 2022-08-08 01:28:25 +02:00
ba00b5bf91 Added char utils header from godot4. 2022-08-08 01:27:57 +02:00
ae7d514cf3 Added set_column to Basis. 2022-08-08 01:18:58 +02:00
4090cb34d7 Backported helper classes to pair.h from Godot4. 2022-08-08 00:05:12 +02:00
37eb131c50 Uncommented hashing methods for the new types. 2022-08-07 23:31:58 +02:00
31603bec29 Added Vector4, Vector4i, and projection classes from Godot4. They are not yet handled via Variants. 2022-08-07 23:30:31 +02:00
705643310e Ported the improvements to the hash funcs from Godot4. 2022-08-07 23:22:21 +02:00
ef5f5f6da4 Fix more includes. 2022-08-07 22:45:50 +02:00
b31e09f884 Added RBMap and EBSet from godot4. 2022-08-07 21:38:22 +02:00
e15630d7f2 Added more helper methods to DirAccessRef and FileAccessRef. Also smaller cleanups. 2022-08-07 21:16:11 +02:00
10e87baee9 Added hash_set from godot4. 2022-08-07 21:08:37 +02:00
9e4ac41f4a Added a new templated WeakRef (WRef) class. 2022-08-04 14:31:00 +02:00
Rémi Verschelde
2ca1470010 File: Re-add support to skip CR (\r) in File::get_as_text
This was removed in #63481, and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.

For performance this is done directly in `String::parse_utf8`.

Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.

Supersedes #63717.

(cherry picked from commit 1418f97c70a5551bdbfeea853cbc479b32ea9e08)
2022-08-02 17:58:32 +02:00
0095078e25 Fixed an another warning on the pi. 2022-08-02 00:22:41 +02:00
c4e7bc1c45 Reused the old unused PROPERTY_HINT_SPRITE_FRAMES as PROPERTY_HINT_BUTTON. It allows you to add buttons to the inspectors. 2022-07-31 00:01:58 +02:00
9f5fb428ab Ported: Add error messages and docs to explain restrictions when calling NetworkedMultiplayerCustom.initialize()
- dsnopek
5eaf83f2d7
2022-07-30 00:49:12 +02:00
641c15f906 Ported: [3.x] HTML5: Add support for Input.vibrate_handheld() - pattlebass
fb7ecc748f
2022-07-30 00:29:14 +02:00