Fix typos with codespell

Using codespell 2.2-dev from current git.

Fix a couple incorrect uses of gendered pronouns.
This commit is contained in:
Rémi Verschelde 2022-06-19 14:06:55 +02:00
parent 8d287957f9
commit afe8492241
66 changed files with 69 additions and 69 deletions

View file

@ -29,7 +29,7 @@ See the [release announcement](https://godotengine.org/article/maintenance-relea
- Print every file exported with `PCKPacker.flush()`'s verbose parameter ([GH-58520](https://github.com/godotengine/godot/pull/58520)).
- Fix `UndoRedo::create_action()` invalid memory usage ([GH-58652](https://github.com/godotengine/godot/pull/58652)).
- Revert "Fix ProjectSettings `has_setting()` when used on a overriden setting with feature tags" ([GH-58859](https://github.com/godotengine/godot/pull/58859)).
- Revert "Fix ProjectSettings `has_setting()` when used on a overridden setting with feature tags" ([GH-58859](https://github.com/godotengine/godot/pull/58859)).
- Fix crash on `Input.get_joy_button_index_from_string` and `Input.get_joy_axis_index_from_string` for non-existing key ([GH-59195](https://github.com/godotengine/godot/pull/59195)).
#### GUI

View file

@ -299,7 +299,7 @@ class CommandQueueMT {
DECL_CMD(0)
SPACE_SEP_LIST(DECL_CMD, 13)
/* comands that return */
/* commands that return */
DECL_CMD_RET(0)
SPACE_SEP_LIST(DECL_CMD_RET, 13)

View file

@ -38,7 +38,7 @@ class PHashTranslation : public Translation {
//this translation uses a sort of modified perfect hash algorithm
//it requires hashing strings twice and then does a binary search,
//so it's slower, but at the same time it has an extreemly high chance
//so it's slower, but at the same time it has an extremely high chance
//of catching untranslated strings
//load/store friendly types

View file

@ -765,7 +765,7 @@ static void _encode_string(const String &p_string, uint8_t *&buf, int &r_len) {
}
Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bool p_full_objects, int p_depth) {
ERR_FAIL_COND_V_MSG(p_depth > Variant::MAX_RECURSION_DEPTH, ERR_OUT_OF_MEMORY, "Potential inifite recursion detected. Bailing.");
ERR_FAIL_COND_V_MSG(p_depth > Variant::MAX_RECURSION_DEPTH, ERR_OUT_OF_MEMORY, "Potential infinite recursion detected. Bailing.");
uint8_t *buf = r_buffer;
r_len = 0;

View file

@ -50,8 +50,8 @@ public:
/**
*
* @param p_plane plane used to split the face
* @param p_res array of at least 3 faces, amount used in functio return
* @param p_is_point_over array of at least 3 booleans, determining which face is over the plane, amount used in functio return
* @param p_res array of at least 3 faces, amount used in function return
* @param p_is_point_over array of at least 3 booleans, determining which face is over the plane, amount used in function return
* @param _epsilon constant used for numerical error rounding, to add "thickness" to the plane (so coplanar points can happen)
* @return amount of faces generated by the split, either 0 (means no split possible), 2 or 3
*/

View file

@ -37,7 +37,7 @@
@author Juan Linietsky <reduzio@gmail.com>
* Generic Pool Allocator.
* This is a generic memory pool allocator, with locking, compacting and alignment. (@TODO alignment)
* It used as a standard way to manage alloction in a specific region of memory, such as texture memory,
* It used as a standard way to manage allocation in a specific region of memory, such as texture memory,
* audio sample memory, or just any kind of memory overall.
* (@TODO) abstraction should be greater, because in many platforms, you need to manage a nonreachable memory.
*/

View file

@ -81,7 +81,7 @@
The calculated light data.
</member>
<member name="quality" type="int" setter="set_bake_quality" getter="get_bake_quality" enum="BakedLightmap.BakeQuality" default="1">
Determines the amount of samples per texel used in indrect light baking. The amount of samples for each quality level can be configured in the project settings.
Determines the amount of samples per texel used in indirect light baking. The amount of samples for each quality level can be configured in the project settings.
</member>
<member name="use_color" type="bool" setter="set_use_color" getter="is_using_color" default="true">
Store full color values in the lightmap textures. When disabled, lightmap textures will store a single brightness channel. Can be disabled to reduce disk usage if the scene contains only white lights or you don't mind losing color information in indirect lighting.

View file

@ -19,7 +19,7 @@
If [code]true[/code], the button's state is pressed. If [code]false[/code], the button's state is released.
</member>
<member name="pressure" type="float" setter="set_pressure" getter="get_pressure" default="0.0">
Represents the pressure the user puts on the button with his finger, if the controller supports it. Ranges from [code]0[/code] to [code]1[/code].
Represents the pressure the user puts on the button with their finger, if the controller supports it. Ranges from [code]0[/code] to [code]1[/code].
</member>
</members>
<constants>

View file

@ -29095,7 +29095,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29042,7 +29042,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28862,7 +28862,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29533,7 +29533,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -31228,7 +31228,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29017,7 +29017,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -38638,7 +38638,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""
"Representa la presión que el usuario ejerce sobre el botón con su dedo, si "

View file

@ -29436,7 +29436,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29020,7 +29020,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28997,7 +28997,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -31229,7 +31229,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28869,7 +28869,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28867,7 +28867,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28884,7 +28884,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29203,7 +29203,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28868,7 +28868,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29860,7 +29860,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -31896,7 +31896,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29235,7 +29235,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29011,7 +29011,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28867,7 +28867,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28877,7 +28877,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29045,7 +29045,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29485,7 +29485,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28907,7 +28907,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -30037,7 +30037,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29010,7 +29010,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -30780,7 +30780,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28998,7 +28998,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29008,7 +29008,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28869,7 +28869,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29111,7 +29111,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -28941,7 +28941,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29800,7 +29800,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29149,7 +29149,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -29338,7 +29338,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -36150,7 +36150,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""
"如果控制器支持,则表示用户用手指在按钮上施加的压力。范围从 [code]0[/code] 到 "

View file

@ -29127,7 +29127,7 @@ msgstr ""
#: doc/classes/InputEventJoypadButton.xml
msgid ""
"Represents the pressure the user puts on the button with his finger, if the "
"Represents the pressure the user puts on the button with their finger, if the "
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
msgstr ""

View file

@ -1213,7 +1213,7 @@ bool RasterizerSceneGLES3::_setup_material(RasterizerStorageGLES3::Material *p_m
glBindTexture(target, tex);
if (t && storage->config.srgb_decode_supported) {
//if SRGB decode extension is present, simply switch the texture to whathever is needed
//if SRGB decode extension is present, simply switch the texture to whatever is needed
bool must_srgb = false;
if (t->srgb && (texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_ALBEDO || texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_BLACK_ALBEDO)) {

View file

@ -1768,7 +1768,7 @@ void main() {
discard;
#endif
//lay out everything, whathever is unused is optimized away anyway
//lay out everything, whatever is unused is optimized away anyway
highp vec3 vertex = vertex_interp;
vec3 view = -normalize(vertex_interp);
vec3 albedo = vec3(1.0);

View file

@ -324,7 +324,7 @@ float EditorAudioBus::_normalized_volume_to_scaled_db(float normalized) {
/* There are three different formulas for the conversion from normalized
* values to relative decibal values.
* One formula is an exponential graph which intends to counteract
* the logorithmic nature of human hearing. This is an approximation
* the logarithmic nature of human hearing. This is an approximation
* of the behaviour of a 'logarithmic potentiometer' found on most
* musical instruments and also emulated in popular software.
* The other two equations are hand-tuned linear tapers that intend to

View file

@ -1544,7 +1544,7 @@ Error EditorFileSystem::_reimport_group(const String &p_group_file, const Vector
for (List<String>::Element *E = sk.front(); E; E = E->next()) {
String param = E->get();
Variant value = config->get_value("params", param);
//override with whathever is in file
//override with whatever is in file
source_file_options[p_files[i]][param] = value;
}
}

View file

@ -1697,7 +1697,7 @@ void EditorInspector::update_tree() {
if (F->get().label != String()) {
ep->set_label(F->get().label);
} else {
//use existin one
//use existing one
ep->set_label(name);
}
for (int i = 0; i < F->get().properties.size(); i++) {

View file

@ -535,7 +535,7 @@ String RenameDialog::_postprocess(const String &subject) {
// To Lowercase
result = result.to_lower();
} else if (case_id == 2) {
// To Upercase
// To Uppercase
result = result.to_upper();
}

View file

@ -319,7 +319,7 @@ public:
curly_stack++;
break;
} else {
break; //whathever else
break; //whatever else
}
}

View file

@ -32,7 +32,7 @@
#define CAMERAOSX_H
///@TODO this is a near duplicate of CameraIOS, we should find a way to combine those to minimize code duplication!!!!
// If you fix something here, make sure you fix it there as wel!
// If you fix something here, make sure you fix it there as well!
#include "servers/camera_server.h"

View file

@ -29,7 +29,7 @@
/*************************************************************************/
///@TODO this is a near duplicate of CameraIOS, we should find a way to combine those to minimize code duplication!!!!
// If you fix something here, make sure you fix it there as wel!
// If you fix something here, make sure you fix it there as well!
#include "camera_osx.h"
#include "servers/camera/camera_feed.h"

View file

@ -145,7 +145,7 @@ typedef struct {
} godot_method_attributes;
typedef struct {
// instance pointer, method data, user data, num args, args - return result as varaint
// instance pointer, method data, user data, num args, args - return result as variant
GDCALLINGCONV godot_variant (*method)(godot_object *, void *, void *, int, godot_variant **);
void *method_data;
GDCALLINGCONV void (*free_func)(void *);

View file

@ -187,7 +187,7 @@ void GDMonoClass::fetch_methods_with_godot_api_checks(GDMonoClass *p_native_base
#ifdef DEBUG_ENABLED
// For debug builds, we also fetched from native base classes as well before if this is not a native base class.
// This allows us to warn the user here if he is using snake_case by mistake.
// This allows us to warn the user here if they are using snake_case by mistake.
if (p_native_base != this) {
GDMonoClass *native_top = p_native_base;

View file

@ -778,7 +778,7 @@ public:
}
if (!ResourceCache::has(script)) {
//if the script is not in use by anyone, we can safely assume whathever we got is not casting to it.
//if the script is not in use by anyone, we can safely assume whatever we got is not casting to it.
return 1;
}
Ref<Script> cast_script = Ref<Resource>(ResourceCache::get(script));

View file

@ -2598,7 +2598,7 @@ void OS_X11::process_xevents() {
window_focused = false;
if (mouse_mode_grab) {
//dear X11, I try, I really try, but you never work, you do whathever you want.
//dear X11, I try, I really try, but you never work, you do whatever you want.
if (mouse_mode == MOUSE_MODE_CAPTURED) {
// Show the cursor if we're in captured mode so it doesn't look weird.
XUndefineCursor(x11_display, x11_window);
@ -3834,7 +3834,7 @@ Error OS_X11::move_to_trash(const String &p_path) {
DirAccessRef dir_access = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
Error err = dir_access->make_dir_recursive(trash_path);
// Issue an error if trash can is not created proprely.
// Issue an error if trash can is not created properly.
ERR_FAIL_COND_V_MSG(err != OK, err, "Could not create the trash path \"" + trash_path + "\"");
err = dir_access->make_dir_recursive(trash_path + "/files");
ERR_FAIL_COND_V_MSG(err != OK, err, "Could not create the trash path \"" + trash_path + "/files\"");

View file

@ -605,7 +605,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float
}
if (p_seeked) {
//find whathever should be playing
//find whatever should be playing
int idx = a->track_find_key(i, p_time);
if (idx < 0) {
continue;

View file

@ -1011,7 +1011,7 @@ void AnimationTree::_process_graph(float p_delta) {
TrackCacheAudio *t = static_cast<TrackCacheAudio *>(track);
if (seeked) {
//find whathever should be playing
//find whatever should be playing
int idx = a->track_find_key(i, time);
if (idx < 0) {
continue;

View file

@ -2420,7 +2420,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
//if (from && p_event->is_pressed() && !p_event->get_alt() && !p_event->get_metakey() && !p_event->key->get_command()) {
Ref<InputEventKey> k = p_event;
//need to check for mods, otherwise any combination of alt/ctrl/shift+<up/down/left/righ/etc> is handled here when it shouldn't be.
//need to check for mods, otherwise any combination of alt/ctrl/shift+<up/down/left/right/etc> is handled here when it shouldn't be.
bool mods = k.is_valid() && (k->get_control() || k->get_alt() || k->get_shift() || k->get_metakey());
if (from && p_event->is_pressed()) {

View file

@ -1221,7 +1221,7 @@ String ResourceFormatLoaderText::get_resource_type(const String &p_path) const {
return String();
}
//for anyhting else must test..
//for anything else must test..
FileAccess *f = FileAccess::open(p_path, FileAccess::READ);
if (!f) {

View file

@ -311,12 +311,12 @@ public:
m_angularLimits[2].m_hiLimit = angularUpper.z;
}
//! Retrieves the angular limit informacion
//! Retrieves the angular limit information
G6DOFRotationalLimitMotorSW *getRotationalLimitMotor(int index) {
return &m_angularLimits[index];
}
//! Retrieves the limit informacion
//! Retrieves the limit information
G6DOFTranslationalLimitMotorSW *getTranslationalLimitMotor() {
return &m_linearLimits;
}

View file

@ -201,7 +201,7 @@ void SliderJointSW::solve(real_t p_step) {
real_t softness = (i) ? m_softnessOrthoLin : (m_solveLinLim ? m_softnessLimLin : m_softnessDirLin);
real_t restitution = (i) ? m_restitutionOrthoLin : (m_solveLinLim ? m_restitutionLimLin : m_restitutionDirLin);
real_t damping = (i) ? m_dampingOrthoLin : (m_solveLinLim ? m_dampingLimLin : m_dampingDirLin);
// calcutate and apply impulse
// calculate and apply impulse
real_t normalImpulse = softness * (restitution * depth / p_step - damping * rel_vel) * m_jacLinDiagABInv[i];
Vector3 impulse_vector = normal * normalImpulse;
A->apply_impulse(m_relPosA, impulse_vector);

View file

@ -357,7 +357,7 @@ Vector2 VisualServer::norm_to_oct(const Vector3 v) {
}
// Maps normalized tangent vector to an octahedron projected onto the cartesian plane
// Encodes the tangent vector sign in the second componenet of the returned Vector2 for use in shaders
// Encodes the tangent vector sign in the second component of the returned Vector2 for use in shaders
// high_precision specifies whether the encoding will be 32 bit (true) or 16 bit (false)
// Resulting 2D vector in range [-1, 1]
// See http://jcgt.org/published/0003/02/01/ for details