Rémi Verschelde
0b600fde3f
Merge pull request #17189 from CodeAndWeb/master
...
Fixes Selection of Sprites using AtlasTexture
2018-03-08 08:37:22 +01:00
poke1024
bd2e1df216
Fix unselectable flipped sprites (fixes 16461)
2018-03-07 18:58:45 +01:00
Bernhard Liebl
5f917139ab
Fix uninitialized data in Sprite::_get_rects()
2018-03-04 21:19:32 +01:00
Andreas Loew
a01ba4523b
Fix selection of Sprites using AtlasTexture in the editor.
...
Fixes #16261 .
2018-03-02 19:17:47 +01:00
poke1024
a36f6e5386
Fix line thickness for CollisionPolygon2D.
2018-03-01 07:30:30 +01:00
Juan Linietsky
125fc8cc44
Add a split editor to polygon 2D UV editor, moving an inch closer to adding support for in the future
2018-02-25 12:07:13 -03:00
Marc Gilleron
d2fae5c9a6
Fix Line2D tile mode for non-square textures
2018-02-25 01:49:10 +01:00
Poommetee Ketson
7effe46461
TileMap: add fix_invalid_tiles
2018-02-24 19:34:41 +07:00
Rémi Verschelde
e349cedb6e
Skeleton2D: Fix missing return value in comparator
2018-02-22 08:18:25 +01:00
Juan Linietsky
7cd867c3fe
2D Skeletons WORK IN PROGRESS
2018-02-21 17:24:00 -03:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Juan Linietsky
9e3a1e5401
Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion.
2018-02-21 09:39:09 -03:00
Rémi Verschelde
222516a815
Merge pull request #16756 from willnationsdev/shifted-rect-sprite
...
Simplify detection of Sprite clicks
2018-02-21 10:42:47 +01:00
Rémi Verschelde
c291fc39ad
Merge pull request #16772 from damarindra/tileset_editor_improvement
...
Tileset Editor Improvement
2018-02-21 10:40:43 +01:00
Andrea Catania
39fb83630d
Added forgotten infinite_inertia to bindings
...
Related to this comment: https://github.com/godotengine/godot/pull/16757#discussion_r169470394
2018-02-21 08:42:36 +01:00
Damar Indra
e69dd47501
Tileset Editor Improvement
2018-02-20 22:33:59 +07:00
Rémi Verschelde
497a4e9e25
Merge pull request #16757 from AndreaCatania/kinpush
...
Improved kinematic body, Now can move rigid body
2018-02-20 15:41:10 +01:00
Andrea Catania
6ed392f47a
Improved kinematic body 2D and 3D, Now can move rigid body
2018-02-20 12:43:47 +01:00
Will Nations
b0bdb4456b
Expose Sprite._edit_get_rect for click rect access
2018-02-19 16:45:11 -06:00
Chris Bradfield
a5688ccd90
Improve CollisionObject/CollisionObject2D warning message
2018-02-19 21:48:31 +01:00
Rémi Verschelde
b93d6a001b
Merge pull request #16566 from groud/gui_input_rework
...
2D Editor GUI input rework
2018-02-19 20:05:35 +01:00
Artem Varaksa
d35e486228
Clean up some bad words from code comments
2018-02-17 16:00:39 +03:00
Gilles Roudiere
8dad41e395
2D editor GUI input rework. Changes are:
...
- The input handling is done into several distinct functions, and the
code is more consistent.
- The actions' history is more precise ("Edited CanvasItem"
is now "Rotated CanvasItem","Moved CanvasItem",etc...)
- Fixed a little bug about input key events not forwarded correctly to plugins
- IK is followed by default when you move a bone node, the alt-key allow
you to move it normally
2018-02-16 10:14:52 +01:00
Rémi Verschelde
eefb58a892
Merge pull request #16424 from AndreaCatania/phyj
...
Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet
2018-02-13 15:26:04 +01:00
ronroniv
5e8f7c9782
Update an outdated method name in error message
...
set_enable_monitoring -> set_monitoring
2018-02-07 12:32:05 +09:00
Andrea Catania
a42765dada
Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet
...
Fixes #16424
2018-02-05 18:54:07 +01:00
Rémi Verschelde
ff287d8341
Merge pull request #15254 from mrcdk/pitch_scale
...
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
2018-02-01 14:26:27 +01:00
robfram
3cf2d6524b
Fix inverted RIGHT/LEFT TOP/BOTTOM Camera2D drag margin in runtime (editor works fine). Fix #16095 .
2018-01-27 19:37:04 +01:00
Todd Ross
fd6a98b753
defend Path2D against a null curve
2018-01-22 22:45:38 -06:00
Bernhard Liebl
e9237d83c7
Fix crash on deleted rigidbodies without contact monitor (issue 15904)
2018-01-21 12:46:13 +01:00
Yuri Chornoivan
17614f79ea
Fix minor typo: it's -> its
2018-01-20 20:18:43 +02:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Juan Linietsky
cc8dfcc9c0
Before I forget, add warnings on areas without children (should not break anything).
...
Seen too many users misunderstanding the edit rect is the shape.
2018-01-18 14:31:07 -03:00
Rémi Verschelde
bab9759645
Merge pull request #15606 from RandomShaper/fix-inherited-coll-shapes
...
Update collision shapes data on tree entered
2018-01-12 13:48:17 +01:00
Juan Linietsky
a26e6c8215
Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification.
...
Updated doc accordingly.
2018-01-12 08:29:24 -03:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Pedro J. Estébanez
aefedb73fc
Update collision shapes data on tree entered
...
This is needed because the final startup values for shapes may change between parenting and entering the scene tree. For instance, if the collision shape belongs to a inherited scene.
Fixes #13835 .
2018-01-11 21:08:58 +01:00
Bernhard Liebl
d4adcf3fa2
Update Camera2D scroll using NOTIFICATION_INTERNAL_PROCESS
2018-01-08 18:29:22 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
Rémi Verschelde
459ee51338
Merge pull request #15093 from poke1024/canvas-editor-select
...
More exact picking for canvas editor
2018-01-03 11:15:28 +01:00
MrCdK
5bc010e8ee
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
2018-01-01 22:23:16 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Bernhard Liebl
8505871a87
More exact picking for canvas editor
2017-12-27 20:24:58 +01:00
Noshyaar
5c636875e4
Merge pull request #14971 from mrcdk/particles_emitting
...
Set particles emitting to false when particles finish emitting with one-shot enabled
2017-12-27 10:45:36 +07:00
Poommetee Ketson
6c897707ca
Add missing parameter names
2017-12-25 21:19:56 +07:00
MrCdK
1f609b7a82
Set particles emitting to false when particles finish emitting with one-shot enabled
2017-12-23 05:23:41 +01:00
Rémi Verschelde
caf3a405ab
Merge pull request #13991 from CyanBlob/master
...
TileMap: Add update_bitmask_region(2), expose update_bitmask_area(1) …
2017-12-16 16:38:59 +01:00
Andrew Thomas
d8c4324cfb
TileMap: Add update_bitmask_region(2), expose update_bitmask_area(1) and update_bitmask_region(2) to GDscript
2017-12-16 08:18:54 -06:00
Nathan Warden
38caa4126f
Renamed navmesh/poly_create to navmesh/poly_add since no navmesh is created.
2017-12-15 15:09:06 -05:00
Poommetee Ketson
24df9f3707
Enhance undoredo action name, TTR, cleanup
2017-12-12 23:04:37 +07:00
Rémi Verschelde
48cefc9c96
TileMap: Drop unused center_x/center_y booleans
...
Two years later they are still unused and we do not know
their intend use case, so tschüss.
Closes #2513 .
2017-12-10 16:40:31 +01:00
Rémi Verschelde
09fe926ab3
Merge pull request #14454 from CyanBlob/TileMap
...
Convert tilemap format in get_tile_data()
2017-12-09 19:05:07 +01:00
Juan Linietsky
65fb961b8b
-Ability to and unwrap lightmap coordinates on import
...
-Added unwrap functionality to Mesh
-Ability to display and debug mesh UVs
-Added multiline draw, so it's easier and faster to draw UVs
-Many fixes to SurfaceTool
-Fixes to Thekla Unwrap, but it's a piece of ass and it keeps crashing. Will have to go away
2017-12-09 14:18:14 -03:00
Andrew Thomas
c3a005011b
Convert tilemap format in get_tile_data()
2017-12-09 10:44:26 -06:00
Rémi Verschelde
783c560309
Merge pull request #14321 from ibrahn/path2d-two-style
...
Reworked PathFollow2D behaviour, based on such in version 2.1.
2017-12-09 14:49:30 +01:00
PJB3005
cea5078ebe
Fixes TileMap occluder offsets.
...
This is NOT related to #14388 !
This fixes a graphical bug where the light occluders used by tilemaps weren't getting offset anymore, this they'd be positioned incorrectly.
I tried on all 3 tilemap positioning modes and it seemed to work on every one.
2017-12-08 20:14:06 +01:00
Juan Linietsky
dcab01618a
Fixed is_playing funtion (was reporting wrong), closes #13928
...
Made error reporting to opcode_set in gdscript a bit clearer
2017-12-07 18:14:39 -03:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Juan Linietsky
7b7ba58493
-Fix particles with size==0, closes #13931
...
-Fixed material previews (dont show sphere unless for spatial)
2017-12-06 19:51:13 -03:00
Andreas Haas
4c222c2835
Particles2D: Fix normal map rid.
...
Looks like a Copy & Paste error, fixes #14334 .
2017-12-06 22:44:12 +01:00
Ibrahn Sahir
abef939b09
Reworked PathFollow2D behaviour, based on such in version 2.1.
...
When rotation is enabled, the follower's rotation will be set to that of
the tangent to the path at it's current offset.
For closed looping paths the lookahead will now wrap around at the end of
the path.
fixes #13434
2017-12-06 15:55:54 +00:00
Mariano Suligoy
af719a90a7
TileMap Fixes
2017-12-02 20:49:01 -03:00
Poommetee Ketson
e89309b931
Merge pull request #13216 from hoelzl/pr-fix-tile-origin-center
...
Fix displacement for centered tilemaps
2017-12-01 11:46:34 +07:00
Ferenc Arn
40a7b7e391
Fix PathFollow2D motion.
...
Fixes #13361 .
2017-11-30 08:06:58 +01:00
Chris Bradfield
ee14b17201
Change RayCast2D 'Exclude Parent' to include Area2D
2017-11-28 22:06:49 -08:00
Matthias Hoelzl
2beadf7ac0
Fix displacement for centered tilemaps
...
- Fixes tile and collision placement for tilemaps with
`tile_origin` set to `TILE_ORIGIN_CENTER`.
- Also fixes a bug in the offset computation for collision shapes
with `flip_v` flag set to true if `tile_origin` is
`TILE_ORIGIN_BOTTOM_LEFT`.
2017-11-27 15:12:30 +01:00
Juan Linietsky
bc2e8d99e5
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
...
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Ruslan Mustakov
e967dbca6f
Fix TileMap and TileSet ClassDB bindings
2017-11-24 11:43:15 +07:00
Sofox
3551fc6af0
Fixed #13167 . Restored ParallaxLayer mirroring that was broken by pull request #12421
2017-11-23 01:52:34 +00:00
Rémi Verschelde
2ea5ac17e8
Merge pull request #13159 from AndreaCatania/ray
...
Removed type_mask and fixed some variable name
2017-11-22 16:40:20 +01:00
Rémi Verschelde
e38efe22c7
Merge pull request #12301 from MarianoGnu/master
...
Implement auto-tiling
2017-11-22 15:31:46 +01:00
AndreaCatania
d6e413bb9c
Removed type_mask and fixed some variable name
2017-11-21 22:56:40 +01:00
Rémi Verschelde
00be297b84
Merge pull request #12421 from TheSofox/parallax-overhaul
...
Overhauled the ParallaxBackground system
2017-11-20 15:36:03 +01:00
Gilles Roudiere
f1ec8ff6e8
Fixes a double class registering error
2017-11-20 11:20:38 +01:00
Mariano Suligoy
bcfb0a09f8
Implement auto-tiling
2017-11-20 06:27:47 -03:00
Rémi Verschelde
b1f037eeb9
Merge pull request #13049 from tagcup/pathfollow2d_parallel_transport
...
Use parallel transport in PathFollow2D.
2017-11-20 08:59:33 +01:00
Eric Wiltfang
7dd9e5c57c
Fix the prevention for sliding on slopes in the 2d version of move_and_slide
...
Done by using the same method the 3d counterpart uses.
Fixes #13063 .
2017-11-20 01:42:44 +01:00
Ferenc Arn
4e87f471d7
Use parallel transport in PathFollow2D.
...
Fixes #12995 .
2017-11-19 14:38:53 -05:00
Gilles Roudiere
8d1f2b1857
Rework the canvas_item API for further improves to the canvas item editor
2017-11-19 13:36:31 +01:00
Ferenc Arn
d28763a4c1
Rename Rect3 to AABB.
...
Fixes #12973 .
2017-11-17 11:01:41 -05:00
Rémi Verschelde
49cea443a9
Merge pull request #12870 from Nibodhika/master
...
Fixing tilemap rotation for non top-left tiles.
2017-11-17 00:05:23 +01:00
Vito
5515d28107
Fixing tilemap rotation for non top-left tiles.
2017-11-15 09:22:07 +00:00
Juan Linietsky
04edfc090b
Finalized ability to convert from CanvasItem/Spatial/Particles materials to ShaderMaterial, closes #10242
2017-11-14 15:45:30 -03:00
Poommetee Ketson
aca18b6a49
Merge pull request #12806 from letheed/unify-degrees
...
Unify degree methods and properties
2017-11-11 13:27:02 +07:00
Juan Linietsky
19b1ff0fc5
Disabled filter clip by default and made it optional, fixes #12368 , likely others too
2017-11-10 09:22:25 -03:00
letheed
482e07af7e
Unify degree members and properties
2017-11-10 12:52:07 +01:00
letheed
ab2647a0d0
Remove deprecated rotation methods
2017-11-10 09:09:30 +01:00
Juan Linietsky
192a4d7de5
Reworked how servers preallocate RIDs, should fix #10970
2017-11-09 23:35:34 -03:00
Rémi Verschelde
24b3733f3b
Merge pull request #10770 from RandomShaper/fix-joints
...
Fix joints collision exceptions, plus a bit more
2017-10-31 23:02:37 +01:00
Sofox
43cbef219b
Overhauled the ParallaxBackground system so that it works properly regardless of the zoom of the camera.
2017-10-26 20:42:51 +01:00
Cédric Fuchs
c42bbe1073
Fixes infinite loop in NavPolygonInstance warnings
2017-10-26 13:02:04 +02:00
Jakub Grzesik
8f054d519f
missing set/get_collision_mask_bit() for RayCast
...
in the same fastion how it's implemented in Area or Bodies
2017-10-23 14:31:58 +02:00
Rémi Verschelde
01a5a8b86c
Merge pull request #12291 from RandomShaper/fix-raycast-naming
...
Rename RayCasts collision_layer to collision_mask
2017-10-21 23:44:46 +02:00
Pedro J. Estébanez
7b12ae39f2
Rename RayCasts collision_layer to collision_mask
...
The point is that `RayCast`s are checked against objects' `collision_layer`(s), but they themselves are considered no to _belong_ to any layer. Therefore, the correct name for their property is `collision_mask`, rather than `collision_layer`.
Only renaming is needed since the behavior was already the right one, only that it wasn't matching what users would expect from the name and description of the property.
Fixes #7589 , where it's also discussed.
2017-10-21 22:17:47 +02:00
Poommetee Ketson
9cadb9e5f3
Bind unbound enums, rearrange some by value
2017-10-22 01:58:02 +07:00
Rémi Verschelde
fd4c907a35
Merge pull request #12260 from bojidar-bg/11975-navpoly-freeze
...
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
[ci skip]
2017-10-20 16:40:39 +02:00
Bojidar Marinov
a6472d0344
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
...
Fixes #11975
2017-10-20 16:55:47 +03:00
Sofox
aaf6e77198
Tweaks ParallaxBackground to work better with zoom. Ensures a Parallax Layer with a (1,1) motion scale synchs perfectly with a regular stationary sprite that is outside the ParallaxBackground, regardless of the zoom level and movement of the camera.
2017-10-18 11:17:42 +01:00
Hiroshi Ogawa
130ad806f8
Fix AnimatedSprite frame property slider in editor
2017-10-11 17:49:39 +09:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
damarindra
b786e7877b
Fix: CollisionObject shape owner indexing is inconsistent
2017-09-24 15:55:45 +07:00
Marcelo Fernandez
46af050e93
Rename get_position => get_playback_position and seek_pos => seek on audio classes
2017-09-23 16:55:00 +02:00
Marcelo Paez
5e50fde3d9
Changed get_audio_bus and set functions to get_audio_bus_name and set
...
and edited docs for Area2D due to renaming o get_audio_bus and set_audio_bus
2017-09-22 15:05:09 -03:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Thomas Herzog
7dffed485b
Merge pull request #11230 from maxim-sheronov/fix_enum_bindings
...
Fix enums bindings
2017-09-15 08:43:35 +02:00
Maxim Sheronov
0fffa45158
Fix enums bindings
...
Add missed bindings for enums
Move some enums to class to have correct output of api.json
2017-09-13 20:57:07 +03:00
Rémi Verschelde
c2741e2385
Merge pull request #11069 from aroncds/master
...
KinematicBody2D api most friendlier
2017-09-13 15:07:17 +02:00
Juan Linietsky
06138bf18c
Renamed play to playing property, but now playing and is_playing is the same, to avoid confusing. Closes #11211
2017-09-13 08:41:26 -03:00
Marcelo Fernandez
730d36f350
Fixed issues with surround sound on audio server
2017-09-12 15:13:28 -03:00
Rémi Verschelde
aabbd00284
Merge pull request #10908 from hpvb/fix-unused-variables
...
Fix unused variable warnings
2017-09-12 12:55:53 +02:00
Rémi Verschelde
cf941fdc35
Merge pull request #11026 from hpvb/fix-assign-in-if
...
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Rémi Verschelde
2b50dc5d4f
Merge pull request #11057 from hpvb/fix-various-warnings
...
Fix various assorted warnings
2017-09-12 11:39:47 +02:00
Rémi Verschelde
3941e01a57
Merge pull request #11041 from hpvb/fix-clang-format-error
...
Fix serveral recent new clang-format errors
[ci skip]
2017-09-12 11:16:36 +02:00
Will Nations
d441cc9660
Updated Area2D docs and added enum constants to scripting
2017-09-11 22:39:28 -05:00
Aron de Castro
6e0892f223
Added to kinematicbody2d the copy and paste of the API friendler of KinematicBody
2017-09-10 13:07:47 -03:00
Hein-Pieter van Braam
b2a38854fd
Fix unused variable warnings
...
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Hein-Pieter van Braam
8230bf0a2f
Remove assignment and declarations in if statements
...
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam
67a706fc1b
Fix various assorted warnings
...
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Hein-Pieter van Braam
5e18967d77
Fix serveral recent new clang-format errors
2017-09-08 00:20:16 +02:00
Juan Linietsky
98af411a37
Renamed playing property of audiostreams to play, to make it clearer. Fixes #10730
...
Also disabled the auto shut down of the property when stream ends, to make it easier to animate
2017-09-06 22:03:04 -03:00
Juan Linietsky
2802dced84
Automatically redraw when shaders using TIME are visible, fixes #10554
2017-09-05 00:30:39 -03:00
Rémi Verschelde
8e75e7311b
Merge pull request #10858 from letheed/add-shadow_filter-variant
...
add shadow_filter variant PCF7
2017-09-02 12:13:01 +02:00
Hein-Pieter van Braam
9c63ab99f0
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Juan Linietsky
42659b0d9f
Fix freeze on exit on audiostreamplayers when setting invalid stream, closes #10093
2017-09-01 16:43:46 -03:00
letheed
3a188015be
add shadow_filter variant PCF7
2017-09-01 15:01:24 +02:00
Rémi Verschelde
6611dfbd6c
Merge pull request #10378 from RandomShaper/nav-keep-start-end
...
Guarantee start & end points are returned by Navigation2D
2017-08-30 16:12:12 +02:00
Rémi Verschelde
348eb4e4c5
Merge pull request #10361 from RandomShaper/tilemap-global-mtl
...
Let TileMap apply its material
2017-08-30 16:02:12 +02:00
Juan Linietsky
9c3bddfac2
Merge pull request #10745 from neikeq/fix-docdata-and-stuff
...
DocData and virtual method type hints fixes
2017-08-29 20:11:07 -03:00
Pedro J. Estébanez
d8584682f0
Fix joints collision exceptions
...
Fix 3D joint handling of collision exceptions, so that they lose effect when the joint is not valid in every case; also some redundant code removed.
Also avoid trying to create the joint when not neither body A nor body B are set.
Make 2D joints be handled like their 3D counterparts, which adds the fixes to them while also removing duplicated code.
(adapted from commit 4a98a59aa6
)
2017-08-29 23:46:44 +02:00
Ignacio Etcheverry
c16d00591b
DocData and type hints fixes
...
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types
- Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string.
- PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void.
- Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-29 19:40:21 +02:00
Rémi Verschelde
2353c65a1f
Merge pull request #10622 from letheed/patch-1
...
Allow to disable shadow gradients in Light2D
2017-08-28 23:46:42 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Juan Linietsky
a1c03a69d2
added finished signals to audio stream players, fixes #9928
2017-08-25 11:58:21 -03:00
Juan Linietsky
3061eca190
Removed old fp_adjust code that conflicts with clipped rects, fixes #9925
2017-08-25 10:40:29 -03:00
Letheed
61d3fb36e8
Allow to disable shadow gradients in Light2D
...
Currently the shadow gradient can't be disabled and always has a minimum value of 1.
I'm not sure why though, the default value seems to be 0 and the rasterizer checks for 0 [here](8fc6bb8f77/drivers/gles3/rasterizer_canvas_gles3.cpp (L1284)
) before enabling it.
Feels like a bug to me, but if there's a reason for that let me know.
As a side effect, this edit effectively changes the default value from 1 to 0 for new projects.
2017-08-24 23:35:19 +02:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Hein-Pieter van Braam
0a14e78a60
Change order of Null check for ParallaxLayer
...
The change in #10524 subtly changes the behavior of set_motion_scale()
and set_motion_offset() if the ParallaxLayer does not have a parent
node. Previously it would still set the corresponding property, but
after this change the property change would be discarded.
I'm not entirely sure if this actually matters as there doesn't appear
to be any code that picks up this change if the ParallaxLayer gets
re-parented later, but it's better to not change behavior regardless.
2017-08-22 15:13:31 +02:00
Hein-Pieter van Braam
99617ae8dc
Add null check to ParallaxLayer get_parent() calls
...
This fixes #10515
2017-08-22 01:48:24 +02:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Juan Linietsky
8fc6bb8f77
Added polygon antialiasing, but it does not work on nvidia. Will have to try something else..
2017-08-19 13:14:38 -03:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Pedro J. Estébanez
ef6e1252ae
Guarantee start & end points are returned by Navigation2D
...
So start and end points are unconditionally added to the returned point list, but first and last middle points are checked against them to avoid duplicates.
`CMP_EPSILON` was already providing a guarantee, but knowing you will get exactly the endpoints you provided is even better.
2017-08-17 01:27:30 +02:00
TwistedTwigleg
00f6c85928
Synchronize parameter names in definition and declaration
...
Fixes #10244 .
2017-08-16 17:22:23 +02:00
Pedro J. Estébanez
71a496803c
Fix double point in Navigation2D
...
Fixes #10324 .
2017-08-16 13:46:10 +02:00
Pedro J. Estébanez
3bb5abbc35
Let TileMap apply its material
...
So when a material is set, every tile will be rendered with that. Quadrants will not be recreated, so a `CanvasItem` will exist per material per quadrant regardless a global material is set.
This makes also __Use parent material__ work for `TileMap`s.
Closes #9996 .
2017-08-15 23:41:23 +02:00
Ignacio Etcheverry
7fc3c51169
Merge pull request #10339 from bojidar-bg/x-fix-scale-conflict
...
Rename Light2D::scale to texture_scale, so it doesn't conflict
2017-08-14 22:16:39 +02:00
Bojidar Marinov
4b0990bf8d
Rename Light2D::scale to texture_scale, so it doesn't conflict
2017-08-14 18:53:42 +03:00
Rémi Verschelde
9575dbdf78
Merge pull request #10298 from nhold/kinematic-body-2d-_move-fixes-#10107
...
Fix missing and incorrect values in return value of _move method
2017-08-13 17:26:59 +02:00
Zher Huei Lee
a625d7edfc
Disabling Particles::one_shot restarts emission
...
Fixes #10181
2017-08-12 18:37:01 +08:00
Nathan Hold
fb40846dca
Fix missing and incorrect values in return value of _move method
2017-08-12 19:59:39 +10:00
Rémi Verschelde
306c0471f7
Merge pull request #9987 from Rubonnek/move-members-to-initilization-list
...
Moved member variables from constructor to initialization list
2017-08-11 10:31:04 +02:00
Ignacio Etcheverry
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Wilson E. Alvarez
6d112a68b6
Moved member variables from constructor to initialization list
2017-08-08 21:43:19 -04:00
Juan Linietsky
bb47bca1f6
Ability to pause particles, closes #3675
2017-08-07 19:02:25 -03:00
Rémi Verschelde
3121b3a4f4
Merge pull request #10141 from ISylvox/lower_case_godot_api
...
Makes all Godot API's Methods lower_case
2017-08-07 14:59:39 +02:00
Rémi Verschelde
9244ea6d54
Merge pull request #10109 from eska014/init-particles2d-draw-order
...
Initialize Particles2D draw order property
2017-08-07 14:50:59 +02:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Juan Linietsky
37adf936ab
few bugs fixed thanks to explicit bool constructor and clang.
...
explicit bool constructor has thus now been removed, as it served it's mission!
2017-08-05 21:43:10 -03:00
Juan Linietsky
435bedd9ef
Merge pull request #10116 from neikeq/prop_method_ambiguities
...
Renames properties and methods to avoid ambiguities
2017-08-05 17:55:43 -03:00
Ignacio Etcheverry
e82270e8d0
Renames properties and methods to avoid ambiguities
...
- Method Node2D.scale(Vector2) renamed to Node2D.apply_scale(Vector2)
- Property BaseButton.is_pressed renamed to BaseButton.pressed
2017-08-05 22:52:58 +02:00
Juan Linietsky
52649f1038
emit signal properly when frame has changed in autoplay, fixes #7730
2017-08-05 16:32:34 -03:00
Juan Linietsky
e47ecc63ef
Properly update frame range after modifying the vframe/hframes, closes #7624
2017-08-05 16:19:36 -03:00
Juan Linietsky
de9fb90dbf
Warn about resizing a rigidbody (2D or 3D), covers the most common cases, closes #7615
2017-08-05 16:06:15 -03:00
L. Krause
4d26b14576
Initialize Particles2D draw order property
2017-08-05 12:46:49 +02:00
Rémi Verschelde
0257ced05b
Merge pull request #10040 from Hassan-A/getCells3.0
...
Added get_used_cells_by_id method 3.0
2017-08-03 10:33:49 +02:00
Hassan A
74587a4927
Added get_used_cells_by_id method 3.0
2017-08-02 18:02:00 -04:00
Rémi Verschelde
85088275c5
Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-Sync
...
Texture region now updates when changing an Atlas region rect
2017-08-01 00:15:37 +02:00
Rémi Verschelde
0a74fb625e
Merge pull request #9791 from bojidar-bg/6087-add-global-local-conv
...
Add .to_local/.to_global methods on Node2D and Spatial
2017-07-24 22:24:34 +02:00
Jakub Grzesik
567cbfcceb
expose missing CollisionShape API for CollisionObject
2017-07-24 20:29:49 +02:00
Rémi Verschelde
374cffaa11
Merge pull request #9764 from Noshyaar/pr-fix2
...
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Bojidar Marinov
140f189a65
Add .to_local/.to_global methods on Node2D and Spatial
...
Those are just helpers around get_global_transform().affine_inverse().xform() and get_global_transform().xform().
Closes #6087
2017-07-23 14:37:26 +03:00
Poommetee Ketson
49331fbd63
Sprite: fix disconnect nonexistent signal
2017-07-23 01:02:33 +07:00
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Rémi Verschelde
738d6c0afc
Merge pull request #9355 from TwistedTwigleg/Remote_node_enhancement
...
RemoteTransform and RemoteTransform2D enhancements
2017-07-11 11:11:29 +02:00
Thomas Herzog
f9c99486b0
Merge pull request #9592 from RandomShaper/remove-warns
...
Remove warnings about benign situations
2017-07-10 22:23:11 +02:00
Pedro J. Estébanez
7d308797ad
Remove warnings about benign situations
2017-07-10 16:20:56 +02:00
TwistedTwigleg
3400c42c4d
Added the following features to RemoteTransform and RemoteTransform2D:
...
- Added the ability to toggle changes in position, rotation, and scale
- Added the ability to toggle changes in either local or global coordinates
2017-07-05 16:29:48 -04:00
Johan Manuel
00afca31c6
Use the gravity constant to calculate weights
2017-07-05 15:14:12 +02:00
TwistedTwigleg
a6feb0943a
Fixed set_global_scale in Node2D.
2017-07-03 13:28:26 -04:00
Bojidar Marinov
4d2642b666
Readd tilemap's shape_transform and bugfixes
...
This reverts commit a808f53020
.
2017-07-01 20:56:51 +03:00
Juan Linietsky
a808f53020
Revert "Fix Tileset/tilemap issues related to my adding of one-way collisions to them"
2017-07-01 13:02:04 -03:00
Juan Linietsky
2a3e00c8c7
-Many fixes to VisualScript, fixed property names, etc.
...
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Bojidar Marinov
80356f925c
Fix #9409 , fixup #9370 ; tileset now has shape transform instead of offset
...
Fix bad return type in CollisionObject2D, Shape -> Shape2D. Was causing unintended null when casting. (9409)
Fix a misplaced ++ operator. (9370)
Fix merging with exiting tileset duplicating shapes. (9370)
2017-06-30 19:01:20 +03:00
Robert Hernandez
f0f407e76e
Texture region now updates when changing an Atlas
...
- Removed atlas_changed signal for AtlasTexture
- Changes are now handled by _notify_change
- Removed unneccesary signal connections
- Texture preview now updates in real-time
Fixed TextureRegionEditor constantly regenerating
2017-06-29 10:49:24 -04:00
Juan Linietsky
3ce046ee0c
-Fixed SCREEN_TEXTURE and other related 2D shader parameters.
...
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Rémi Verschelde
b0516e0412
Merge pull request #9296 from TwistedTwigleg/Camera2D_enhancements_V2
...
Camera2D enhancements (V2)
2017-06-26 23:37:25 +02:00
Rémi Verschelde
f2bc0cc966
Merge pull request #9370 from bojidar-bg/c-9318-oneway-tilemaps
...
Add one-way collisions and individual shape offsets for tilesets
2017-06-26 22:47:26 +02:00
Rémi Verschelde
f7b77e5b76
Merge pull request #9318 from bojidar-bg/readd-normal-tilemap
...
Add normal map to tilemaps and tilesets
2017-06-26 22:47:11 +02:00
Juan Linietsky
d41978eb63
Usability improvements for folding. Unfortunately SpatialMaterial broke compatibility.
2017-06-25 18:57:28 -03:00
TwistedTwigleg
7d77406980
Added some editor enhancements to Camera2D. Added the option to draw Camera2Ds bounds and drag margins. Added options to toggle the drawing of Camera2Ds lines in the editor. When a Camera2D is marked as current, its lines become a little less transparent.
2017-06-25 16:05:44 -04:00
Bojidar Marinov
207feb2f87
Add one-way collisions and individual shape offsets for tilesets
...
As requested in #9318
Accidentially fixes #2231 as well
2017-06-25 21:47:30 +03:00
Juan Linietsky
83ae9a5e28
Ability to restart particle system with a function call
2017-06-25 08:01:50 -03:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Juan Linietsky
bc509ac7bd
Simplified 2D Kinematicbody.. 3D will wait a bit.
2017-06-24 12:34:29 -03:00
Juan Linietsky
6ba1e4677b
-Trigger shapes removed in 2D, they became obsolete long ago when areas could detect their own overlap
...
-Added ability to disable individual collisionshape/polygon
-Moved One Way Collision to shape, allowing more flexibility
-Changed internals of CollisionObject, shapes are generated from child nodes on the fly, not stored inside any longer.
-Modifying a CollisionPolygon2D on the fly now works, it can even be animated.
Will port this to 3D once well tested. Have fun!
2017-06-23 23:39:52 -03:00
Juan Linietsky
8ef1c41a4e
Small fixes required to get platformer to work.
...
Added back CanvasItemMaterial
2017-06-23 14:31:59 -03:00
Juan Linietsky
265d4e2d6c
Fixed bug regarding to two spatial 2d players not mixing properly
2017-06-22 17:50:03 -03:00
Bojidar Marinov
2edb082c7e
Add normal map to tilemaps and tilesets
...
Fixes #9310
2017-06-22 18:15:50 +03:00
Juan Linietsky
fb72edf45e
Properly exposed material types everywhere.
2017-06-22 09:33:20 -03:00
Rémi Verschelde
e3b34810e3
Fix tools=no build
...
This house is falling apart when I'm not around...
2017-06-22 12:12:30 +02:00
Juan Linietsky
95560e02c5
2D GPU Particles working..
2017-06-21 16:26:26 -03:00
Thomas Herzog
ceded65c01
Merge pull request #9257 from Shockblast/patch-1
...
Remove Duplicate Include
2017-06-20 10:58:00 +02:00
Shockblast
3e733d0f92
Remove Duplicate Include
...
Also solves a problem with AnimatedSprites, when you add sprites for the animation the engine crash
2017-06-19 20:52:10 -04:00
Benjamin Dahse
b95f57d050
Add null-check to get_normal_frame
2017-06-20 00:37:34 +02:00
Juan Linietsky
0288be1e76
Texture rect_region drawing now clamps UV to avoid bleeding. This avoids scenarios like single-texture tilemap tiles leaking pixels to the next tile when filter is enabled on it.
2017-06-18 22:55:02 -03:00
Juan Linietsky
969fa3cc73
-Added AudioStreamPlayer2D, for 2D positional sound
...
-Added ability for Area2D to redirect positional sound to a specific audio bus
2017-06-18 21:07:32 -03:00
Juan Linietsky
33bf180067
Added normalmap support to stylebox and animated sprite.
2017-06-18 00:03:28 -03:00
Juan Linietsky
5c6cac4e53
Add normalmap support for drawing in all low level primitives. Only added support in Sprite so far.
2017-06-17 23:27:42 -03:00
Rémi Verschelde
b7a2a40b8e
Merge pull request #9176 from RandomShaper/fix-touchbutton
...
Fix/improve TouchScreenButton
2017-06-15 12:38:59 +02:00
Rémi Verschelde
80de0c35df
Merge pull request #9160 from karroffel/color-ramp-rename
...
renamed occurances of ColorRamp with Gradient
2017-06-14 23:09:30 +02:00
Rémi Verschelde
bccee07ae7
Merge pull request #9165 from Noshyaar/pr-area
...
Refactor layer_mask to collision_layer
2017-06-14 23:04:04 +02:00
Pedro J. Estébanez
d27d1dba23
Fix/improve TouchScreenButton
...
- Refactor touch acceptance logic so the same is used whether passby is enabled or not.
- Remove the check for visibility during input handling as it should never fail; instead using now an ERR_FAIL_COND() just in case since we have been checking for that so far.
- Fix cast to wrong InputEventScreenTouch when it should be InputEventScreenDrag.
- Replaced use of references by plain pointers for a more readable code and maybe a little performance gain.
2017-06-14 17:19:58 +02:00
Poommetee Ketson
6c44fff508
Refactor layer_mask to collision_layer
2017-06-14 10:58:34 +07:00
Marc Gilleron
0fd5ab479c
Fixed broken Line2D due to math changes in f271591ac2
2017-06-14 02:21:40 +02:00
Karroffel
23c5fa8687
renamed occurances of ColorRamp with Gradient
...
ColorRamp got renamed to Gradient recently, reduz missed some occurances though.
2017-06-14 01:24:04 +02:00
Juan Linietsky
a8a1f2e2a8
-Fixed occluder rendering, closes #8560
...
-Ability to smooth out 2D shadow filters
2017-06-13 01:23:04 -03:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Andreas Haas
9bc5348961
InputEvent: Renamed "pos" property to "position"
...
Make the naming consistent with other classes.
2017-06-03 11:26:39 +02:00
Juan Linietsky
bb20f230ad
-Added .hdr format support
...
-Added default environment editor setting
-Added environment created by default in new projects
-Removed default light and ambient from spatial editor, to make the editor more PBR compliant
2017-05-28 21:48:05 -03:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Poommetee Ketson
64879e592b
RayCast2D: fix detached arrow tip
2017-05-08 16:12:40 +07:00
Rémi Verschelde
2398eb6ed4
Move core thirdparty files to thirdparty/{minizip,misc}
2017-04-28 21:19:23 +02:00
gamemanj
0a4dde93d4
Apply is_ceiling/is_wall swap fix to 2D move_and_slide (minus explaination)
...
As it turns out, is_ceiling would be true when hitting a wall,
and is_wall would be true momentarily when hitting a ceiling.
This makes a tiny one-line change to fix that.
Without trying to explain the code for anyone else having to
mess around with it.
2017-04-15 10:24:36 +01:00
Sergey Pusnei
8589ca3903
Rename [gs]et_pos to [gs]et_position for Controls
...
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Rémi Verschelde
d596946a45
Merge pull request #8271 from MattUV/master
...
Add methods to get and set bits of collision layers and masks for TileMaps (3.0)
2017-04-09 23:37:56 +02:00
Rémi Verschelde
769bec26a7
Merge pull request #8321 from RandomShaper/zero-preprocess-particles2d
...
Allow zero preprocess time for Particles2D
2017-04-09 17:44:40 +02:00
Andreas Haas
6075dfe511
Particles2D: Fix flip property (again).
...
should have flipped the dst_rect..
2017-04-09 01:42:39 +02:00
Pedro J. Estébanez
d0ef1acea4
Allow zero preprocess time for Particles2D
2017-04-08 20:04:06 +02:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Rémi Verschelde
efba539f93
Fix build on older GCC versions
...
Travis builds would fail with:
./drivers/gles3/rasterizer_storage_gles3.h:1018:19: error: ISO C++ forbids initialization of member 'fixed_fps' [-fpermissive]
2017-04-07 19:24:37 +02:00
Juan Linietsky
74808ac4d9
New particle system, mostly working, some small features missing.
2017-04-06 23:49:27 -03:00
MattUV
6b5305b972
Add set/get_collision_layer/mask_bit() to TileMaps
...
Add four methods to the TileMap node to make collision layers and masks be modified bit by bit (like PhysicBody2Ds and RayCast2Ds:
* set_collision_layer_bit()
* set_collision_mask_bit()
* get_collision_layer_bit()
* get_collision_mask_bit()
To comply with collision layers' renaming from https://github.com/godotengine/godot/issues/5696 , the method names are NOT set/get_layer_mask_bit()
2017-04-06 23:27:55 +02:00
Rémi Verschelde
02f9851d0d
Merge pull request #8259 from bojidar-bg/move-slide-wall-fix
...
Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
2017-04-05 01:24:19 +02:00
Rémi Verschelde
2c4e4432af
Merge pull request #8214 from tagcup/bounce_reflect_slide
...
Made slide and reflect active verbs acting on itself in Vector2 and V…
2017-04-05 01:23:09 +02:00
Bojidar Marinov
289abd3710
Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
...
Fixes #7313
2017-04-04 18:32:27 +03:00
Rémi Verschelde
4d3ed11212
Merge pull request #8248 from Hinsbart/fix_notify_renames
...
Fix more property names in _change_notify calls.
2017-04-04 00:21:12 +02:00
Rémi Verschelde
41986b2092
Merge pull request #8244 from RandomShaper/improve-touch-button
...
Improve TouchScreenButton
2017-04-04 00:19:47 +02:00
Andreas Haas
0a287cfe4c
Fix more property names in _change_notify calls.
2017-04-03 18:35:15 +02:00
Ferenc Arn
1a620bd5fa
Made slide and reflect active verbs acting on itself in Vector2 and Vector3.
...
This is in alignment with other functions in vector classes.
Also added checks for normalization, fixed the sign of reflect (which now corresponds to reflection along a plane mathematically), added bounce method and updated docs.
Fixes #8201 .
2017-04-03 10:02:12 -05:00
Pedro J. Estébanez
6caa9fc94c
Improve TouchScreenButton
...
Fix shape not being updated
Add a way to hide the shape on editor and debug-with-visible-shapes
Remove useless checks
2017-04-03 14:42:46 +02:00
Robert Hernandez
8078b5ecf6
Fixed Node2D/Control not updating properties
2017-04-01 20:13:52 -04:00
Rémi Verschelde
debeee56f7
Fix typos in source code using codespell
...
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Pedro J. Estébanez
a0ecbb5ac0
Fixes for TouchScreenButton
...
- getting stuck on pause
- handling input when not visible
2017-03-10 14:10:29 +01:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
e1c1d7d1d7
Add a bunch of missing Godot headers in own files
2017-03-05 15:47:28 +01:00
Andreas Haas
962243f931
TileMap: Respect self_modulate property
...
Now `TileMap`s make use of the `self_modulate` property.
There's still a bug: The Editor doesn't re-draw with the new color when you change the TileMaps `self_modulate`
in the inspector. You'll have to make it update manually (by placing a tile, changing the transform, etc..)
I'll open an issue for that after this is merged (If I don't fix it in the meantime ^^).
2017-03-05 11:42:01 +01:00
Rémi Verschelde
81a393a2b4
Merge pull request #7508 from lonesurvivor/area2d-fix
...
Fix two problems with Area2D and remove_child()
2017-03-04 17:19:04 +01:00
Thaer Razeq
f50488a361
Various fixes detected using PVS-Studio static analyzer.
...
- Add FIXME tags comments to some unfixed potential bugs
- Remove some checks (always false: unsigned never < 0)
- Fix some if statements based on reviews.
- Bunch of missing `else` statements
2017-02-28 07:52:02 -06:00
Ferenc Arn
67ef529113
Use the common PRNG in 2D particles code.
...
Replaces the custom PRNG used by 2D particles code with a wrapper for the PRNG located under core/math.
2017-02-27 15:36:17 -06:00
Rémi Verschelde
5f31b3ce58
Merge pull request #7897 from RandomShaper/particles2d-process-mode
...
Add process mode option to Particles2D
2017-02-27 14:03:44 +01:00
Pedro J. Estébanez
5d094602b8
Add process mode option to Particles2D
2017-02-27 10:47:28 +01:00
Rémi Verschelde
c68f0c7961
Merge pull request #7887 from bojidar-bg/particles-emission-ended
...
Add emission_finished signal to Particles2D
2017-02-26 20:50:41 +01:00
Rémi Verschelde
3abd4c906d
Merge pull request #7869 from RandomShaper/fix-touchbutton-crash
...
Fix crash if TouchScreenButton is pressed while exiting the tree
2017-02-26 20:27:43 +01:00
Bojidar Marinov
0d6485d919
Add emission_finished signal to Particles2D
...
(Also remove some Particles2D::testee method, which was unused)
Resolves #3963
2017-02-25 16:06:00 +02:00
Pedro J. Estébanez
75c68f6512
Fix crash if TouchScreenButton is pressed while exiting the tree
...
(cherry picked from commit 5b8d5766f4
)
2017-02-22 01:37:22 +01:00
Bojidar Marinov
136e1e18ba
Add Rect2 TileMap::get_used_rect(), closes #4390
2017-02-20 23:02:03 +02:00
Juan Linietsky
da11d6d9e8
Many fixes to make exported scenes work better, still buggy.
2017-02-15 08:34:02 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Hein-Pieter van Braam
0f687f0ccb
Remove use of _SCS from ADD_METHOD
...
This saves typing and is a step towards fixing #56
2017-02-13 10:37:47 +01:00
Rémi Verschelde
117a83fcb9
Merge pull request #7352 from Zylann/polyline
...
Polyline
2017-02-12 23:30:04 +01:00
Rémi Verschelde
73cedc3901
Merge pull request #7775 from Hinsbart/particles_flip
...
Particles2D: implement texture flip parameters.
2017-02-12 23:25:34 +01:00
Rémi Verschelde
53b7bbfcce
Merge pull request #7722 from RandomShaper/improve-touch-button
...
Fix touch button issues
2017-02-12 23:12:18 +01:00
Pedro J. Estébanez
49e7e2cd2a
Solve TouchScreenButtons issues
...
Fix touch button needing double tap after pause (applies to those not set to pass-by)
Fix error when a pressed TouchScreenButton with no associated action exits the tree
(with some refactoring of duplicate code)
2017-02-10 20:54:54 +01:00
Andreas Haas
6a2dccaf77
Particles2D: implement texture flip parameters.
2017-02-10 00:50:21 +01:00
Pedro J. Estébanez
7b2fa207e9
Add shape property to TouchScreenButton
...
Adapted from 67a0da34a2
2017-02-02 12:16:14 +01:00
lonesurvivor
9cddaab4d1
When overlappinng Area2Ds are removed with remove_child(), _enter_tree and _exit_tree signals are now properly disconnected upon removal
2017-01-25 20:52:44 +01:00
Rémi Verschelde
a19a28288c
Merge pull request #7610 from Hinsbart/shape_warning
...
CollisionShape2D: Fix warning icon not updating.
2017-01-23 07:55:50 +01:00
Andreas Haas
16eee2f59b
CollisionShape2D: Fix warning icon not updating.
...
`CollisionPolygon2D` also had this problem.
2017-01-22 14:11:17 +01:00
Ferenc Arn
6f4f9aa6de
Overloaded basic math funcs (double and float variants). Use real_t rather than float or double in generic functions (core/math) whenever possible.
...
Also inlined some more math functions.
2017-01-16 13:36:33 -06:00
Rémi Verschelde
f44ee891be
Style: Fix statements ending with ';;'
2017-01-16 08:49:52 +01:00
Juan Linietsky
b400c69cd4
Oops! Audio engine has vanished :D
2017-01-15 16:07:51 -03:00
Marc Gilleron
e2fba10b95
Added Line2D node that draws a polygon-based line
...
It supports unlimited width, color gradient, texture and some geometry
options for joints and caps. Also transparency without artifacts
(provided that line joints aren't too sharp).
2017-01-15 00:44:46 +01:00
Juan Linietsky
94609305a0
Merge pull request #6519 from RandomShaper/enhance-tileset
...
Add modulate (color) to TileSet tiles
2017-01-14 16:52:16 -03:00
Juan Linietsky
dcb95ec147
removed duplicated functions in class hierarchy that were bound more than once
...
added a check to detect this case in the future
2017-01-14 11:10:42 -03:00
Rémi Verschelde
93ab45b6b5
Style: Fix whole-line commented code
...
They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
2017-01-14 14:52:23 +01:00
Juan Linietsky
d093cc8bf8
Renamed call_group to call_group_flags, made call_group without flags the default
2017-01-14 10:03:53 -03:00
Juan Linietsky
f3b6177ece
rename monitoring functions
2017-01-13 20:03:51 -03:00
Juan Linietsky
e53c247cb1
Created new Engine singleton, and moved engine related OS functions to it.
2017-01-13 12:51:14 -03:00
Juan Linietsky
0ad9939603
Rename collision layer as suggested in #5696
2017-01-13 11:01:19 -03:00
Juan Linietsky
04c749a1f0
New API for visibility in both CanvasItem and Spatial
...
visible (property) - access set_visible(bool) is_visible()
is_visible_in_tree() - true when visible and parents visible
show() hide() - for convenience
2017-01-13 10:45:50 -03:00
Juan Linietsky
a2903fc51d
Must now register with set_transform_notify() to get NOTIFICATION_TRANSFORM_CHANGED
2017-01-12 20:35:46 -03:00
Juan Linietsky
83cb84753f
Renamed most signals so they refer to:
...
-An action being requested to the user in present tense: (ie, draw, gui_input, etc)
-A notification that an action happened, in past tense (ie, area_entered, modal_closed, etc).
2017-01-12 00:51:08 -03:00
Juan Linietsky
bc26f90581
Type renames:
...
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
2017-01-11 00:52:51 -03:00
Juan Linietsky
4338c90163
It is now possible to name layers of different kinds!
2017-01-10 22:20:57 -03:00
Juan Linietsky
f3f4a11cfb
- _ready() callback only happens once now, if you want to receive it again, use request_ready()
...
- C++ Nodes mostly do an internal process callback, so it does not conflict with users willing to use their own process callbacks
- callbacks such as _input, _process, _fixed_process _unhandled_input, _unhandled_key_input do not requiere calling a function to enable them. They are enabled automatically if found on the script.
2017-01-10 18:04:33 -03:00
volzhs
b8ea0ba984
Fix modulate property bind to Color
2017-01-09 21:53:20 +09:00
Juan Linietsky
1b0930c435
Renamed finished to animation_finished, also passes the animation name when finished
2017-01-08 17:41:32 -03:00
Juan Linietsky
8ecc34bfae
removed unnecesary modulate funtions, which were superseded by self_modulate
2017-01-08 12:31:14 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
b085c40edf
-Conversion of most properties to a simpler syntax, easier to use by script
...
-Modified help to display properties
GDScript can still not make use of them, though.
2017-01-04 01:16:14 -03:00
Juan Linietsky
3fae505128
Begin modifying properties to make them more friendly to script and doc.
2017-01-03 00:38:16 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
3f3f5a5359
Merge remote-tracking branch 'origin/gles3' into gles3-on-master
...
Various merge conflicts have been fixed manually and some mistakes
might have been made - time will tell :)
2017-01-02 21:52:26 +01:00
Rémi Verschelde
c9366f8b56
Merge pull request #7410 from nounoursheureux/master
...
Add the 'finished' signal to AnimatedSprite
2017-01-02 15:54:58 +01:00
Rémi Verschelde
6428ebd91f
Merge pull request #7406 from neikeq/pr-issue-5076
...
TileMap: _update_dirty_quadrants() cancel pending update pre return
2017-01-02 15:11:23 +01:00
Rémi Verschelde
3e1b5ad223
Merge pull request #7382 from volzhs/fix-visibility
...
Able to change visibility when ancestor node is hidden
2017-01-02 14:17:42 +01:00
Wilhem Barbier
f6262fde11
Add the 'finished' signal to AnimatedSprite
2017-01-02 12:24:37 +01:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
Ignacio Etcheverry
5b3acd287d
TileMap: _update_dirty_quadrants() cancel pending update pre return
2017-01-01 21:08:12 +01:00
reduz
f4a56e7782
begin work on new particle system
2016-12-30 08:35:54 -03:00
volzhs
792ff11642
Able to change visibility when ancestor node is hidden
2016-12-28 14:27:27 +09:00
Ignacio Etcheverry
d579d0a814
KinematicBody: Fix wrong method bind return type
2016-12-10 16:23:47 +01:00
Andreas Haas
4dd6bead1f
Particles2D: Fix initial size randomness property having no effect.
...
It was just a little typo :p
2016-12-03 20:16:03 +01:00
Pedro J. Estébanez
86789c7071
Add modulate (color) to TileSet tiles
2016-11-30 14:33:39 +01:00
Ovnuniarchos
e07dd9ab32
TileMap now honors blending mode.
2016-11-24 21:28:10 +01:00
Rémi Verschelde
d4c17700aa
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
afd86ee240
Merge pull request #6090 from WalasPrime/raytrace_force
...
Added force_raycast_update GDScript method for RayCast[2D]
2016-10-22 12:40:14 +02:00
Rémi Verschelde
fc8ccd5b8c
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Andreas Haas
9d67895c7c
Sprite: Fix inspector not showing changes on "frame" property.
...
Fixes #6562
2016-10-11 15:14:05 +02:00
Juan Linietsky
1527cf8c0d
2D Shaders are working again using the new syntax, though all is buggy in general
2016-10-10 18:31:01 -03:00
Pedro J. Estébanez
34c02fad5a
Add editor_only param to Light2D
2016-10-04 16:44:59 +02:00
Juan Linietsky
22d83bc9f6
Begining of GLES3 renderer:
...
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Karol Walasek
7494a8c3c6
Added force_raycast_update GDScript method for RayCast[2D]
2016-10-03 12:36:16 +02:00
Pawel Kowal
f9a21baa26
Fix #6480 , area duplicated param
2016-09-29 18:12:45 +02:00
anneomcl
aa5ade834c
Fix for #6158 . Converting Vector2 to Size2 for scaling functions.
2016-09-19 23:31:45 -07:00
Juan Linietsky
913925f106
Center camera2D with the proper viewport size
2016-09-15 08:17:23 -03:00
Juan Linietsky
a4156f1f0a
Added a few functions to make 2D split screen easier.
2016-09-14 15:55:14 -03:00
Juan Linietsky
5fc084c28e
-Fixed issue in Kinematicbody2D
2016-09-01 12:03:55 -03:00
Juan Linietsky
fc70824f7c
More improvements to visual script..
...
fixed a bug of not saving when sub-nodes changed.
2016-08-31 17:58:51 -03:00
Rémi Verschelde
ce7e2ae4f4
draw_line: Properly bind antialiased argument
2016-08-31 08:57:21 +02:00
Juan Linietsky
fb4d6d1db0
More visual script improvements
...
-Added anti-aliasing on lines
-Improved draw performance enormously
-Removed sequence ports for most nodes, current visual scripts will likely be broken now. Sorry!
2016-08-30 23:46:41 -03:00
Rémi Verschelde
9a35ed5d54
Merge pull request #5670 from timoschwarzer/feature/camera2d_limit_smoothing
...
Add an option to smooth camera limits when camera smoothing is enabled.
2016-08-30 16:52:55 +02:00
Rémi Verschelde
835ee75d57
Merge pull request #6159 from touilleMan/issue-6148
...
Add Node2d global rot/rotd/scale methods
2016-08-29 19:04:24 +02:00
Juan Linietsky
748836e0b3
Several all around fixes to visual scripting (in the process of creating demos)
2016-08-28 20:59:01 -03:00
Emmanuel Leblond
c402ac13df
Add Node2D's set_global_rot get_global_rot set_global_rotd get_global_rotd set_global_scale get_global_scale methods.
2016-08-15 11:39:19 +02:00
Juan Linietsky
37b5e99bc2
prevent bug due to scripts not working in editor and notifier sending signals to it.
2016-08-08 19:04:12 -03:00
Juan Linietsky
ba625a14c6
Merge pull request #5447 from RandomShaper/parallax-layer-fix-tidy
...
Improve parallax mirroring algorithm
2016-07-24 12:19:27 -03:00
Timo Schwarzer
d691cb4732
Add an option to smooth camera limits when camera smoothing is enabled.
2016-07-13 11:48:50 +02:00
Juan Linietsky
b41be2d1a9
Merge pull request #4854 from Razzlegames/screenToLocal
...
Conversion function for screen coords to local Canvas coords
2016-07-11 02:26:58 -03:00
Kyle Luce
605193b22f
Conversion function for screen coords to local Canvas coords
...
- Useful if you need to Convert screen coords to the coordinate space of a
CanvasItem, but don't have an associated InputEvent to use in
#make_event_local.
For example, if you have a particular point on the screen you'd like to project
into World Space, for various reasons, you would use this function on the root
of the scene. This is analogous to ray casting from screen space in 3D.
2016-07-10 16:06:57 -07:00
Juan Linietsky
46bb02991f
Merge pull request #5270 from lonesurvivor/master
...
Added Tile Origin = Bottom Left option to the TileMap
2016-07-10 13:41:33 -03:00
Juan Linietsky
b06eca108a
Merge pull request #5490 from timoschwarzer/master
...
Add new Camera2D alignment functions
2016-07-10 12:39:50 -03:00
Rémi Verschelde
f40f360a2c
Remove unused variables (fourth pass) + dead code
...
Also fix a potential regression from 3fcb9b1ec1
.
2016-07-08 16:47:55 +02:00
Juan Linietsky
7c1ab42571
Fix the +1 button to insert keyframes in Sprite and Sprite3D, closes #5422
2016-07-06 23:46:04 -03:00
Timo Schwarzer
185ba75bfa
Fix Camera2D header for align()
2016-06-30 16:07:48 +02:00
Timo Schwarzer
ae055ebf82
Add align() to realign the Camera2D to its tracked node
...
align() will center the tracked Node if anchor mode is set to DRAG_CENTER, otherwise the camera is set to the Node's position
2016-06-29 18:17:11 +02:00
Timo Schwarzer
6686fbc1e0
Add reset_smoothing() for immediately fixing the camera to the destination location
2016-06-29 17:40:29 +02:00
Juan Linietsky
47d6cc08bb
Properly deliver localized coordinates when passing gui events through parents, closes #4215
2016-06-27 10:00:36 -03:00
Pedro J. Estébanez
6ce47d9b51
Improve parallax mirroring algorithm
...
Replaces the iterative approach currently used by an equivalent direct computation.
Also fixes infinite looping that happens when the mirroring value is negative.
2016-06-27 10:40:33 +02:00
Juan Linietsky
10f411b47b
Avoid mirroring to go negative to fix crash, closes #4036
2016-06-26 16:51:13 -03:00
Juan Linietsky
282da142ae
Added an option to ParallaxLayer to add an extra scroll offset, helps if you want to make clouds to move by themselves and animate that, for example.
2016-06-26 16:22:20 -03:00
Rémi Verschelde
0be12898a7
Revert "Improve parallax mirroring algorithm"
2016-06-26 18:03:15 +02:00
Juan Linietsky
130b83bc52
Ability to set draw transform as a matrix, closes #5428
2016-06-26 13:01:17 -03:00
Rémi Verschelde
b02d67be30
Merge pull request #5307 from MarianoGnu/master
...
TextureRegion improvements
2016-06-26 09:43:45 +02:00
Rémi Verschelde
22c9a44174
Merge pull request #5391 from RandomShaper/parallax-layer-fix-tidy
...
Improve parallax mirroring algorithm
2016-06-24 21:26:54 +02:00
Pedro J. Estébanez
fbddc0b747
Improve parallax mirroring algorithm
...
Replaces the iterative approach currently used by the standard fmod() function.
Also fixes infinite looping that happens when the mirroring value is negative.
2016-06-24 18:39:56 +02:00
George Marques
b06d235ce8
Rename CanvasItem.edit_get() to edit_get_state()
...
This makes more sense of what it does and correlates to edit_set_state()
2016-06-23 17:59:37 -03:00
Bojidar Marinov
f3342eb72e
Fix a inherited transform bug with Camera2D preview drawing
...
Closes #5339
2016-06-21 22:35:04 +03:00
Juan Linietsky
fa0d1cd27c
fix CanvasItem.get_global_transform() and CanvasItem.get_local_transform(), closes #4075
2016-06-20 21:19:12 -03:00
MarianoGNU
79c500bee1
Modify margins with mouse input
2016-06-20 17:06:19 -03:00
Patrick Reh
fff4d5867c
Added Tile Origin = Bottom Left option to the TileMap
2016-06-20 12:18:53 +02:00
MarianoGNU
0f1a717c64
Remove unused connection. ShaderEditor should'nt handle ShaderGraphs.
...
Fixes #4678 && #4745
2016-06-20 00:50:33 -03:00
Juan Linietsky
7c20c386c5
-Added trigger mode to tracks, useful for properties that work as triggers, such as playing a sample, an animation, etc.
...
-Better interpolation of discrete tracks, fixes #4417
2016-06-19 01:43:02 -03:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Juan Linietsky
95dc15b750
Send body inout notifications after state is applied, fixes #4683
2016-06-17 16:45:10 -03:00
Juan Linietsky
4866713bc3
added a function CanvasItem.get_item_and_children_rect() , fixes #4738
2016-06-13 21:37:04 -03:00
Rémi Verschelde
0729c852b4
Fix indentation issues in last commits
...
Ping @reduz.
2016-06-07 07:39:40 +02:00
Juan Linietsky
2b9cab25c0
-Fix small bug regarding to canvas layer detection, closes #4381
2016-06-06 21:14:25 -03:00
Daniel J. Ramirez
ba0baa3ca7
Modified damp ranges
2016-05-23 18:23:51 -05:00
Daniel J. Ramirez
c9350d7897
Clamped some light2D ranges
2016-05-23 17:56:10 -05:00
Ovnuniarchos
0d20ceeb61
Polygon2D now exposes vertex colors.
2016-05-23 03:40:45 +02:00
Rémi Verschelde
94c34ff890
i18n: Proofreading of all strings
...
Done to ensure that no important identifiers are translatable,
to fix compound strings using the new vformat() function, and
some general English proofreading here and there.
2016-05-21 00:21:57 +02:00
volzhs
ebcf04ff1f
fix compile failure when tools=no
2016-05-18 14:29:53 +09:00
Rémi Verschelde
be4d95c19a
CanvasModulate: fix build issue with GCC
...
Bug from c195c0d
.
2016-05-17 23:47:26 +02:00
Juan Linietsky
c195c0df6b
-Added configuration warning system for nodes
...
-Added a new "add" and "instance" buttons for scene tree
-Added a vformat() function to ease translation work
2016-05-17 18:28:44 -03:00
volzhs
d6ccea541d
remove old bind for add_frame of SpriteFrames
...
it causes ``ERROR: Method already bound: SpriteFrames::add_frame``
2016-05-17 22:48:36 +09:00
Juan Linietsky
bed3efb17e
New reworked AnimatedSprite!
...
-New SpriteFrames editor, with support for drag&drop, multiple animation
sets, animation speed and loop.
-New AnimatedSprite, with support for all the new features!
AnimatedSprite3D has not been updated yet.
-Added support for drag&drop to other editors, such as resourcepreload,
sample library, etc.
2016-05-14 23:48:45 -03:00
MattUV
91c85ff1f5
classref: Fixed return types in Area and Area2D ( #4635 )
2016-05-12 17:03:15 +02:00
Rémi Verschelde
4eab767a6f
Rotation APIs: Better exposure for degrees methods
...
Made public the various set/getters for rotations in degrees.
For consistency, renamed the exposed method names to remove the leading
underscore, and kept the old names with a deprecation warning.
Fixes #4511 .
2016-05-06 23:38:08 +02:00
Ignacio Etcheverry
1e752c0120
Fix wrong return and argument types in documentation
2016-05-04 15:35:09 +02:00
Rémi Verschelde
c97cc362e3
Merge pull request #4387 from JoshuaGrams/rigidbody2d-torque
...
Hooked up RigidBody2D torque methods
2016-04-29 10:29:12 +02:00
Josh Grams
a7b4127481
RigidBody2D (add_force, set_inertia): new methods.
2016-04-26 08:15:15 -04:00
Josh Grams
ffaced87a6
RigidBody2D: rename apply_impulse(pos) to offset.
2016-04-24 04:36:51 -04:00
Bojidar Marinov
b2e0cedbf0
Fix continious update with Camera2D
...
Closes #4406
2016-04-23 15:27:32 +03:00
Josh Grams
f7d31cec38
RigidBody2D: add and bind get_inertia() method.
...
You can't set this value very well, since it's automatically computed
from the mass and the collision shapes. But since the values are higher
than many people might suspect, so being able to read it helps estimate
the amount of torque you might need to apply.
2016-04-20 20:49:37 -04:00
Josh Grams
dbabe4c07c
RigidBody2D: add and bind get/set_applied_torque.
2016-04-20 19:49:35 -04:00
Rémi Verschelde
6da39ce18d
Merge pull request #4380 from bojidar-bg/camera2d-fix-zoom
...
Fix Camera2D ignoring zoom when checking limits
2016-04-19 20:48:59 +02:00
Bojidar Marinov
7a8aea0be9
Fix Camera2D ignoring zoom when checking limits
...
Closes #1912
2016-04-19 21:35:02 +03:00
Bojidar Marinov
e7f66a88d6
Add preview of the Camera2D's screen boundaries
...
Closes #3365
2016-04-19 16:07:06 +03:00
Rémi Verschelde
b9ac3df29b
Merge pull request #4259 from neikeq/pr-issue-4224
...
Fix RayCast not updating when debugging collissions
2016-04-07 14:13:48 +02:00
Ignacio Etcheverry
6cf3bdcf76
Fix RayCast not updating when debugging collissions
2016-04-07 13:30:40 +02:00
Bojidar Marinov
6dcd1354c2
Add a sleeping_state_changed
signal to RigidBody and RigidBody2D classes
...
Closes #3911
2016-04-06 17:14:38 +03:00
Bojidar Marinov
2a581835ca
Fix issues with tilemap covering child nodes and old quadrants
...
Closes #4070
2016-03-18 18:57:26 +02:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
Franklin Sobrinho
1d188c1c7b
Fix Sprite doesn't updating region_rect value in certain conditions
2016-03-05 12:30:09 -03:00
Juan Linietsky
70cdfa681a
-Change link to new documentation
...
-fixed bug in tilemap collision debug
2016-02-20 10:02:14 -03:00
Rémi Verschelde
281236280e
Fix NavigationPolygon references in _bind_method
...
Also sync the doc accordingly
2016-02-17 18:46:31 +01:00
Rémi Verschelde
5439937899
Bind method is_cell_transposed
2016-02-15 23:30:52 +01:00
Johan Manuel
a634fc7a4a
Added get_cellv() method to TileMap
2016-02-06 13:48:41 +01:00
Juan Linietsky
35a28f3442
-Take in consideration canvas layers for GUI input
2016-01-24 10:57:42 -03:00