Rémi Verschelde
153c132a7e
Merge pull request #44300 from KoBeWi/ 🧹 🧹
...
Move initialization of some classes to headers
2020-12-21 00:24:36 +01:00
Dominik 'dreamsComeTrue' Jasiński
aba477361d
Fix camera2d zoom when set to zero (causing ERROR: affine_invert: Condition ' det == 0 ' is true.)
...
Fixes : #41873
2020-12-16 23:42:12 +01:00
Tomasz Chabora
31cb04fbdd
Move initialization of some classes to headers
2020-12-11 18:20:03 +01:00
Tomasz Chabora
2c048ea164
Cleanup unused engine code
2020-12-09 12:12:36 +01:00
Aaron Franke
47f8ac7864
Rename Particles/ParticlesMaterial "Flags" enum to "ParticleFlags"
...
"Flags" was a bit too ambiguous, and in 3D it hid GeometryInstance.Flags
2020-12-04 19:34:29 -05:00
Aaron Franke
1b499d244a
Rename LightOccluder2D light_mask to occluder_light_mask
2020-12-04 19:34:29 -05:00
Aaron Franke
ce9d87ddfd
Rename PathFollow2D rotate bool
2020-12-04 18:59:02 -05:00
Marcel Admiraal
981fbcd3e0
Remove RigidBody weight property
2020-11-27 17:39:20 +00:00
reduz
1bcf3c305b
Implement signed distance fields for 2D shaders
2020-11-26 10:49:50 -03:00
Marcel Admiraal
002cc47fbd
Check joint nodes and generate configuration warning messages.
2020-11-25 20:53:19 +00:00
greenfox
b9c0897713
fixed Camera2D rotation with non-square zoom
2020-11-22 18:09:33 -06:00
Aaron Franke
02161aad5a
Remove empty lines around braces with the formatting script
2020-11-16 23:38:11 -05:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
Rémi Verschelde
424cd00f8b
doc: Sync classref with current source + fixup some bindings
...
Includes various changes triggered by the refactoring of method bindings.
2020-11-04 15:38:26 +01:00
reduz
f123981a96
Implement DirectionalLight2D
...
Also separated Light2D in PointLight2D and DirectionalLight2D.
Used PointLight2D because its more of a point, and it does not work
the same as OmniLight (as shape depends on texture).
Added a few utility methods to Rect2D I needed.
2020-11-04 10:03:01 -03:00
reduz
0e6664539d
Refactor pixel snapping.
...
-Rename pixel_snap to snap_2d_to_vertices
-Added snap_2d_to_transforms which is more useful
Fixes #41814
Solves proposal https://github.com/godotengine/godot-proposals/issues/1666
Supersedes #35606 , supersedes #41535 , supersedes #41534
2020-10-30 08:57:32 -03:00
reduz
8ab9b39707
Implement CanvasGroup and CanvasItem clipping
...
-Allows merging several 2D objects into a single draw operation
-Use current node to clip children nodes
-Further fixes to Vulkan barriers
-Changed font texture generation to white, fixes dark eges when blurred
-Other small misc fixes to backbuffer code.
2020-10-28 18:53:32 -03:00
Eric Tuvesson
e892a92ad6
fix(sprite2d): Rect is not handling pixel snap
...
related https://github.com/godotengine/godot/issues/42985
2020-10-27 23:34:19 +01:00
Rémi Verschelde
8ee44cc60c
Merge pull request #43075 from Xrayez/color-ramp-to-gradient
...
Fixup `ColorRamp` to `Gradient` renames
2020-10-26 08:44:27 +01:00
Andrii Doroshenko (Xrayez)
8ce2f401dd
Fixup ColorRamp
to Gradient
renames
2020-10-25 18:32:44 +02:00
reduz
84d734da0e
Refactored 2D shader and lighting system
...
-Removed normal/specular properties from nodes
-Create CanvasTexture, which can contain normal/specular channels
-Refactored, optimized and simplified 2D shaders
-Use atlas for light textures.
-Use a shadow atlas for shadow textures.
-Use both items aboves to make light rendering stateless (faster).
-Reorganized uniform sets for more efficiency.
2020-10-24 15:57:25 -03:00
reduz
ee06a70ea6
Refactor MethodBind to use variadic templates
...
Removed make_binders and the old style generated binders.
2020-10-18 12:28:44 +02:00
Marcel Admiraal
a17fdaef09
Remove old RigidBody layers property and methods.
2020-10-13 16:59:49 +01:00
Marcel Admiraal
2bb0427662
Remove area or body from map before emitting signals.
2020-10-02 17:03:09 +01:00
Rémi Verschelde
7b18a7143b
Better validate CollisionShape3D config. warning after #38743
...
Relates to #42479 , though I don't think it would crash in the master version.
2020-10-02 09:41:55 +02:00
Rémi Verschelde
12091b39d2
Merge pull request #38743 from arrowinaknee/node-config-warnings
...
Update all get_configuration_warning() to retrieve warnings from the parent
2020-10-01 14:03:29 +02:00
Rémi Verschelde
f87c75f77b
Merge pull request #41934 from timothyqiu/parallax-ignore-zoom
...
Fixes ParallaxLayer offset when camera zoom is ignored
2020-09-24 15:23:24 +02:00
booer
113921b56c
Fixes updating CPUParticles emmision shape values
2020-09-23 14:17:47 +07:00
Mateo Dev .59
bb7db2138b
TileMap: Set texture_filter and texture_repeat to generated CanvasItems and update when it changes
2020-09-12 11:49:38 -03:00
Hugo Locurcio
a706c22db7
Rename RayCast's cast_to
property to target_position
...
`cast_to` is sometimes mistaken as a method rather than a property.
`target_position` makes it more obvious that it's a property.
2020-09-10 19:06:56 +02:00
Haoyu Qiu
5e2167631b
Fixes ParallaxLayer offset when ignore camera zoom
2020-09-10 11:08:20 +08:00
Jonathan Vice
28326aec60
Reorder sprite h_frames & v_frames
2020-08-31 14:55:49 +02:00
Rémi Verschelde
6875c9d684
Merge pull request #40302 from verdog/camera-bounds-fix
...
Fix Camera2D Incorrect Preview Bounds
2020-08-27 09:58:24 +02:00
PouleyKetchoupp
1c231cacb3
Fix 2D Particle velocity with directed emission mask
...
Changed CPU velocity calculation for EMISSION_SHAPE_DIRECTED_POINTS
to follow the same logic as in the GPU version:
mat2 rotm;
rotm[0] = texelFetch(emission_texture_normal, emission_tex_ofs, 0).xy;
rotm[1] = rotm[0].yx * vec2(1.0, -1.0);
VELOCITY.xy = rotm * VELOCITY.xy;
Now both CPUParticles2D & CPUParticles3D (z disabled) show the same results
as their GPU counterparts and take the initial velocity settings into account.
2020-08-09 18:16:53 +02:00
Josh Chandler
79e44f4033
fixed camera2D showing incorrect bounds in editor
2020-07-18 18:01:37 -04:00
Rémi Verschelde
c5d02fdffc
Revert "Merge pull request #38341 from verdog/camera-bounds-fix"
...
This reverts commit 08bbb3f161
.
2020-07-11 19:05:48 +01:00
Rémi Verschelde
dcd11faad3
Merge pull request #40253 from madmiraal/add-override-keywords
...
Add override keywords.
2020-07-10 21:04:23 +02:00
Rémi Verschelde
08bbb3f161
Merge pull request #38341 from verdog/camera-bounds-fix
...
Fix Camera2D incorrect preview bounds
2020-07-10 19:35:26 +02:00
Marcel Admiraal
26fcf2b04c
Add override keywords.
2020-07-10 13:56:54 +01:00
Andrii Doroshenko (Xrayez)
dc446203be
Provide warning when using polygon shapes in CollisionShape2D
node
...
`ConvexPolygonShape2D` and `ConcavePolygonShape2D` are only meant to be
used directly in code and not in the editor for physics-based use cases
specifically.
Developers are advised to use `CollisionPolygon2D` instead, which does
generate those shapes under the hood, handling polygon convexivity,
proper orientation etc.
2020-07-03 15:46:09 +03:00
Rémi Verschelde
67e4082b1e
Merge pull request #37350 from aaronfranke/force-impulse
...
Refactor physics force and impulse code to use (force, position) order
2020-07-02 18:39:16 +02:00
Rémi Verschelde
34e011c8a5
Merge pull request #36307 from Xrayez/raycast-enabled-true
...
Enable raycast nodes by default
2020-07-01 16:06:16 +02:00
Marcel Admiraal
c4650540d4
Normalise p_up_direction vector in move_and_slide() and
...
move_and_slide_with_snap() and fix tolerance in
move_and_slide_with_snap() max floor angle.
2020-06-16 09:56:08 +01:00
Ranoller
bccc2cdb9c
Fix bad position in Camera2D offset and camera rotation if smothing enabled.
...
Fix https://github.com/godotengine/godot/issues/16323 in master. Apply same solution of https://github.com/godotengine/godot/issues/2074 in rotation and offset.
2020-06-15 16:27:59 +02:00
Rémi Verschelde
b3bc5aafc5
Object: Add usage hint to instantiate Object properties in editor
...
Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).
ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.
Fixes #36372 .
Fixes #36650 .
Supersedes #36644 and #36656 .
Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
2020-06-12 14:30:18 +02:00
Marcel Admiraal
b5e31b70dc
Correct misspellings of damped spring.
2020-06-04 18:07:24 +01:00
Aaron Franke
ba27deef06
Refactor physics force and impulse code
2020-06-02 23:18:59 -04:00
Andrii Doroshenko (Xrayez)
11f367fe02
Enable raycast nodes by default
2020-05-27 15:10:53 +03:00
Andrii Doroshenko (Xrayez)
69d5de632e
Split Geometry
singleton into Geometry2D
and Geometry3D
...
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-27 14:28:34 +03:00
ArrowInAKnee
9fc2b0fddc
Update all get_configuration_warning to retrieve warnings from the parent
2020-05-16 16:07:42 +03:00