summaryrefslogtreecommitdiff
path: root/servers/physics
AgeCommit message (Collapse)Author
2016-11-01style: Fix PEP8 whitespace issues in Python filesRémi Verschelde
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-10-17SCsub: Add python shebang as a hint for syntax highlightingRémi Verschelde
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-03Expose more 2D/3D physics options in project settingsFabio Alessandrelli
2016-07-24Fix for incorrect velocity report due to a typo.Alex Piola
Closes #5854
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.