mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Synchronize the names for RequiredParam<T> arguments in header files
This commit is contained in:
parent
7a228b4b91
commit
308f23f21d
27 changed files with 84 additions and 84 deletions
|
|
@ -321,8 +321,8 @@ public:
|
||||||
bool is_action_pressed(const StringName &p_action, bool p_exact = false) const;
|
bool is_action_pressed(const StringName &p_action, bool p_exact = false) const;
|
||||||
bool is_action_just_pressed(const StringName &p_action, bool p_exact = false) const;
|
bool is_action_just_pressed(const StringName &p_action, bool p_exact = false) const;
|
||||||
bool is_action_just_released(const StringName &p_action, bool p_exact = false) const;
|
bool is_action_just_released(const StringName &p_action, bool p_exact = false) const;
|
||||||
bool is_action_just_pressed_by_event(const StringName &p_action, RequiredParam<InputEvent> p_event, bool p_exact = false) const;
|
bool is_action_just_pressed_by_event(const StringName &p_action, RequiredParam<InputEvent> rp_event, bool p_exact = false) const;
|
||||||
bool is_action_just_released_by_event(const StringName &p_action, RequiredParam<InputEvent> p_event, bool p_exact = false) const;
|
bool is_action_just_released_by_event(const StringName &p_action, RequiredParam<InputEvent> rp_event, bool p_exact = false) const;
|
||||||
float get_action_strength(const StringName &p_action, bool p_exact = false) const;
|
float get_action_strength(const StringName &p_action, bool p_exact = false) const;
|
||||||
float get_action_raw_strength(const StringName &p_action, bool p_exact = false) const;
|
float get_action_raw_strength(const StringName &p_action, bool p_exact = false) const;
|
||||||
|
|
||||||
|
|
@ -350,7 +350,7 @@ public:
|
||||||
void warp_mouse(const Vector2 &p_position);
|
void warp_mouse(const Vector2 &p_position);
|
||||||
Point2 warp_mouse_motion(const Ref<InputEventMouseMotion> &p_motion, const Rect2 &p_rect);
|
Point2 warp_mouse_motion(const Ref<InputEventMouseMotion> &p_motion, const Rect2 &p_rect);
|
||||||
|
|
||||||
void parse_input_event(RequiredParam<InputEvent> p_event);
|
void parse_input_event(RequiredParam<InputEvent> rp_event);
|
||||||
|
|
||||||
void set_gravity(const Vector3 &p_gravity);
|
void set_gravity(const Vector3 &p_gravity);
|
||||||
void set_accelerometer(const Vector3 &p_accel);
|
void set_accelerometer(const Vector3 &p_accel);
|
||||||
|
|
|
||||||
|
|
@ -87,13 +87,13 @@ public:
|
||||||
|
|
||||||
float action_get_deadzone(const StringName &p_action);
|
float action_get_deadzone(const StringName &p_action);
|
||||||
void action_set_deadzone(const StringName &p_action, float p_deadzone);
|
void action_set_deadzone(const StringName &p_action, float p_deadzone);
|
||||||
void action_add_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
|
void action_add_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
|
||||||
bool action_has_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
|
bool action_has_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
|
||||||
void action_erase_event(const StringName &p_action, RequiredParam<InputEvent> p_event);
|
void action_erase_event(const StringName &p_action, RequiredParam<InputEvent> rp_event);
|
||||||
void action_erase_events(const StringName &p_action);
|
void action_erase_events(const StringName &p_action);
|
||||||
|
|
||||||
const List<Ref<InputEvent>> *action_get_events(const StringName &p_action);
|
const List<Ref<InputEvent>> *action_get_events(const StringName &p_action);
|
||||||
bool event_is_action(RequiredParam<InputEvent> p_event, const StringName &p_action, bool p_exact_match = false) const;
|
bool event_is_action(RequiredParam<InputEvent> rp_event, const StringName &p_action, bool p_exact_match = false) const;
|
||||||
int event_get_index(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false) const;
|
int event_get_index(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false) const;
|
||||||
bool event_get_action_status(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false, bool *r_pressed = nullptr, float *r_strength = nullptr, float *r_raw_strength = nullptr, int *r_event_index = nullptr) const;
|
bool event_get_action_status(const Ref<InputEvent> &p_event, const StringName &p_action, bool p_exact_match = false, bool *r_pressed = nullptr, float *r_strength = nullptr, float *r_raw_strength = nullptr, int *r_event_index = nullptr) const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ public:
|
||||||
FLAG_REPLACE_SUBRESOURCE_PATHS = 64,
|
FLAG_REPLACE_SUBRESOURCE_PATHS = 64,
|
||||||
};
|
};
|
||||||
|
|
||||||
static Error save(RequiredParam<Resource> p_resource, const String &p_path = "", uint32_t p_flags = (uint32_t)FLAG_NONE);
|
static Error save(RequiredParam<Resource> rp_resource, const String &p_path = "", uint32_t p_flags = (uint32_t)FLAG_NONE);
|
||||||
static void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions);
|
static void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions);
|
||||||
static void add_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver, bool p_at_front = false);
|
static void add_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver, bool p_at_front = false);
|
||||||
static void remove_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver);
|
static void remove_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver);
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ public:
|
||||||
|
|
||||||
virtual RID soft_body_create() override;
|
virtual RID soft_body_create() override;
|
||||||
|
|
||||||
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) override;
|
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) override;
|
||||||
|
|
||||||
virtual void soft_body_set_space(RID p_body, RID p_space) override;
|
virtual void soft_body_set_space(RID p_body, RID p_space) override;
|
||||||
virtual RID soft_body_get_space(RID p_body) const override;
|
virtual RID soft_body_get_space(RID p_body) const override;
|
||||||
|
|
|
||||||
|
|
@ -300,7 +300,7 @@ public:
|
||||||
|
|
||||||
virtual RID soft_body_create() override;
|
virtual RID soft_body_create() override;
|
||||||
|
|
||||||
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) override;
|
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) override;
|
||||||
|
|
||||||
virtual void soft_body_set_space(RID p_body, RID p_space) override;
|
virtual void soft_body_set_space(RID p_body, RID p_space) override;
|
||||||
virtual RID soft_body_get_space(RID p_body) const override;
|
virtual RID soft_body_get_space(RID p_body) const override;
|
||||||
|
|
|
||||||
|
|
@ -185,8 +185,8 @@ public:
|
||||||
bool has_overlapping_bodies() const;
|
bool has_overlapping_bodies() const;
|
||||||
bool has_overlapping_areas() const;
|
bool has_overlapping_areas() const;
|
||||||
|
|
||||||
bool overlaps_area(RequiredParam<Node> p_area) const;
|
bool overlaps_area(RequiredParam<Node> rp_area) const;
|
||||||
bool overlaps_body(RequiredParam<Node> p_body) const;
|
bool overlaps_body(RequiredParam<Node> rp_body) const;
|
||||||
|
|
||||||
void set_audio_bus_override(bool p_override);
|
void set_audio_bus_override(bool p_override);
|
||||||
bool is_overriding_audio_bus() const;
|
bool is_overriding_audio_bus() const;
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ public:
|
||||||
void shape_owner_set_one_way_collision_margin(uint32_t p_owner, real_t p_margin);
|
void shape_owner_set_one_way_collision_margin(uint32_t p_owner, real_t p_margin);
|
||||||
real_t get_shape_owner_one_way_collision_margin(uint32_t p_owner) const;
|
real_t get_shape_owner_one_way_collision_margin(uint32_t p_owner) const;
|
||||||
|
|
||||||
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape2D> p_shape);
|
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape2D> rp_shape);
|
||||||
int shape_owner_get_shape_count(uint32_t p_owner) const;
|
int shape_owner_get_shape_count(uint32_t p_owner) const;
|
||||||
Ref<Shape2D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const;
|
Ref<Shape2D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const;
|
||||||
int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const;
|
int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const;
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,6 @@ public:
|
||||||
Vector2 get_gravity() const;
|
Vector2 get_gravity() const;
|
||||||
|
|
||||||
TypedArray<PhysicsBody2D> get_collision_exceptions();
|
TypedArray<PhysicsBody2D> get_collision_exceptions();
|
||||||
void add_collision_exception_with(RequiredParam<Node> p_node); //must be physicsbody
|
void add_collision_exception_with(RequiredParam<Node> rp_node); //must be physicsbody
|
||||||
void remove_collision_exception_with(RequiredParam<Node> p_node);
|
void remove_collision_exception_with(RequiredParam<Node> rp_node);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -97,9 +97,9 @@ public:
|
||||||
Vector2 get_collision_normal() const;
|
Vector2 get_collision_normal() const;
|
||||||
|
|
||||||
void add_exception_rid(const RID &p_rid);
|
void add_exception_rid(const RID &p_rid);
|
||||||
void add_exception(RequiredParam<const CollisionObject2D> p_node);
|
void add_exception(RequiredParam<const CollisionObject2D> rp_node);
|
||||||
void remove_exception_rid(const RID &p_rid);
|
void remove_exception_rid(const RID &p_rid);
|
||||||
void remove_exception(RequiredParam<const CollisionObject2D> p_node);
|
void remove_exception(RequiredParam<const CollisionObject2D> rp_node);
|
||||||
void clear_exceptions();
|
void clear_exceptions();
|
||||||
|
|
||||||
RayCast2D();
|
RayCast2D();
|
||||||
|
|
|
||||||
|
|
@ -112,9 +112,9 @@ public:
|
||||||
real_t get_closest_collision_unsafe_fraction() const;
|
real_t get_closest_collision_unsafe_fraction() const;
|
||||||
|
|
||||||
void add_exception_rid(const RID &p_rid);
|
void add_exception_rid(const RID &p_rid);
|
||||||
void add_exception(RequiredParam<const CollisionObject2D> p_node);
|
void add_exception(RequiredParam<const CollisionObject2D> rp_node);
|
||||||
void remove_exception_rid(const RID &p_rid);
|
void remove_exception_rid(const RID &p_rid);
|
||||||
void remove_exception(RequiredParam<const CollisionObject2D> p_node);
|
void remove_exception(RequiredParam<const CollisionObject2D> rp_node);
|
||||||
void clear_exceptions();
|
void clear_exceptions();
|
||||||
|
|
||||||
PackedStringArray get_configuration_warnings() const override;
|
PackedStringArray get_configuration_warnings() const override;
|
||||||
|
|
|
||||||
|
|
@ -204,8 +204,8 @@ public:
|
||||||
bool has_overlapping_bodies() const;
|
bool has_overlapping_bodies() const;
|
||||||
bool has_overlapping_areas() const;
|
bool has_overlapping_areas() const;
|
||||||
|
|
||||||
bool overlaps_area(RequiredParam<Node> p_area) const;
|
bool overlaps_area(RequiredParam<Node> rp_area) const;
|
||||||
bool overlaps_body(RequiredParam<Node> p_body) const;
|
bool overlaps_body(RequiredParam<Node> rp_body) const;
|
||||||
|
|
||||||
void set_audio_bus_override(bool p_override);
|
void set_audio_bus_override(bool p_override);
|
||||||
bool is_overriding_audio_bus() const;
|
bool is_overriding_audio_bus() const;
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ public:
|
||||||
void shape_owner_set_disabled(uint32_t p_owner, bool p_disabled);
|
void shape_owner_set_disabled(uint32_t p_owner, bool p_disabled);
|
||||||
bool is_shape_owner_disabled(uint32_t p_owner) const;
|
bool is_shape_owner_disabled(uint32_t p_owner) const;
|
||||||
|
|
||||||
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape3D> p_shape);
|
void shape_owner_add_shape(uint32_t p_owner, RequiredParam<Shape3D> rp_shape);
|
||||||
int shape_owner_get_shape_count(uint32_t p_owner) const;
|
int shape_owner_get_shape_count(uint32_t p_owner) const;
|
||||||
Ref<Shape3D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const;
|
Ref<Shape3D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const;
|
||||||
int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const;
|
int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const;
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,6 @@ public:
|
||||||
virtual real_t get_inverse_mass() const;
|
virtual real_t get_inverse_mass() const;
|
||||||
|
|
||||||
TypedArray<PhysicsBody3D> get_collision_exceptions();
|
TypedArray<PhysicsBody3D> get_collision_exceptions();
|
||||||
void add_collision_exception_with(RequiredParam<Node> p_node); //must be physicsbody
|
void add_collision_exception_with(RequiredParam<Node> rp_node); //must be physicsbody
|
||||||
void remove_collision_exception_with(RequiredParam<Node> p_node);
|
void remove_collision_exception_with(RequiredParam<Node> rp_node);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -127,9 +127,9 @@ public:
|
||||||
int get_collision_face_index() const;
|
int get_collision_face_index() const;
|
||||||
|
|
||||||
void add_exception_rid(const RID &p_rid);
|
void add_exception_rid(const RID &p_rid);
|
||||||
void add_exception(RequiredParam<const CollisionObject3D> p_node);
|
void add_exception(RequiredParam<const CollisionObject3D> rp_node);
|
||||||
void remove_exception_rid(const RID &p_rid);
|
void remove_exception_rid(const RID &p_rid);
|
||||||
void remove_exception(RequiredParam<const CollisionObject3D> p_node);
|
void remove_exception(RequiredParam<const CollisionObject3D> rp_node);
|
||||||
void clear_exceptions();
|
void clear_exceptions();
|
||||||
|
|
||||||
RayCast3D();
|
RayCast3D();
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,9 @@ public:
|
||||||
bool is_colliding() const;
|
bool is_colliding() const;
|
||||||
|
|
||||||
void add_exception_rid(const RID &p_rid);
|
void add_exception_rid(const RID &p_rid);
|
||||||
void add_exception(RequiredParam<const CollisionObject3D> p_node);
|
void add_exception(RequiredParam<const CollisionObject3D> rp_node);
|
||||||
void remove_exception_rid(const RID &p_rid);
|
void remove_exception_rid(const RID &p_rid);
|
||||||
void remove_exception(RequiredParam<const CollisionObject3D> p_node);
|
void remove_exception(RequiredParam<const CollisionObject3D> rp_node);
|
||||||
void clear_exceptions();
|
void clear_exceptions();
|
||||||
|
|
||||||
virtual PackedStringArray get_configuration_warnings() const override;
|
virtual PackedStringArray get_configuration_warnings() const override;
|
||||||
|
|
|
||||||
|
|
@ -177,8 +177,8 @@ public:
|
||||||
real_t get_drag_coefficient();
|
real_t get_drag_coefficient();
|
||||||
|
|
||||||
TypedArray<PhysicsBody3D> get_collision_exceptions();
|
TypedArray<PhysicsBody3D> get_collision_exceptions();
|
||||||
void add_collision_exception_with(RequiredParam<Node> p_node);
|
void add_collision_exception_with(RequiredParam<Node> rp_node);
|
||||||
void remove_collision_exception_with(RequiredParam<Node> p_node);
|
void remove_collision_exception_with(RequiredParam<Node> rp_node);
|
||||||
|
|
||||||
Vector3 get_point_transform(int p_point_index);
|
Vector3 get_point_transform(int p_point_index);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,11 +143,11 @@ protected:
|
||||||
virtual String _to_string() override;
|
virtual String _to_string() override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RequiredResult<PropertyTweener> tween_property(RequiredParam<const Object> p_target, const NodePath &p_property, Variant p_to, double p_duration);
|
RequiredResult<PropertyTweener> tween_property(RequiredParam<const Object> rp_target, const NodePath &p_property, Variant p_to, double p_duration);
|
||||||
RequiredResult<IntervalTweener> tween_interval(double p_time);
|
RequiredResult<IntervalTweener> tween_interval(double p_time);
|
||||||
RequiredResult<CallbackTweener> tween_callback(const Callable &p_callback);
|
RequiredResult<CallbackTweener> tween_callback(const Callable &p_callback);
|
||||||
RequiredResult<MethodTweener> tween_method(const Callable &p_callback, const Variant p_from, Variant p_to, double p_duration);
|
RequiredResult<MethodTweener> tween_method(const Callable &p_callback, const Variant p_from, Variant p_to, double p_duration);
|
||||||
RequiredResult<SubtweenTweener> tween_subtween(RequiredParam<Tween> p_subtween);
|
RequiredResult<SubtweenTweener> tween_subtween(RequiredParam<Tween> rp_subtween);
|
||||||
void append(Ref<Tweener> p_tweener);
|
void append(Ref<Tweener> p_tweener);
|
||||||
|
|
||||||
bool custom_step(double p_delta);
|
bool custom_step(double p_delta);
|
||||||
|
|
@ -160,7 +160,7 @@ public:
|
||||||
bool is_valid();
|
bool is_valid();
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
RequiredResult<Tween> bind_node(RequiredParam<const Node> p_node);
|
RequiredResult<Tween> bind_node(RequiredParam<const Node> rp_node);
|
||||||
RequiredResult<Tween> set_process_mode(TweenProcessMode p_mode);
|
RequiredResult<Tween> set_process_mode(TweenProcessMode p_mode);
|
||||||
TweenProcessMode get_process_mode() const;
|
TweenProcessMode get_process_mode() const;
|
||||||
RequiredResult<Tween> set_pause_mode(TweenPauseMode p_mode);
|
RequiredResult<Tween> set_pause_mode(TweenPauseMode p_mode);
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ public:
|
||||||
NOTIFICATION_SORT_CHILDREN = 51,
|
NOTIFICATION_SORT_CHILDREN = 51,
|
||||||
};
|
};
|
||||||
|
|
||||||
void fit_child_in_rect(RequiredParam<Control> p_child, const Rect2 &p_rect);
|
void fit_child_in_rect(RequiredParam<Control> rp_child, const Rect2 &p_rect);
|
||||||
|
|
||||||
virtual Vector<int> get_allowed_size_flags_horizontal() const;
|
virtual Vector<int> get_allowed_size_flags_horizontal() const;
|
||||||
virtual Vector<int> get_allowed_size_flags_vertical() const;
|
virtual Vector<int> get_allowed_size_flags_vertical() const;
|
||||||
|
|
|
||||||
|
|
@ -674,9 +674,9 @@ public:
|
||||||
void begin_bulk_theme_override();
|
void begin_bulk_theme_override();
|
||||||
void end_bulk_theme_override();
|
void end_bulk_theme_override();
|
||||||
|
|
||||||
void add_theme_icon_override(const StringName &p_name, RequiredParam<Texture2D> p_icon);
|
void add_theme_icon_override(const StringName &p_name, RequiredParam<Texture2D> rp_icon);
|
||||||
void add_theme_style_override(const StringName &p_name, RequiredParam<StyleBox> p_style);
|
void add_theme_style_override(const StringName &p_name, RequiredParam<StyleBox> rp_style);
|
||||||
void add_theme_font_override(const StringName &p_name, RequiredParam<Font> p_font);
|
void add_theme_font_override(const StringName &p_name, RequiredParam<Font> rp_font);
|
||||||
void add_theme_font_size_override(const StringName &p_name, int p_font_size);
|
void add_theme_font_size_override(const StringName &p_name, int p_font_size);
|
||||||
void add_theme_color_override(const StringName &p_name, const Color &p_color);
|
void add_theme_color_override(const StringName &p_name, const Color &p_color);
|
||||||
void add_theme_constant_override(const StringName &p_name, int p_constant);
|
void add_theme_constant_override(const StringName &p_name, int p_constant);
|
||||||
|
|
|
||||||
|
|
@ -317,26 +317,26 @@ public:
|
||||||
void draw_ellipse(const Point2 &p_pos, real_t p_major, real_t p_minor, const Color &p_color, bool p_filled = true, real_t p_width = -1.0, bool p_antialiased = false);
|
void draw_ellipse(const Point2 &p_pos, real_t p_major, real_t p_minor, const Color &p_color, bool p_filled = true, real_t p_width = -1.0, bool p_antialiased = false);
|
||||||
void draw_circle(const Point2 &p_pos, real_t p_radius, const Color &p_color, bool p_filled = true, real_t p_width = -1.0, bool p_antialiased = false);
|
void draw_circle(const Point2 &p_pos, real_t p_radius, const Color &p_color, bool p_filled = true, real_t p_width = -1.0, bool p_antialiased = false);
|
||||||
void draw_texture(RequiredParam<Texture2D> rp_texture, const Point2 &p_pos, const Color &p_modulate = Color(1, 1, 1, 1));
|
void draw_texture(RequiredParam<Texture2D> rp_texture, const Point2 &p_pos, const Color &p_modulate = Color(1, 1, 1, 1));
|
||||||
void draw_texture_rect(RequiredParam<Texture2D> p_texture, const Rect2 &p_rect, bool p_tile = false, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false);
|
void draw_texture_rect(RequiredParam<Texture2D> rp_texture, const Rect2 &p_rect, bool p_tile = false, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false);
|
||||||
void draw_texture_rect_region(RequiredParam<Texture2D> p_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false, bool p_clip_uv = false);
|
void draw_texture_rect_region(RequiredParam<Texture2D> rp_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false, bool p_clip_uv = false);
|
||||||
void draw_msdf_texture_rect_region(RequiredParam<Texture2D> p_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1), double p_outline = 0.0, double p_pixel_range = 4.0, double p_scale = 1.0);
|
void draw_msdf_texture_rect_region(RequiredParam<Texture2D> rp_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1), double p_outline = 0.0, double p_pixel_range = 4.0, double p_scale = 1.0);
|
||||||
void draw_lcd_texture_rect_region(RequiredParam<Texture2D> p_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1));
|
void draw_lcd_texture_rect_region(RequiredParam<Texture2D> rp_texture, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1));
|
||||||
void draw_style_box(RequiredParam<StyleBox> p_style_box, const Rect2 &p_rect);
|
void draw_style_box(RequiredParam<StyleBox> rp_style_box, const Rect2 &p_rect);
|
||||||
void draw_primitive(const Vector<Point2> &p_points, const Vector<Color> &p_colors, const Vector<Point2> &p_uvs, Ref<Texture2D> p_texture = Ref<Texture2D>());
|
void draw_primitive(const Vector<Point2> &p_points, const Vector<Color> &p_colors, const Vector<Point2> &p_uvs, Ref<Texture2D> p_texture = Ref<Texture2D>());
|
||||||
void draw_polygon(const Vector<Point2> &p_points, const Vector<Color> &p_colors, const Vector<Point2> &p_uvs = Vector<Point2>(), Ref<Texture2D> p_texture = Ref<Texture2D>());
|
void draw_polygon(const Vector<Point2> &p_points, const Vector<Color> &p_colors, const Vector<Point2> &p_uvs = Vector<Point2>(), Ref<Texture2D> p_texture = Ref<Texture2D>());
|
||||||
void draw_colored_polygon(const Vector<Point2> &p_points, const Color &p_color, const Vector<Point2> &p_uvs = Vector<Point2>(), Ref<Texture2D> p_texture = Ref<Texture2D>());
|
void draw_colored_polygon(const Vector<Point2> &p_points, const Color &p_color, const Vector<Point2> &p_uvs = Vector<Point2>(), Ref<Texture2D> p_texture = Ref<Texture2D>());
|
||||||
|
|
||||||
void draw_mesh(RequiredParam<Mesh> p_mesh, const Ref<Texture2D> &p_texture, const Transform2D &p_transform = Transform2D(), const Color &p_modulate = Color(1, 1, 1));
|
void draw_mesh(RequiredParam<Mesh> rp_mesh, const Ref<Texture2D> &p_texture, const Transform2D &p_transform = Transform2D(), const Color &p_modulate = Color(1, 1, 1));
|
||||||
void draw_multimesh(RequiredParam<MultiMesh> p_multimesh, const Ref<Texture2D> &p_texture);
|
void draw_multimesh(RequiredParam<MultiMesh> rp_multimesh, const Ref<Texture2D> &p_texture);
|
||||||
|
|
||||||
void draw_string(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
void draw_string(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
||||||
void draw_multiline_string(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_max_lines = -1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::LineBreakFlag> p_brk_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_WORD_BOUND, BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
void draw_multiline_string(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_max_lines = -1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::LineBreakFlag> p_brk_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_WORD_BOUND, BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
||||||
|
|
||||||
void draw_string_outline(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
void draw_string_outline(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
||||||
void draw_multiline_string_outline(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_max_lines = -1, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::LineBreakFlag> p_brk_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_WORD_BOUND, BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
void draw_multiline_string_outline(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_text, HorizontalAlignment p_alignment = HORIZONTAL_ALIGNMENT_LEFT, float p_width = -1, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_max_lines = -1, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), BitField<TextServer::LineBreakFlag> p_brk_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_WORD_BOUND, BitField<TextServer::JustificationFlag> p_jst_flags = TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_WORD_BOUND, TextServer::Direction p_direction = TextServer::DIRECTION_AUTO, TextServer::Orientation p_orientation = TextServer::ORIENTATION_HORIZONTAL, float p_oversampling = 0.0) const;
|
||||||
|
|
||||||
void draw_char(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_char, int p_font_size = Font::DEFAULT_FONT_SIZE, const Color &p_modulate = Color(1.0, 1.0, 1.0), float p_oversampling = 0.0) const;
|
void draw_char(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_char, int p_font_size = Font::DEFAULT_FONT_SIZE, const Color &p_modulate = Color(1.0, 1.0, 1.0), float p_oversampling = 0.0) const;
|
||||||
void draw_char_outline(RequiredParam<Font> p_font, const Point2 &p_pos, const String &p_char, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), float p_oversampling = 0.0) const;
|
void draw_char_outline(RequiredParam<Font> rp_font, const Point2 &p_pos, const String &p_char, int p_font_size = Font::DEFAULT_FONT_SIZE, int p_size = 1, const Color &p_modulate = Color(1.0, 1.0, 1.0), float p_oversampling = 0.0) const;
|
||||||
|
|
||||||
void draw_set_transform(const Point2 &p_offset, real_t p_rot = 0.0, const Size2 &p_scale = Size2(1.0, 1.0));
|
void draw_set_transform(const Point2 &p_offset, real_t p_rot = 0.0, const Size2 &p_scale = Size2(1.0, 1.0));
|
||||||
void draw_set_transform_matrix(const Transform2D &p_matrix);
|
void draw_set_transform_matrix(const Transform2D &p_matrix);
|
||||||
|
|
@ -387,7 +387,7 @@ public:
|
||||||
virtual void set_use_parent_material(bool p_use_parent_material);
|
virtual void set_use_parent_material(bool p_use_parent_material);
|
||||||
bool get_use_parent_material() const;
|
bool get_use_parent_material() const;
|
||||||
|
|
||||||
RequiredResult<InputEvent> make_input_local(RequiredParam<InputEvent> p_event) const;
|
RequiredResult<InputEvent> make_input_local(RequiredParam<InputEvent> rp_event) const;
|
||||||
Vector2 make_canvas_position_local(const Vector2 &screen_point) const;
|
Vector2 make_canvas_position_local(const Vector2 &screen_point) const;
|
||||||
|
|
||||||
Vector2 get_global_mouse_position() const;
|
Vector2 get_global_mouse_position() const;
|
||||||
|
|
|
||||||
|
|
@ -534,7 +534,7 @@ public:
|
||||||
bool has_node_and_resource(const NodePath &p_path) const;
|
bool has_node_and_resource(const NodePath &p_path) const;
|
||||||
Node *get_node_and_resource(const NodePath &p_path, Ref<Resource> &r_res, Vector<StringName> &r_leftover_subpath, bool p_last_is_property = true) const;
|
Node *get_node_and_resource(const NodePath &p_path, Ref<Resource> &r_res, Vector<StringName> &r_leftover_subpath, bool p_last_is_property = true) const;
|
||||||
|
|
||||||
virtual void reparent(RequiredParam<Node> p_parent, bool p_keep_global_transform = true);
|
virtual void reparent(RequiredParam<Node> rp_parent, bool p_keep_global_transform = true);
|
||||||
Node *get_parent() const;
|
Node *get_parent() const;
|
||||||
Node *find_parent(const String &p_pattern) const;
|
Node *find_parent(const String &p_pattern) const;
|
||||||
|
|
||||||
|
|
@ -553,11 +553,11 @@ public:
|
||||||
_FORCE_INLINE_ bool is_inside_tree() const { return data.tree; }
|
_FORCE_INLINE_ bool is_inside_tree() const { return data.tree; }
|
||||||
bool is_internal() const { return data.internal_mode != INTERNAL_MODE_DISABLED; }
|
bool is_internal() const { return data.internal_mode != INTERNAL_MODE_DISABLED; }
|
||||||
|
|
||||||
bool is_ancestor_of(RequiredParam<const Node> p_node) const;
|
bool is_ancestor_of(RequiredParam<const Node> rp_node) const;
|
||||||
bool is_greater_than(RequiredParam<const Node> p_node) const;
|
bool is_greater_than(RequiredParam<const Node> rp_node) const;
|
||||||
|
|
||||||
NodePath get_path() const;
|
NodePath get_path() const;
|
||||||
NodePath get_path_to(RequiredParam<const Node> p_node, bool p_use_unique_path = false) const;
|
NodePath get_path_to(RequiredParam<const Node> rp_node, bool p_use_unique_path = false) const;
|
||||||
Node *find_common_parent_with(const Node *p_node) const;
|
Node *find_common_parent_with(const Node *p_node) const;
|
||||||
|
|
||||||
void add_to_group(const StringName &p_identifier, bool p_persistent = false);
|
void add_to_group(const StringName &p_identifier, bool p_persistent = false);
|
||||||
|
|
@ -572,7 +572,7 @@ public:
|
||||||
void get_groups(List<GroupInfo> *p_groups) const;
|
void get_groups(List<GroupInfo> *p_groups) const;
|
||||||
int get_persistent_group_count() const;
|
int get_persistent_group_count() const;
|
||||||
|
|
||||||
void move_child(RequiredParam<Node> p_child, int p_index);
|
void move_child(RequiredParam<Node> rp_child, int p_index);
|
||||||
void _move_child(Node *p_child, int p_index, bool p_ignore_end = false);
|
void _move_child(Node *p_child, int p_index, bool p_ignore_end = false);
|
||||||
|
|
||||||
void set_owner(Node *p_owner);
|
void set_owner(Node *p_owner);
|
||||||
|
|
@ -621,8 +621,8 @@ public:
|
||||||
void set_editor_description(const String &p_editor_description);
|
void set_editor_description(const String &p_editor_description);
|
||||||
String get_editor_description() const;
|
String get_editor_description() const;
|
||||||
|
|
||||||
void set_editable_instance(RequiredParam<Node> p_node, bool p_editable);
|
void set_editable_instance(RequiredParam<Node> rp_node, bool p_editable);
|
||||||
bool is_editable_instance(RequiredParam<const Node> p_node) const;
|
bool is_editable_instance(RequiredParam<const Node> rp_node) const;
|
||||||
Node *get_deepest_editable_node(Node *p_start_node) const;
|
Node *get_deepest_editable_node(Node *p_start_node) const;
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
|
|
@ -742,7 +742,7 @@ public:
|
||||||
return binds;
|
return binds;
|
||||||
}
|
}
|
||||||
|
|
||||||
void replace_by(RequiredParam<Node> p_node, bool p_keep_groups = false);
|
void replace_by(RequiredParam<Node> rp_node, bool p_keep_groups = false);
|
||||||
|
|
||||||
void set_process_mode(ProcessMode p_mode);
|
void set_process_mode(ProcessMode p_mode);
|
||||||
ProcessMode get_process_mode() const;
|
ProcessMode get_process_mode() const;
|
||||||
|
|
|
||||||
|
|
@ -407,7 +407,7 @@ public:
|
||||||
|
|
||||||
int get_node_count() const;
|
int get_node_count() const;
|
||||||
|
|
||||||
void queue_delete(RequiredParam<Object> p_object);
|
void queue_delete(RequiredParam<Object> rp_object);
|
||||||
|
|
||||||
Vector<Node *> get_nodes_in_group(const StringName &p_group);
|
Vector<Node *> get_nodes_in_group(const StringName &p_group);
|
||||||
Node *get_first_node_in_group(const StringName &p_group);
|
Node *get_first_node_in_group(const StringName &p_group);
|
||||||
|
|
@ -423,8 +423,8 @@ public:
|
||||||
void set_current_scene(Node *p_scene);
|
void set_current_scene(Node *p_scene);
|
||||||
Node *get_current_scene() const;
|
Node *get_current_scene() const;
|
||||||
Error change_scene_to_file(const String &p_path);
|
Error change_scene_to_file(const String &p_path);
|
||||||
Error change_scene_to_packed(RequiredParam<PackedScene> p_scene);
|
Error change_scene_to_packed(RequiredParam<PackedScene> rp_scene);
|
||||||
Error change_scene_to_node(RequiredParam<Node> p_node);
|
Error change_scene_to_node(RequiredParam<Node> rp_node);
|
||||||
Error reload_current_scene();
|
Error reload_current_scene();
|
||||||
void unload_current_scene();
|
void unload_current_scene();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -609,9 +609,9 @@ public:
|
||||||
Vector2 get_camera_rect_size() const;
|
Vector2 get_camera_rect_size() const;
|
||||||
|
|
||||||
void push_text_input(const String &p_text);
|
void push_text_input(const String &p_text);
|
||||||
void push_input(RequiredParam<InputEvent> p_event, bool p_local_coords = false);
|
void push_input(RequiredParam<InputEvent> rp_event, bool p_local_coords = false);
|
||||||
#ifndef DISABLE_DEPRECATED
|
#ifndef DISABLE_DEPRECATED
|
||||||
void push_unhandled_input(RequiredParam<InputEvent> p_event, bool p_local_coords = false);
|
void push_unhandled_input(RequiredParam<InputEvent> rp_event, bool p_local_coords = false);
|
||||||
#endif // DISABLE_DEPRECATED
|
#endif // DISABLE_DEPRECATED
|
||||||
void notify_mouse_entered();
|
void notify_mouse_entered();
|
||||||
void notify_mouse_exited();
|
void notify_mouse_exited();
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,11 @@ public:
|
||||||
void set_custom_solver_bias(real_t p_bias);
|
void set_custom_solver_bias(real_t p_bias);
|
||||||
real_t get_custom_solver_bias() const;
|
real_t get_custom_solver_bias() const;
|
||||||
|
|
||||||
bool collide_with_motion(const Transform2D &p_local_xform, const Vector2 &p_local_motion, RequiredParam<Shape2D> p_shape, const Transform2D &p_shape_xform, const Vector2 &p_shape_motion);
|
bool collide_with_motion(const Transform2D &p_local_xform, const Vector2 &p_local_motion, RequiredParam<Shape2D> rp_shape, const Transform2D &p_shape_xform, const Vector2 &p_shape_motion);
|
||||||
bool collide(const Transform2D &p_local_xform, RequiredParam<Shape2D> p_shape, const Transform2D &p_shape_xform);
|
bool collide(const Transform2D &p_local_xform, RequiredParam<Shape2D> rp_shape, const Transform2D &p_shape_xform);
|
||||||
|
|
||||||
PackedVector2Array collide_with_motion_and_get_contacts(const Transform2D &p_local_xform, const Vector2 &p_local_motion, RequiredParam<Shape2D> p_shape, const Transform2D &p_shape_xform, const Vector2 &p_shape_motion);
|
PackedVector2Array collide_with_motion_and_get_contacts(const Transform2D &p_local_xform, const Vector2 &p_local_motion, RequiredParam<Shape2D> rp_shape, const Transform2D &p_shape_xform, const Vector2 &p_shape_motion);
|
||||||
PackedVector2Array collide_and_get_contacts(const Transform2D &p_local_xform, RequiredParam<Shape2D> p_shape, const Transform2D &p_shape_xform);
|
PackedVector2Array collide_and_get_contacts(const Transform2D &p_local_xform, RequiredParam<Shape2D> rp_shape, const Transform2D &p_shape_xform);
|
||||||
|
|
||||||
virtual void draw(const RID &p_to_rid, const Color &p_color) {}
|
virtual void draw(const RID &p_to_rid, const Color &p_color) {}
|
||||||
virtual Rect2 get_rect() const { return Rect2(); }
|
virtual Rect2 get_rect() const { return Rect2(); }
|
||||||
|
|
|
||||||
|
|
@ -124,12 +124,12 @@ class PhysicsShapeQueryParameters2D;
|
||||||
class PhysicsDirectSpaceState2D : public Object {
|
class PhysicsDirectSpaceState2D : public Object {
|
||||||
GDCLASS(PhysicsDirectSpaceState2D, Object);
|
GDCLASS(PhysicsDirectSpaceState2D, Object);
|
||||||
|
|
||||||
Dictionary _intersect_ray(RequiredParam<PhysicsRayQueryParameters2D> p_ray_query);
|
Dictionary _intersect_ray(RequiredParam<PhysicsRayQueryParameters2D> rp_ray_query);
|
||||||
TypedArray<Dictionary> _intersect_point(RequiredParam<PhysicsPointQueryParameters2D> p_point_query, int p_max_results = 32);
|
TypedArray<Dictionary> _intersect_point(RequiredParam<PhysicsPointQueryParameters2D> rp_point_query, int p_max_results = 32);
|
||||||
TypedArray<Dictionary> _intersect_shape(RequiredParam<PhysicsShapeQueryParameters2D> p_shape_query, int p_max_results = 32);
|
TypedArray<Dictionary> _intersect_shape(RequiredParam<PhysicsShapeQueryParameters2D> rp_shape_query, int p_max_results = 32);
|
||||||
Vector<real_t> _cast_motion(RequiredParam<PhysicsShapeQueryParameters2D> p_shape_query);
|
Vector<real_t> _cast_motion(RequiredParam<PhysicsShapeQueryParameters2D> rp_shape_query);
|
||||||
TypedArray<Vector2> _collide_shape(RequiredParam<PhysicsShapeQueryParameters2D> p_shape_query, int p_max_results = 32);
|
TypedArray<Vector2> _collide_shape(RequiredParam<PhysicsShapeQueryParameters2D> rp_shape_query, int p_max_results = 32);
|
||||||
Dictionary _get_rest_info(RequiredParam<PhysicsShapeQueryParameters2D> p_shape_query);
|
Dictionary _get_rest_info(RequiredParam<PhysicsShapeQueryParameters2D> rp_shape_query);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
@ -216,7 +216,7 @@ class PhysicsServer2D : public Object {
|
||||||
|
|
||||||
static PhysicsServer2D *singleton;
|
static PhysicsServer2D *singleton;
|
||||||
|
|
||||||
virtual bool _body_test_motion(RID p_body, RequiredParam<PhysicsTestMotionParameters2D> p_parameters, const Ref<PhysicsTestMotionResult2D> &p_result = Ref<PhysicsTestMotionResult2D>());
|
virtual bool _body_test_motion(RID p_body, RequiredParam<PhysicsTestMotionParameters2D> rp_parameters, const Ref<PhysicsTestMotionResult2D> &p_result = Ref<PhysicsTestMotionResult2D>());
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
|
||||||
|
|
@ -126,12 +126,12 @@ class PhysicsDirectSpaceState3D : public Object {
|
||||||
GDCLASS(PhysicsDirectSpaceState3D, Object);
|
GDCLASS(PhysicsDirectSpaceState3D, Object);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Dictionary _intersect_ray(RequiredParam<PhysicsRayQueryParameters3D> p_ray_query);
|
Dictionary _intersect_ray(RequiredParam<PhysicsRayQueryParameters3D> rp_ray_query);
|
||||||
TypedArray<Dictionary> _intersect_point(RequiredParam<PhysicsPointQueryParameters3D> p_point_query, int p_max_results = 32);
|
TypedArray<Dictionary> _intersect_point(RequiredParam<PhysicsPointQueryParameters3D> rp_point_query, int p_max_results = 32);
|
||||||
TypedArray<Dictionary> _intersect_shape(RequiredParam<PhysicsShapeQueryParameters3D> p_shape_query, int p_max_results = 32);
|
TypedArray<Dictionary> _intersect_shape(RequiredParam<PhysicsShapeQueryParameters3D> rp_shape_query, int p_max_results = 32);
|
||||||
Vector<real_t> _cast_motion(RequiredParam<PhysicsShapeQueryParameters3D> p_shape_query);
|
Vector<real_t> _cast_motion(RequiredParam<PhysicsShapeQueryParameters3D> rp_shape_query);
|
||||||
TypedArray<Vector3> _collide_shape(RequiredParam<PhysicsShapeQueryParameters3D> p_shape_query, int p_max_results = 32);
|
TypedArray<Vector3> _collide_shape(RequiredParam<PhysicsShapeQueryParameters3D> rp_shape_query, int p_max_results = 32);
|
||||||
Dictionary _get_rest_info(RequiredParam<PhysicsShapeQueryParameters3D> p_shape_query);
|
Dictionary _get_rest_info(RequiredParam<PhysicsShapeQueryParameters3D> rp_shape_query);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
@ -238,7 +238,7 @@ class PhysicsServer3D : public Object {
|
||||||
|
|
||||||
static PhysicsServer3D *singleton;
|
static PhysicsServer3D *singleton;
|
||||||
|
|
||||||
virtual bool _body_test_motion(RID p_body, RequiredParam<PhysicsTestMotionParameters3D> p_parameters, const Ref<PhysicsTestMotionResult3D> &p_result = Ref<PhysicsTestMotionResult3D>());
|
virtual bool _body_test_motion(RID p_body, RequiredParam<PhysicsTestMotionParameters3D> rp_parameters, const Ref<PhysicsTestMotionResult3D> &p_result = Ref<PhysicsTestMotionResult3D>());
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
@ -576,7 +576,7 @@ public:
|
||||||
|
|
||||||
virtual RID soft_body_create() = 0;
|
virtual RID soft_body_create() = 0;
|
||||||
|
|
||||||
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) = 0;
|
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) = 0;
|
||||||
|
|
||||||
virtual void soft_body_set_space(RID p_body, RID p_space) = 0;
|
virtual void soft_body_set_space(RID p_body, RID p_space) = 0;
|
||||||
virtual RID soft_body_get_space(RID p_body) const = 0;
|
virtual RID soft_body_get_space(RID p_body) const = 0;
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@ public:
|
||||||
|
|
||||||
virtual RID soft_body_create() override { return RID(); }
|
virtual RID soft_body_create() override { return RID(); }
|
||||||
|
|
||||||
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> p_rendering_server_handler) override {}
|
virtual void soft_body_update_rendering_server(RID p_body, RequiredParam<PhysicsServer3DRenderingServerHandler> rp_rendering_server_handler) override {}
|
||||||
|
|
||||||
virtual void soft_body_set_space(RID p_body, RID p_space) override {}
|
virtual void soft_body_set_space(RID p_body, RID p_space) override {}
|
||||||
virtual RID soft_body_get_space(RID p_body) const override { return RID(); }
|
virtual RID soft_body_get_space(RID p_body) const override { return RID(); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue