summaryrefslogtreecommitdiff
path: root/scene/3d/spatial.cpp
AgeCommit message (Collapse)Author
2020-01-25Fixes crash in Spatial::notificationHaoyu Qiu
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-11-30Update transform property in the inspector when changing ↵PouleyKetchoupp
translation/rotation/scale
2019-10-11fix #32711 : Spatial::look_at wrong re-scalingRodolfo Ribeiro Gomes
2019-08-09Remove ERR_EXPLAIN from scene/* codeTomasz Chabora
2019-07-01fix some crashesFurkan Türkal
2019-05-23Merge pull request #29125 from rodolforg/fix_spatial_look_at_affecting_scaleRémi Verschelde
fix un-scaling in Spatial::look_at_from_position
2019-05-23fix un-scaling in Spatial::look_at_from_positionRodolfo Ribeiro Gomes
As mentioned in https://github.com/godotengine/godot/pull/26897#issuecomment-491178089 the look-at scaling issue solved by PR #26897 happens also in another look-at method. Spatial::look_at_from_position() also does not have same input checking Spatial::look_at() has. Therefore, I fixed it too at same time.
2019-04-30Merge pull request #26897 from rodolforg/fix_spatial_look_at_affecting_scaleRémi Verschelde
Spatial::look_at() now preserves its scale values
2019-04-26Spatial::look_at() now preserves its scale valuesRodolfo Ribeiro Gomes
It always normalized basis after look_at() computation. Now it applies previous scale back, in order to avoid distortions when global scale was different of (1,1,1). fix #10003 and #19000 Related to #17924
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-03-07No longer crash due to wrongly requesting a gizmo, fixes #26735Juan Linietsky
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-30Merge pull request #24506 from JFonS/expose_gizmosRémi Verschelde
Expose the new gizmo plugin system to scripting
2018-12-21Expose the new gizmo plugin system to scriptingJFonS
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
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.
2018-09-06Add a function to force transform update, fixes #17628Juan Linietsky
2018-09-02Fix selection of instanced scenes in 3DJFonS
2018-08-09New gizmo structure and new gizmo disabling menuJFonS
2018-08-07Several improvements to inspector.Juan Linietsky
-Added optional horizontal/vertical modes for vector editing (default false for vec2, true for vec3) -Some clean ups with fonts and styles
2018-07-26Merge pull request #18955 from tagcup/fix_set_scaleRémi Verschelde
Removed incorrect Basis::set_scale().
2018-07-18Ability to disable scale in nodes, closes #19927Juan Linietsky
2018-05-17Removed incorrect Basis::set_scale().tagcup
Also added a missing constructor in Basis, and fixed usage of inverse and affine inverse in Transform.
2018-05-07Implemented ragdollAndreaCatania
Implementing ragdoll Implementing ragdoll Implementing ragdoll Implementing ragdoll Implementing ragdoll a Implemented implicit hierarchy. Improved Added some physics properties Added bone offset to preserve COM, partially fixed scaling work in progress WIP wip Implemented Joint Gizmos Implemented pin joint joint Implemented all joints
2018-04-29Fix binding some core API methods only in tools buildsIgnacio Etcheverry
2018-04-14Avoid converting Quat to Euler angles when not necessary.tagcup
Also ensure that get_scale doesn't arbitrarlity change the signs of scales, ensuring that the combination of get_rotation and get_scale gives the correct basis. Added various missing functions and constructors. Should close #17968.
2018-02-24Fix visibility of gizmos on scene loadJFonS
2018-01-12Bind many more properties to scriptsBojidar Marinov
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-05Add missing copyright headers and fix formattingRémi Verschelde
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-02Merge pull request #15083 from tagcup/spatial_rot_fixJuan Linietsky
Restore the behavior of Spatial rotations recently changed in c1153f5.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-27Restore the behavior of Spatial rotations recently changed in c1153f5.tagcup
That change was borne out of a confusion regarding the meaning of "local" in #14569. Affine transformations in Spatial simply correspond to affine operations of its Transform. Such operations take place in a coordinate system that is defined by the parent Spatial. When there is no parent, they correspond to operations in the global coordinate system. This coordinate system, which is relative to the parent, has been referred to as the local coordinate system in the docs so far, but this sloppy language has apparently confused some users, making them think that the local coordinate system refers to the one whose axes are "painted" on the Spatial node itself. To avoid such conceptual conflations and misunderstandings in the future, the parent-relative local system is now referred to as "parent-local", and the object-relative local system is called "object-local" in the docs. This commit adds the functionality "requested" in #14569, not by changing how rotate/scale/translate works, but by adding new rotate_object_local, scale_object_local and translate_object_local functions. Also, for completeness, there is now global_scale. This commit also updates another part of the docs regarding the rotation property of Spatial, which also leads to confusion among some users.
2017-12-26Change the rotate function of Spatial to be local, makes more sense. Closes ↵Juan Linietsky
#14569
2017-12-07Style: Apply new clang-format 5.0 style to all filesRémi Verschelde
2017-11-10Unify degree members and propertiesletheed
2017-11-10Remove deprecated rotation methodsletheed
2017-09-20Rename pos to position in user facing methods and variablesletheed
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-08Fix unused variable warningsHein-Pieter van Braam
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-26-Massive clean up to gizmosJuan Linietsky
-Make sure handles are always visible (on top) -Fixed instanced scene selection (should work properly now) -Added interpolated camera -Customizable gizmo colors in editor settings
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-11Merge pull request #10202 from neikeq/how-do-you-turn-this-onRémi Verschelde
Improves method bind's detecting of signarute types
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-09Gizmos properly follow the edited object, closes #7837Juan Linietsky
2017-07-24Merge pull request #9791 from bojidar-bg/6087-add-global-local-convRémi Verschelde
Add .to_local/.to_global methods on Node2D and Spatial
2017-07-23Add object type hint for docsPoommetee Ketson
2017-07-23Add .to_local/.to_global methods on Node2D and SpatialBojidar Marinov
Those are just helpers around get_global_transform().affine_inverse().xform() and get_global_transform().xform(). Closes #6087