godot-cpp
godot-cpp copied to clipboard
C++ bindings for the Godot script API
First of all, sorry for no stack trace: this is reproducible only with `release` builds for some reason... Here's my code: ```cpp // goapplanner.cpp void GOAPPlanner::initialize(Array actions) { Godot::print(Object::cast_to(actions[0])->get("name").operator String());...
This PR updates Basis/Transform3D/Quaternion to match the engine. I updated all 3 at once because their changes are codependent on each other, so we can't just update one.
The engine has a lot of static helper methods on Variant, e.g: ```c++ static bool has_builtin_method(Variant::Type p_type, const StringName &p_method); static ValidatedBuiltInMethod get_validated_builtin_method(Variant::Type p_type, const StringName &p_method); static PTRBuiltInMethod get_ptr_builtin_method(Variant::Type...
This PR updates godot-cpp with recent changes to Vector2/2i/3/3i/4/4i in the engine. Draft because this tentatively includes https://github.com/godotengine/godot/pull/66133 and https://github.com/godotengine/godot/pull/66138 but we should wait for the decision on those before...
With GodotCpp `master` branch. Simple example: ```cpp class TestNode : public godot::Node { GDCLASS(TestNode, godot::Node) public: void _ready() override; private: static void _bind_methods(); }; class DerivedNode : public TestNode {...
Hi, I stumbled upon #802 - I wanted to call Callable::call from GDExtension, but realized all varargs methods were not generated. Digging a bit, I saw that the deeper problem...
If my understanding is correct, the current implementation of `memnew_arr_template` and `memdelete_arr` could lead to heap corruption. https://github.com/godotengine/godot-cpp/blob/be7ed4c775243b85e7ac082c1556b28026b7e5ae/include/godot_cpp/core/memory.hpp#L142-L153 Line 146 `*(mem - 1) = p_elements; ` assumes that godot-cpp version...
Depends on https://github.com/godotengine/godot/pull/65817
### Godot version v4.0.alpha.custom_build [7355dfb] godot-cpp master [8ba1c05] ### System information Linux 64-bit (Solus), also reproduced on Windows 10 64-bit Export templates: Linux x64 release, Windows x64 release ### Issue...