Repository: godotengine/godot
File: servers/physics_server_3d_dummy.h (C/C++)

Code before:

	virtual void soft_body_set_total_mass(RID p_body, real_t p_total_mass) override {}
	virtual real_t soft_body_get_total_mass(RID p_body) const override { return 0; }

	virtual void soft_body_set_linear_stiffness(RID p_body, real_t p_stiffness) override {}
	virtual real_t soft_body_get_linear_stiffness(RID p_body) const override { return 0; }

	virtual void soft_body_set_pressure_coefficient(RID p_body, real_t p_pressure_coefficient) override {}
	virtual real_t soft_body_get_pressure_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_set_damping_coefficient(RID p_body, real_t p_damping_coefficient) override {}
	virtual real_t soft_body_get_damping_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_set_drag_coefficient(RID p_body, real_t p_drag_coefficient) override {}
	virtual real_t soft_body_get_drag_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_move_point(RID p_body, int p_point_index, const Vector3 &p_global_position) override {}
	virtual Vector3 soft_body_get_point_global_position(RID p_body, int p_point_index) const override { return Vector3(); }

	virtual void soft_body_remove_all_pinned_points(RID p_body) override {}
	virtual void soft_body_pin_point(RID p_body, int p_point_index, bool p_pin) override {}
	virtual bool soft_body_is_point_pinned(RID p_body, int p_point_index) const override { return false; }

	virtual void soft_body_apply_point_impulse(RID p_body, const Vector3 p_impulse, int p_point_index) override {}
	virtual void soft_body_apply_point_force(RID p_body, const Vector3 p_force, int p_point_index) override {}
	virtual void soft_body_apply_central_impulse(RID p_body, const Vector3 p_impulse) override {}
	virtual void soft_body_apply_central_force(RID p_body, const Vector3 p_force) override {}

	/* JOINT API */

	virtual RID joint_create() override { return RID(); }

	virtual void joint_clear(RID p_joint) override {}

	virtual JointType joint_get_type(RID p_joint) const override { return JointType::JOINT_TYPE_PIN; }

	virtual void joint_set_solver_priority(RID p_joint, int p_priority) override {}
	virtual int joint_get_solver_priority(RID p_joint) const override { return 0; }

	virtual void joint_disable_collisions_between_bodies(RID p_joint, bool p_disable) override {}
	virtual bool joint_is_disabled_collisions_between_bodies(RID p_joint) const override { return false; }

	virtual void joint_make_pin(RID p_joint, RID p_body_A, const Vector3 &p_local_A, RID p_body_B, const Vector3 &p_local_B) override {}

	virtual void pin_joint_set_param(RID p_joint, PinJointParam p_param, real_t p_value) override {}
	virtual real_t pin_joint_get_param(RID p_joint, PinJointParam p_param) const override { return 0; }

	virtual void pin_joint_set_local_a(RID p_joint, const Vector3 &p_A) override {}
	virtual Vector3 pin_joint_get_local_a(RID p_joint) const override { return Vector3(); }

	virtual void pin_joint_set_local_b(RID p_joint, const Vector3 &p_B) override {}

Review comment (suggestion):
```suggestion
	virtual void soft_body_apply_point_impulse(RID p_body, int p_point_index, const Vector3 &p_impulse) override {}
	virtual void soft_body_apply_point_force(RID p_body, int p_point_index, const Vector3 &p_force) override {}
	virtual void soft_body_apply_central_impulse(RID p_body, const Vector3 &p_impulse) override {}
	virtual void soft_body_apply_central_force(RID p_body, const Vector3 &p_force) override {}
```

Code after:
	virtual void soft_body_set_total_mass(RID p_body, real_t p_total_mass) override {}
	virtual real_t soft_body_get_total_mass(RID p_body) const override { return 0; }

	virtual void soft_body_set_linear_stiffness(RID p_body, real_t p_stiffness) override {}
	virtual real_t soft_body_get_linear_stiffness(RID p_body) const override { return 0; }

	virtual void soft_body_set_pressure_coefficient(RID p_body, real_t p_pressure_coefficient) override {}
	virtual real_t soft_body_get_pressure_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_set_damping_coefficient(RID p_body, real_t p_damping_coefficient) override {}
	virtual real_t soft_body_get_damping_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_set_drag_coefficient(RID p_body, real_t p_drag_coefficient) override {}
	virtual real_t soft_body_get_drag_coefficient(RID p_body) const override { return 0; }

	virtual void soft_body_move_point(RID p_body, int p_point_index, const Vector3 &p_global_position) override {}
	virtual Vector3 soft_body_get_point_global_position(RID p_body, int p_point_index) const override { return Vector3(); }

	virtual void soft_body_remove_all_pinned_points(RID p_body) override {}
	virtual void soft_body_pin_point(RID p_body, int p_point_index, bool p_pin) override {}
	virtual bool soft_body_is_point_pinned(RID p_body, int p_point_index) const override { return false; }

	virtual void soft_body_apply_point_impulse(RID p_body, int p_point_index, const Vector3 &p_impulse) override {}
	virtual void soft_body_apply_point_force(RID p_body, int p_point_index, const Vector3 &p_force) override {}
	virtual void soft_body_apply_central_impulse(RID p_body, const Vector3 &p_impulse) override {}
	virtual void soft_body_apply_central_force(RID p_body, const Vector3 &p_force) override {}

	/* JOINT API */

	virtual RID joint_create() override { return RID(); }

	virtual void joint_clear(RID p_joint) override {}

	virtual JointType joint_get_type(RID p_joint) const override { return JointType::JOINT_TYPE_PIN; }

	virtual void joint_set_solver_priority(RID p_joint, int p_priority) override {}
	virtual int joint_get_solver_priority(RID p_joint) const override { return 0; }

	virtual void joint_disable_collisions_between_bodies(RID p_joint, bool p_disable) override {}
	virtual bool joint_is_disabled_collisions_between_bodies(RID p_joint) const override { return false; }

	virtual void joint_make_pin(RID p_joint, RID p_body_A, const Vector3 &p_local_A, RID p_body_B, const Vector3 &p_local_B) override {}

	virtual void pin_joint_set_param(RID p_joint, PinJointParam p_param, real_t p_value) override {}
	virtual real_t pin_joint_get_param(RID p_joint, PinJointParam p_param) const override { return 0; }

	virtual void pin_joint_set_local_a(RID p_joint, const Vector3 &p_A) override {}
	virtual Vector3 pin_joint_get_local_a(RID p_joint) const override { return Vector3(); }

	virtual void pin_joint_set_local_b(RID p_joint, const Vector3 &p_B) override {}
	virtual Vector3 pin_joint_get_local_b(RID p_joint) const override { return Vector3(); }