This is a class for storing part of the DebugDraw3D configuration. More...
#include <config_3d.h>
Public Member Functions | |
void | set_freeze_3d_render (const bool &_state) |
bool | is_freeze_3d_render () const |
void | set_visible_instance_bounds (const bool &_state) |
bool | is_visible_instance_bounds () const |
void | set_use_frustum_culling (const bool &_state) |
bool | is_use_frustum_culling () const |
void | set_culling_distance (const real_t &_distance) |
real_t | get_culling_distance () const |
void | set_force_use_camera_from_scene (const bool &_state) |
bool | is_force_use_camera_from_scene () const |
void | set_geometry_render_layers (const int32_t &_layers) |
int32_t | get_geometry_render_layers () const |
void | set_line_hit_color (const Color &_new_color) |
Color | get_line_hit_color () const |
void | set_line_after_hit_color (const Color &_new_color) |
Color | get_line_after_hit_color () const |
This is a class for storing part of the DebugDraw3D configuration.
You can use DebugDraw3D.get_config to get the current instance of the configuration.
void DebugDraw3DConfig::set_freeze_3d_render | ( | const bool & | _state | ) |
Set whether debug 3D graphics rendering is frozen. This means that previously created geometry will not be updated until set to false or until DebugDraw3D.clear_all is called.
void DebugDraw3DConfig::set_visible_instance_bounds | ( | const bool & | _state | ) |
Set whether the boundaries of instances are displayed. Based on these boundaries, instances are culled if set_use_frustum_culling is activated.
void DebugDraw3DConfig::set_use_frustum_culling | ( | const bool & | _state | ) |
Set whether frustum culling is used.
void DebugDraw3DConfig::set_culling_distance | ( | const real_t & | _distance | ) |
Set the culling distance after which instances will stop being displayed to improve performance.
If set to 0, this parameter will be ignored and instances will be drawn at any distance.
void DebugDraw3DConfig::set_force_use_camera_from_scene | ( | const bool & | _state | ) |
Set to force the use of the scene's default camera.
void DebugDraw3DConfig::set_geometry_render_layers | ( | const int32_t & | _layers | ) |
Set the visibility layer on which the 3D geometry will be drawn. Similar to using VisualInstance3D.layers.
void DebugDraw3DConfig::set_line_hit_color | ( | const Color & | _new_color | ) |
Set the default color for the collision point of DebugDraw3D.draw_line_hit.
void DebugDraw3DConfig::set_line_after_hit_color | ( | const Color & | _new_color | ) |
Set the default color for the line after the collision point of DebugDraw3D.draw_line_hit.