mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
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:
parent
8d287957f9
commit
afe8492241
66 changed files with 69 additions and 69 deletions
|
@ -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)).
|
- 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)).
|
- 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)).
|
- 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
|
#### GUI
|
||||||
|
|
|
@ -299,7 +299,7 @@ class CommandQueueMT {
|
||||||
DECL_CMD(0)
|
DECL_CMD(0)
|
||||||
SPACE_SEP_LIST(DECL_CMD, 13)
|
SPACE_SEP_LIST(DECL_CMD, 13)
|
||||||
|
|
||||||
/* comands that return */
|
/* commands that return */
|
||||||
DECL_CMD_RET(0)
|
DECL_CMD_RET(0)
|
||||||
SPACE_SEP_LIST(DECL_CMD_RET, 13)
|
SPACE_SEP_LIST(DECL_CMD_RET, 13)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class PHashTranslation : public Translation {
|
||||||
|
|
||||||
//this translation uses a sort of modified perfect hash algorithm
|
//this translation uses a sort of modified perfect hash algorithm
|
||||||
//it requires hashing strings twice and then does a binary search,
|
//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
|
//of catching untranslated strings
|
||||||
|
|
||||||
//load/store friendly types
|
//load/store friendly types
|
||||||
|
|
|
@ -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) {
|
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;
|
uint8_t *buf = r_buffer;
|
||||||
|
|
||||||
r_len = 0;
|
r_len = 0;
|
||||||
|
|
|
@ -50,8 +50,8 @@ public:
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param p_plane plane used to split the face
|
* @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_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 functio 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)
|
* @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
|
* @return amount of faces generated by the split, either 0 (means no split possible), 2 or 3
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
@author Juan Linietsky <reduzio@gmail.com>
|
@author Juan Linietsky <reduzio@gmail.com>
|
||||||
* Generic Pool Allocator.
|
* Generic Pool Allocator.
|
||||||
* This is a generic memory pool allocator, with locking, compacting and alignment. (@TODO alignment)
|
* 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.
|
* 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.
|
* (@TODO) abstraction should be greater, because in many platforms, you need to manage a nonreachable memory.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
The calculated light data.
|
The calculated light data.
|
||||||
</member>
|
</member>
|
||||||
<member name="quality" type="int" setter="set_bake_quality" getter="get_bake_quality" enum="BakedLightmap.BakeQuality" default="1">
|
<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>
|
||||||
<member name="use_color" type="bool" setter="set_use_color" getter="is_using_color" default="true">
|
<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.
|
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.
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
If [code]true[/code], the button's state is pressed. If [code]false[/code], the button's state is released.
|
If [code]true[/code], the button's state is pressed. If [code]false[/code], the button's state is released.
|
||||||
</member>
|
</member>
|
||||||
<member name="pressure" type="float" setter="set_pressure" getter="get_pressure" default="0.0">
|
<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>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<constants>
|
<constants>
|
||||||
|
|
|
@ -29095,7 +29095,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29042,7 +29042,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28862,7 +28862,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29533,7 +29533,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -31228,7 +31228,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29017,7 +29017,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -38638,7 +38638,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Representa la presión que el usuario ejerce sobre el botón con su dedo, si "
|
"Representa la presión que el usuario ejerce sobre el botón con su dedo, si "
|
||||||
|
|
|
@ -29436,7 +29436,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29020,7 +29020,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28997,7 +28997,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -31229,7 +31229,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28869,7 +28869,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28867,7 +28867,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28884,7 +28884,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29203,7 +29203,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28868,7 +28868,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29860,7 +29860,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -31896,7 +31896,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29235,7 +29235,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29011,7 +29011,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28867,7 +28867,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28877,7 +28877,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29045,7 +29045,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29485,7 +29485,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28907,7 +28907,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -30037,7 +30037,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29010,7 +29010,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -30780,7 +30780,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28998,7 +28998,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29008,7 +29008,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28869,7 +28869,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29111,7 +29111,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -28941,7 +28941,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29800,7 +29800,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29149,7 +29149,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -29338,7 +29338,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -36150,7 +36150,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"如果控制器支持,则表示用户用手指在按钮上施加的压力。范围从 [code]0[/code] 到 "
|
"如果控制器支持,则表示用户用手指在按钮上施加的压力。范围从 [code]0[/code] 到 "
|
||||||
|
|
|
@ -29127,7 +29127,7 @@ msgstr ""
|
||||||
|
|
||||||
#: doc/classes/InputEventJoypadButton.xml
|
#: doc/classes/InputEventJoypadButton.xml
|
||||||
msgid ""
|
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]."
|
"controller supports it. Ranges from [code]0[/code] to [code]1[/code]."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -1213,7 +1213,7 @@ bool RasterizerSceneGLES3::_setup_material(RasterizerStorageGLES3::Material *p_m
|
||||||
glBindTexture(target, tex);
|
glBindTexture(target, tex);
|
||||||
|
|
||||||
if (t && storage->config.srgb_decode_supported) {
|
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;
|
bool must_srgb = false;
|
||||||
|
|
||||||
if (t->srgb && (texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_ALBEDO || texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_BLACK_ALBEDO)) {
|
if (t->srgb && (texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_ALBEDO || texture_hints[i] == ShaderLanguage::ShaderNode::Uniform::HINT_BLACK_ALBEDO)) {
|
||||||
|
|
|
@ -1768,7 +1768,7 @@ void main() {
|
||||||
discard;
|
discard;
|
||||||
#endif
|
#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;
|
highp vec3 vertex = vertex_interp;
|
||||||
vec3 view = -normalize(vertex_interp);
|
vec3 view = -normalize(vertex_interp);
|
||||||
vec3 albedo = vec3(1.0);
|
vec3 albedo = vec3(1.0);
|
||||||
|
|
|
@ -324,7 +324,7 @@ float EditorAudioBus::_normalized_volume_to_scaled_db(float normalized) {
|
||||||
/* There are three different formulas for the conversion from normalized
|
/* There are three different formulas for the conversion from normalized
|
||||||
* values to relative decibal values.
|
* values to relative decibal values.
|
||||||
* One formula is an exponential graph which intends to counteract
|
* 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
|
* of the behaviour of a 'logarithmic potentiometer' found on most
|
||||||
* musical instruments and also emulated in popular software.
|
* musical instruments and also emulated in popular software.
|
||||||
* The other two equations are hand-tuned linear tapers that intend to
|
* The other two equations are hand-tuned linear tapers that intend to
|
||||||
|
|
|
@ -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()) {
|
for (List<String>::Element *E = sk.front(); E; E = E->next()) {
|
||||||
String param = E->get();
|
String param = E->get();
|
||||||
Variant value = config->get_value("params", param);
|
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;
|
source_file_options[p_files[i]][param] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1697,7 +1697,7 @@ void EditorInspector::update_tree() {
|
||||||
if (F->get().label != String()) {
|
if (F->get().label != String()) {
|
||||||
ep->set_label(F->get().label);
|
ep->set_label(F->get().label);
|
||||||
} else {
|
} else {
|
||||||
//use existin one
|
//use existing one
|
||||||
ep->set_label(name);
|
ep->set_label(name);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < F->get().properties.size(); i++) {
|
for (int i = 0; i < F->get().properties.size(); i++) {
|
||||||
|
|
|
@ -535,7 +535,7 @@ String RenameDialog::_postprocess(const String &subject) {
|
||||||
// To Lowercase
|
// To Lowercase
|
||||||
result = result.to_lower();
|
result = result.to_lower();
|
||||||
} else if (case_id == 2) {
|
} else if (case_id == 2) {
|
||||||
// To Upercase
|
// To Uppercase
|
||||||
result = result.to_upper();
|
result = result.to_upper();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@ public:
|
||||||
curly_stack++;
|
curly_stack++;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
break; //whathever else
|
break; //whatever else
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#define CAMERAOSX_H
|
#define CAMERAOSX_H
|
||||||
|
|
||||||
///@TODO this is a near duplicate of CameraIOS, we should find a way to combine those to minimize code duplication!!!!
|
///@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"
|
#include "servers/camera_server.h"
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
///@TODO this is a near duplicate of CameraIOS, we should find a way to combine those to minimize code duplication!!!!
|
///@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 "camera_osx.h"
|
||||||
#include "servers/camera/camera_feed.h"
|
#include "servers/camera/camera_feed.h"
|
||||||
|
|
|
@ -145,7 +145,7 @@ typedef struct {
|
||||||
} godot_method_attributes;
|
} godot_method_attributes;
|
||||||
|
|
||||||
typedef struct {
|
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 **);
|
GDCALLINGCONV godot_variant (*method)(godot_object *, void *, void *, int, godot_variant **);
|
||||||
void *method_data;
|
void *method_data;
|
||||||
GDCALLINGCONV void (*free_func)(void *);
|
GDCALLINGCONV void (*free_func)(void *);
|
||||||
|
|
|
@ -187,7 +187,7 @@ void GDMonoClass::fetch_methods_with_godot_api_checks(GDMonoClass *p_native_base
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
// For debug builds, we also fetched from native base classes as well before if this is not a native base class.
|
// 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) {
|
if (p_native_base != this) {
|
||||||
GDMonoClass *native_top = p_native_base;
|
GDMonoClass *native_top = p_native_base;
|
||||||
|
|
|
@ -778,7 +778,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ResourceCache::has(script)) {
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
Ref<Script> cast_script = Ref<Resource>(ResourceCache::get(script));
|
Ref<Script> cast_script = Ref<Resource>(ResourceCache::get(script));
|
||||||
|
|
|
@ -2598,7 +2598,7 @@ void OS_X11::process_xevents() {
|
||||||
window_focused = false;
|
window_focused = false;
|
||||||
|
|
||||||
if (mouse_mode_grab) {
|
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) {
|
if (mouse_mode == MOUSE_MODE_CAPTURED) {
|
||||||
// Show the cursor if we're in captured mode so it doesn't look weird.
|
// Show the cursor if we're in captured mode so it doesn't look weird.
|
||||||
XUndefineCursor(x11_display, x11_window);
|
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);
|
DirAccessRef dir_access = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||||
Error err = dir_access->make_dir_recursive(trash_path);
|
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_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 = 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\"");
|
ERR_FAIL_COND_V_MSG(err != OK, err, "Could not create the trash path \"" + trash_path + "/files\"");
|
||||||
|
|
|
@ -605,7 +605,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_seeked) {
|
if (p_seeked) {
|
||||||
//find whathever should be playing
|
//find whatever should be playing
|
||||||
int idx = a->track_find_key(i, p_time);
|
int idx = a->track_find_key(i, p_time);
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ void AnimationTree::_process_graph(float p_delta) {
|
||||||
TrackCacheAudio *t = static_cast<TrackCacheAudio *>(track);
|
TrackCacheAudio *t = static_cast<TrackCacheAudio *>(track);
|
||||||
|
|
||||||
if (seeked) {
|
if (seeked) {
|
||||||
//find whathever should be playing
|
//find whatever should be playing
|
||||||
int idx = a->track_find_key(i, time);
|
int idx = a->track_find_key(i, time);
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -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()) {
|
//if (from && p_event->is_pressed() && !p_event->get_alt() && !p_event->get_metakey() && !p_event->key->get_command()) {
|
||||||
|
|
||||||
Ref<InputEventKey> k = p_event;
|
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());
|
bool mods = k.is_valid() && (k->get_control() || k->get_alt() || k->get_shift() || k->get_metakey());
|
||||||
|
|
||||||
if (from && p_event->is_pressed()) {
|
if (from && p_event->is_pressed()) {
|
||||||
|
|
|
@ -1221,7 +1221,7 @@ String ResourceFormatLoaderText::get_resource_type(const String &p_path) const {
|
||||||
return String();
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
//for anyhting else must test..
|
//for anything else must test..
|
||||||
|
|
||||||
FileAccess *f = FileAccess::open(p_path, FileAccess::READ);
|
FileAccess *f = FileAccess::open(p_path, FileAccess::READ);
|
||||||
if (!f) {
|
if (!f) {
|
||||||
|
|
|
@ -311,12 +311,12 @@ public:
|
||||||
m_angularLimits[2].m_hiLimit = angularUpper.z;
|
m_angularLimits[2].m_hiLimit = angularUpper.z;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Retrieves the angular limit informacion
|
//! Retrieves the angular limit information
|
||||||
G6DOFRotationalLimitMotorSW *getRotationalLimitMotor(int index) {
|
G6DOFRotationalLimitMotorSW *getRotationalLimitMotor(int index) {
|
||||||
return &m_angularLimits[index];
|
return &m_angularLimits[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Retrieves the limit informacion
|
//! Retrieves the limit information
|
||||||
G6DOFTranslationalLimitMotorSW *getTranslationalLimitMotor() {
|
G6DOFTranslationalLimitMotorSW *getTranslationalLimitMotor() {
|
||||||
return &m_linearLimits;
|
return &m_linearLimits;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 softness = (i) ? m_softnessOrthoLin : (m_solveLinLim ? m_softnessLimLin : m_softnessDirLin);
|
||||||
real_t restitution = (i) ? m_restitutionOrthoLin : (m_solveLinLim ? m_restitutionLimLin : m_restitutionDirLin);
|
real_t restitution = (i) ? m_restitutionOrthoLin : (m_solveLinLim ? m_restitutionLimLin : m_restitutionDirLin);
|
||||||
real_t damping = (i) ? m_dampingOrthoLin : (m_solveLinLim ? m_dampingLimLin : m_dampingDirLin);
|
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];
|
real_t normalImpulse = softness * (restitution * depth / p_step - damping * rel_vel) * m_jacLinDiagABInv[i];
|
||||||
Vector3 impulse_vector = normal * normalImpulse;
|
Vector3 impulse_vector = normal * normalImpulse;
|
||||||
A->apply_impulse(m_relPosA, impulse_vector);
|
A->apply_impulse(m_relPosA, impulse_vector);
|
||||||
|
|
|
@ -357,7 +357,7 @@ Vector2 VisualServer::norm_to_oct(const Vector3 v) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maps normalized tangent vector to an octahedron projected onto the cartesian plane
|
// 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)
|
// high_precision specifies whether the encoding will be 32 bit (true) or 16 bit (false)
|
||||||
// Resulting 2D vector in range [-1, 1]
|
// Resulting 2D vector in range [-1, 1]
|
||||||
// See http://jcgt.org/published/0003/02/01/ for details
|
// See http://jcgt.org/published/0003/02/01/ for details
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue