Age | Commit message (Collapse) | Author |
|
Better heuristic for the shortest path algorithm for navigation2D
|
|
navigation.
Better heuristic for the shortest path algorithm for navigation2D and navigation.
It now will use the shortest distance to the polygon as cost instead of the distance to the center.
|
|
Misc. typos
|
|
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
|
|
|
|
Drop deprecated compatibility methods from AnimatedSprite
|
|
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
|
|
They were deprecated in 2.1, but never properly identified as such
and thus never removed.
Fixes #21765.
|
|
|
|
|
|
It's shared by both 2D and 3D particles (+ CPU ones), so it makes sense
to have as a common resource. It also allowed to disable compilation of
Particles (3D) when using 'disable_3d'.
Also cleaned up includes in SpatialEditorGizmos and some other places,
as well as dropped dead code in material_editor_plugin.cpp.
|
|
And don't save physics_material_override if null.
|
|
|
|
It now behaves the same as RayCast (3D).
Fixed documentation accordingly and documented new configuration options.
Supersedes and closes #20567.
|
|
|
|
|
|
Without this change any new PhysicsBody would show deprecation warnings
due to default values for friction and bounce being defined.
It also enforced a physics material override even when using default
values.
|
|
|
|
Fixes #16038.
|
|
Supersedes and closes #21193.
|
|
Particles2D: fix editing Visibility Rect from new inspector
|
|
|
|
use it.
Provides massive speedups to selecting objects, still awaiting for @MarianoGNU to do fixes to the region editor to improve performance.
|
|
This reverts commit 4839e5f6d9ed1c0afee933009ab44b9913310d27.
Fixes #21289.
|
|
#17671
|
|
|
|
Fixes #20459.
Co-authored-by: Tiago José Sousa Magalhães <crakylps@gmail.com>
|
|
Take CanvasLayer transform into account for 2D physics
|
|
ability to choose between bodies and areas when colliding.
|
|
So it takes advantage of the `get_global_transform` cached data.
|
|
Fixes #18073.
|
|
This average is not a proper approximation of a grayscale value,
get_v() is better suited for that.
If we want a real to_grayscale() conversion, it's somewhat more
involved: https://en.wikipedia.org/wiki/Grayscale
Remove the deprecated Gray() from C# bindings as it conflicts
with new named color constants.
|
|
|
|
Added stop_on_slope on 2d part
|
|
+ renamed generate_aabb to generate_visibility_rect to prevent future confusions
|
|
Fixes #15947.
|
|
[Core] Split up math_2d.h
|
|
Fixes bugs on the 2D editor scrollable area
|
|
|
|
|
|
|
|
Improved Physics material
|
|
parameter to material. Fixed 'change' signal connection
|
|
|
|
Fixes #20483.
|
|
Fix various missing arguments in bindings.
|
|
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
|
|
Ensured consistency between RigidBody, PhysicsDirectBodyState, PhysicsServers and their 2D counterparts
|
|
Fix CanvasItem's search for a CanvasLayer
|
|
respective 2D counterparts to be more consistent and to include more useful methods.
RigidBody:
- Added add_central_force
- Added add_force
- Added add_torque
- Added apply_central_impulse
RigidBody2D:
- Added add_central_force
- Added add_torque
- Added apply_central_impulse
- Added apply_torque_impulse
PhysicsDirectBodyState:
- Added apply_central_impulse
Physics2DDirectBodyState:
- Added add_central_force
- Added add_force
- Added add_torque
- Added apply_central_impulse
- Added apply_impulse
- Added apply_torque_impulse
PhysicsServer:
- Added body_add_force
- Added body_add_torque
- Added body_add_central_force
- Added body_apply_central_impulse
Physics2DServer:
- Added body_add_torque
- Added body_add_central_force
- Added body_apply_central_impulse
- Added body_apply_torque_impulse
Also fixed some small bugs along the way
|