summaryrefslogtreecommitdiff
path: root/scene/3d/ray_cast.cpp
AgeCommit message (Collapse)Author
2019-08-21Draw 3D collision shape/raycast gizmos in grayscale when disabledHugo Locurcio
This makes them easier to distinguish from their enabled counterparts, as is already done in the 2D editor.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
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-08-21Changes to ClippedCamera, RayCast,Raycast2D and 2D physics API to add ↵Juan Linietsky
ability to choose between bodies and areas when colliding.
2018-08-21Added ray / shape / point / motion / rest cast exclusion of area and or bodyAndrea Catania
2018-04-11Use internal physics processing for Nodes' internal logicRémi Verschelde
2018-01-12Reset collider on ray nodeAndreaCatania
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-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-11-30Ported 'Exclude Parent' from Raycast2D to RaycastMarco Masselli
2017-11-21Removed type_mask and fixed some variable nameAndreaCatania
2017-10-23missing set/get_collision_mask_bit() for RayCastJakub Grzesik
in the same fastion how it's implemented in Area or Bodies
2017-10-21Rename RayCasts collision_layer to collision_maskPedro J. Estébanez
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-09-30Renamed fixed_process to physics_processAndreaCatania
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
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-06-14Refactor layer_mask to collision_layerPoommetee Ketson
2017-06-07-Added proper access to depth texture from shaderJuan Linietsky
-Split Mesh into Mesh (abstrat class) and ArrayMesh, to allow to proper mesh primitives, as well as streamable meshes in the future.
2017-04-24Fixed #8102, by renaming FixedSpatialMaterial to SpatialMaterialNuno Donato
2017-04-24Merge pull request #8102 from bd339/iss3172Rémi Verschelde
Show 3D raycasts when debugging collisions
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-30Show 3D raycasts when debugging collisionsBenjamin Dahse
Represent a raycast by a line segment using the direction and magnitude of the cast_to vector. The entire line segment will become red while a collision occurs.
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56
2017-01-10It is now possible to name layers of different kinds!Juan Linietsky
2017-01-02ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky
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-01Welcome in 2017, dear changelog reader!Rémi Verschelde
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!
2016-10-03Added force_raycast_update GDScript method for RayCast[2D]Karol Walasek
2016-04-09Port collision and layer masks to 3D, fixes #1759Bojidar Marinov
Raycasts now have type_mask and layer_mask. Areas - collision_mask and layer_mask. PhysicsBodies needed only collision_mask.
2016-04-07Fix RayCast not updating when debugging collissionsIgnacio Etcheverry
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-04-18Updated copyright year in all headersJuan Linietsky
2015-01-03-Work in progress visual shader editor *DOES NOT WORK YET*Juan Linietsky
2014-11-05SceneMainLoop -> SceneTreeJuan Linietsky
-=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around
2014-02-09GODOT IS OPEN SOURCEJuan Linietsky