[4.4.1+] 1.7.0
[!WARNING] This release contains a bug that can cause crashes when calling
draw_boxanddraw_capsuleinC#scripts. Please upgrade to 1.7.1.
Native API
The main change in this update is the addition of a native API and bindings for it! 🎉
The request to add this feature (#56) was made quite a while ago, but finally everything is ready for release!
Starting with this update, you can use DebugDraw3D from your C++ code by simply including one file addons/debug_draw_3d/native_api/cpp/dd3d_cpp_api.hpp in your project.
#include "dd3d_cpp_api.hpp"
void DD3DTestCppApiNode::_process(double p_delta) {
{
auto test = DebugDraw3DScopeConfig();
// DD3D GDExtension not loaded
if (!test)
return;
}
DebugDraw3D::draw_text(Vector3(1, 1, 1), String::utf8("Hello Привет こんにちは หวัดดี"));
DebugDraw3D::draw_sphere(Vector3(1, 1, 1), 2, Color(1, 1, 0), 0);
}