summaryrefslogtreecommitdiff
path: root/servers/physics
AgeCommit message (Collapse)Author
2016-07-08Remove unused variables (fourth pass) + dead codeRémi Verschelde
Also fix a potential regression from 3fcb9b1ec179b99d979d4cfea9b5e3c80e4a3e33.
2016-06-18Drop fully commented-out filesRémi Verschelde
Part of #5272
2016-06-18Drop empty .cpp files for header-only classesRémi Verschelde
Part of #5272
2016-06-18Add missing license headers in our source files (#5255)Rémi Verschelde
Also removes a couple wrong Godot headers from third-party source files.
2016-05-23Remove noisy printCarter Anderson
2016-05-21First version of ProfilerJuan Linietsky
It is now possible to profile GDScript as well as some parts of Godot internals.
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-03-09remove trailing whitespaceHubert Jarosz
2016-01-23Merge pull request #2698 from Faless/add_area_fixJuan Linietsky
Fix bug in Body(2D)SW::add_area
2016-01-10avoid crash with empty concavepolygonshape, fixes #3169Juan Linietsky
2016-01-10change intersect_ray function to discriminate pickable objects, fixes #3203Juan Linietsky
2016-01-02skip the first integration in physics bodies, fixes #2213Juan Linietsky
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-12-28Remove bogus argument in body_get_nodeRémi Verschelde
2015-12-14New and corrected are override modes.Ovnuniarchos
2015-12-08Merge pull request #2868 from akien-mga/pr-fix-can-move-toJuan Linietsky
Fix can_move_to and rename it for more clarity
2015-12-08Areas now calculate their dampenings the same way as their gravity.Ovnuniarchos
2015-12-04Fix wrong index being used to populate r_resultsRémi Verschelde
Regression from f33d9da.
2015-12-02Fix Body (and Body2D) add_area / remove_area when area have multiple shapesFabio Alessandrelli
2015-11-22Fix can_move_to and rename it for more clarityRémi Verschelde
Fixes #2416. The KinematicBody::can_move_to function was likely designed for two behaviours: - discrete: check if the body can "teleport" to the destination - continuous: check if the direct path to the destination is valid The continuous behaviour was however not implemented, and the discrete behaviour was broken too due to a wrong call to intersect_shape. The discrete behaviour has thus been fixed and the function renamed to can_teleport_to for more clarity.
2015-11-01Cosmetic fixes to SCons buildsystemRémi Verschelde
- Removed trailing spaces - Made sure all indentation is done using tabs (fixes #39) - Potentially fixed an identation issue for openssl check
2015-10-17Merge pull request #2479 from firefly2442/cppcheck-unusedvarsJuan Linietsky
ran cppcheck, found unused variables
2015-10-10Fix 3D Area mask matchingeska
2015-10-08newline fixesreduz
2015-09-20Ability to visually debug geometry visually:Juan Linietsky
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc. -Visible Navmesh and Navpoly -Visible collision contacts for 2D and 3D as a red point -Customizable colors in project settings
2015-09-16ran cppcheck, found unused variablesfirefly2442
2015-09-03merged some stuff for okamJuan Linietsky
2015-08-30Added gravity scale, and linear/angular damp override to 3D physics.Juan Linietsky
2015-06-12added ability for Area (3D) to detect other areasJuan Linietsky
2015-05-18Calculate gravity based on distance from body to gravity pointFabio Alessandrelli
2015-05-16sleeping property now should work properly, fixes #1892Juan Linietsky
2015-05-06optional formal changesehriche
2015-05-06PhysicsServerSW::body_is_shape_set_as_trigger - missing return statementehriche
2015-05-01-Fixes from source code analyzizer, closes #1768Juan Linietsky
2015-04-26properly wake up bodies when a parameter changes, fixes #1740Juan Linietsky
2015-04-26fixes crash related to empty concavecollisionshape, fixes #1709Juan Linietsky
2015-04-18Merge pull request #1691 from Faless/area_combine_2dJuan Linietsky
Implement Area2D space_override_mode = COMBINE
2015-04-18Updated copyright year in all headersJuan Linietsky
2015-04-14Fix operator definition for AreaCMPFabio Alessandrelli
2015-03-24Re-sort Area array during integration stepFabio Alessandrelli
2015-03-24Implement combine mode for areaFabio Alessandrelli
2015-03-24Use Vector for storing areasFabio Alessandrelli
2015-03-22fix area center of gravityJuan Linietsky
2015-03-22Merge pull request #1446 from ↵Juan Linietsky
UsernameIsAReservedWord/fixes_kinematicbody_move_crash should fixes #1284 (KinematicBody .move() crash)
2015-03-22input events on Area2D is now supportedJuan Linietsky
also added a demo showing how this works
2015-02-26should fixes #1284UsernameIsAReservedWord
I could reproduce the crash described in #1284 only with 32bits versions of godot. The test scene contains a Plane collision shape, and a kinematicsbody with a Sphere collision shape. The crash occurs into `CollisionSolverSW::solve_distance_plane()` on line 299 when `p_shape_A` is a `PlaneShapeSW` object and when `p_shape_B` is a `MotionShapeSW` object, because `int support_count;` is not initialized by default, and because `MotionShapeSW::get_supports()` does not change `support_count` once passed as referenced parameter, and if the default value of `support_count` is greater than the length of `supports[16]`. I don't know if it is the good way to fix it because i'm not skilled ennough with the physics server inner working, but this fix prevents the crash and the test-scene seems to work correctly.
2015-01-05-CCD in 3D physics was not working (code was not even there!) re-added, ↵Juan Linietsky
fixes 1067
2015-01-04-WIP to add proper key swapping according to keyboard layoutJuan Linietsky
-fix with non working removal of collision exception in 3D physics
2014-12-07Batch of BugfixesJuan Linietsky
-=-=-=-=-=-=-=-=- -Fixed Export UV XForm (should work now). #923 -Fixed enforcement of limits in property editor. #919 -Fixed long-standing bug of export editings in script inheritance. #914, #859, #756 -Fixed horrible error reporting in shader language. #912 -Added kinematic collision with plane (please test well). #911 -Fixed double animation track insert when using 2D rigs. #904 -VKey updates offset parameter in sprite edition. #901 -Do not allow anymore a script to preload itself. (does not fix #899, but narrows it down) -Avoid connection editor from overriding selected text. #897 -Fixed timer autostart. #876 -Fixed collision layers in 3D physics. #872 -Improved operators in shader #857 -Fixed ambient lighting bug #834 -Avoid editor from processing gamepad input #813 -Added not keyword #752 Please test!
2014-10-14ColladaJuan Linietsky
-=-=-=- -Fixed some DAE import & export bugs -Changed Collada exporter to use the mesh loops API -Added tangent export to Collada exporter -Added triangulation option to Collada exporter -Changed a little how normalmaps are handled in shader. Not sure if it's working properly, be careful. -Fixed some strange bug with kinematic bodies #776 -Fix release compilaiton issues #782