mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
committed by
Rémi Verschelde
parent
b7fbfc2776
commit
596bf6bdaa
@@ -636,7 +636,7 @@ void Polygon2D::_bind_methods() {
|
||||
ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR2_ARRAY, "uv"), "set_uv", "get_uv");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::POOL_COLOR_ARRAY, "vertex_colors"), "set_vertex_colors", "get_vertex_colors");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "polygons"), "set_polygons", "get_polygons");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "bones", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "_set_bones", "_get_bones");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "bones", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "_set_bones", "_get_bones");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "internal_vertex_count", PROPERTY_HINT_RANGE, "0,1000"), "set_internal_vertex_count", "get_internal_vertex_count");
|
||||
}
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ void RayCast::_bind_methods() {
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "debug_shape_thickness", PROPERTY_HINT_RANGE, "1,5"), "set_debug_shape_thickness", "get_debug_shape_thickness");
|
||||
}
|
||||
|
||||
float RayCast::get_debug_shape_thickness() const {
|
||||
int RayCast::get_debug_shape_thickness() const {
|
||||
return debug_shape_thickness;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ void RayCast::_update_debug_shape_vertices() {
|
||||
}
|
||||
}
|
||||
|
||||
void RayCast::set_debug_shape_thickness(const float p_debug_shape_thickness) {
|
||||
void RayCast::set_debug_shape_thickness(const int p_debug_shape_thickness) {
|
||||
debug_shape_thickness = p_debug_shape_thickness;
|
||||
update_gizmo();
|
||||
|
||||
|
||||
@@ -100,8 +100,8 @@ public:
|
||||
|
||||
Ref<SpatialMaterial> get_debug_material();
|
||||
|
||||
float get_debug_shape_thickness() const;
|
||||
void set_debug_shape_thickness(const float p_debug_thickness);
|
||||
int get_debug_shape_thickness() const;
|
||||
void set_debug_shape_thickness(const int p_debug_thickness);
|
||||
|
||||
void force_raycast_update();
|
||||
bool is_colliding() const;
|
||||
|
||||
Reference in New Issue
Block a user