summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2021-10-05Merge pull request #53051 from kleonc/animated-sprites-centered-renderingRémi Verschelde
2021-10-04Fix physics glitch with TileMap moving platformsPouleyKetchoupp
Added a parameter in test_body_motion to exclude attached objects from collision, used to avoid collision with all TileMap tiles with moving platform motion instead of just the one tile the character touches. Same changes made in 3D for consistency, and handling potential similar cases.
2021-10-04Script interface improvements for test body motionPouleyKetchoupp
-Physics servers test body motion use a class to hold parameters instead of multiple arguments to make it more readable and flexible since there are many options -Improved documentation for test body motion and kinematic collision -Removed read-only properties for body motion results (not handled in scripts, so they should be get_ methods only instead)
2021-10-03Fix rendering centered odd-size texture in AnimatedSprite2D/AnimatedSprite3Dkleonc
2021-10-01Rename Joint2D and Joint3D files for consistencyPouleyKetchoupp
Now matches the class names to be consistent between 2D and 3D and with other node types.
2021-09-30Merge pull request #53272 from fabriceci/bug-platform-ceilingCamille Mohr-Daurat
Fix #53255 when a body gets stuck when it hits a descending platform in 2D/3D
2021-09-30Fix body stuck on descending platformfabriceci
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-30Remove shape metadata from 2D physics serverPouleyKetchoupp
Shape metadata was only used to get tile information when colliding with tilemaps. It's not needed anymore since there's an API in tilemap using body ids instead.
2021-09-30Add latest changes added in the 3D versionfabriceci
2021-09-30Merge pull request #53239 from nekomatata/fix-animatable-body-initial-stateRémi Verschelde
2021-09-29Fix AnimatableBody moving and colliding during the first framePouleyKetchoupp
_update_kinematic_motion() shouldn't be called in the constructor It's too early and causes a first call to set the body position to 0. Then the second call to set the actual position triggers kinematic motion, colliding with objects on the path to the initial position. Side effect of sync to physics now enabled by default.
2021-09-29Improve TileMap physics for moving platforms and conveyor belts like movementsGilles Roudière
2021-09-28Merge pull request #52754 from nekomatata/dynamic-body-modesCamille Mohr-Daurat
Clarify RigidDynamicBody modes
2021-09-28Set stop on slope on by default on CharacterBody.fabriceci
2021-09-28Merge pull request #53174 from fabriceci/apply-delta-move-and-collideCamille Mohr-Daurat
Physic API change: apply the delta in move and collide like move and slide
2021-09-28Sync to physics true by default for AnimatableBodyfabriceci
2021-09-28Apply delta in move and collidefabriceci
2021-09-28Merge pull request #52953 from nekomatata/fix-collision-recovery-depthRémi Verschelde
2021-09-27Improved logic for CharacterBody collision recovery depthPouleyKetchoupp
Allows 2D character controller to work without applying gravity when touching the ground (also more safely in 3D), and collision detection is more flexible with different safe margin values. Character body motion changes in 2D and 3D: -Recovery only for depth > min contact depth to help with collision detection consistency (rest info could be lost if recovery was too much) -Adaptive min contact depth (based on margin) instead of space parameter Extra CharacterBody changes: -2D: apply changes made in 3D for stop on slope and floor snap that help fixing some jittering cases -3D: fix minor inconsistencies in stop on slope and floor snap logic
2021-09-27Fix TileMap layer loadingkobewi
2021-09-24Merge pull request #52430 from AnilBK/vector2-replacementsRémi Verschelde
2021-09-23Construct values only when necessary.Anilforextra
2021-09-23Implement animated tilesGilles Roudière
2021-09-22Don't override KinematicCollision reference when still in use in scriptPouleyKetchoupp
In case the reference is stored in script, create a new instance to avoid overriding the previous values. Otherwise, re-use the reference as before to avoid extra allocations.
2021-09-22Port 2D improvement to move and slide 3Dfabriceci
Co-authored-by: Camille Mohr-Daurat <pouleyketchoup@gmail.com>
2021-09-21Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra
2021-09-16Clarify RigidDynamicBody modesPouleyKetchoupp
RigidDynamicBody modes are replaced with several properties to make their usage clearer: -lock_rotation: disable body's rotation (instead of MODE_LOCKED) -freeze: no gravity or forces (instead of MODE_STATIC and MODE_KINEMATIC) -freeze_mode: Static (can be only teleported) or Kinematic (can be animated) Also renamed MODE_DYNAMIC_LOCKED to MODE_DYNAMIC_LINEAR in the physics servers.
2021-09-16Rename Listener2D/Listener3D to AudioListener2D/AudioListener3DWilson E. Alvarez
2021-09-16Merge pull request #52681 from nekomatata/rename-rigid-bodyCamille Mohr-Daurat
Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBody
2021-09-16Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBodyPouleyKetchoupp
2021-09-16Retrieve platform layer from PhysicsServer2Dfabriceci
2021-09-15Merge pull request #52308 from ↵Rémi Verschelde
rxlecky/parallax-layer-position-reset-fix-issue-51914 Fix ParallaxLayer's transform resetting in editor
2021-09-15Merge pull request #52622 from rileylyman/tilemap-crashGilles Roudière
Break TileMap _clear_internals out from _recreate_internals
2021-09-14Break TileMap _clear_internals out from _recreate_internalsRiley Lyman
2021-09-14Fix transform of TileMap nodes and tilemap selectionGilles Roudière
2021-09-10Merge pull request #52433 from groud/document_tilesMax Hilbrunner
Tiles renames and documentation
2021-09-09Merge pull request #44844 from KoBeWi/hey_listen!_but_2dJuan Linietsky
Add Listener2D
2021-09-08Tiles renames/bugfixing and documentationGilles Roudière
2021-09-07Merge pull request #52237 from ellenhp/polyphonyJuan Linietsky
Add optional polyphonic playback to built-in audio player nodes
2021-09-07Add polyphony to Audio Stream Player nodesEllen Poe
2021-09-07Merge pull request #52277 from groud/implement_array_property_hintJuan Linietsky
Implement properties arrays in the Inspector.
2021-09-07Implement properties arrays in the Inspector.Gilles Roudière
2021-09-07Use builtin Vector2 functions for calculation of angles.Anilforextra
.
2021-09-06Proper support for custom mass properties in 2D/3D physics bodiesPouleyKetchoupp
Changes: -Added support for custom inertia and center of mass in 3D -Added support for custom center of mass in 2D -Calculated center of mass from shapes in 2D (same as in 3D) -Fixed mass properties calculation with disabled shapes in 2D/3D -Removed first_integration which is not used in 2D and doesn't seem to make a lot of sense (prevents omit_force_integration to work during the first frame) -Support for custom inertia on different axes for RigidBody3D
2021-09-06Merge pull request #52286 from nekomatata/restore-kinematic-bodyCamille Mohr-Daurat
Add AnimatableBody inherited from StaticBody for moving platforms
2021-09-06Fix crash in TileMap physicsGilles Roudière
2021-09-01Fix ParallaxLayer's transform resetting in editorSeleckyErik
Disable resetting of ParallaxLayer's position and scale in editor to allow setting the initial values.
2021-08-31Add AnimatableBody inherited from StaticBody for moving platformsPouleyKetchoupp
Instead of having a physics node named Static that can be either Static or Kinematic, AnimatableBody is added again as a separate node: -Inherited from StaticBody to make its usage clearer -Still separated from CharacterBody to make its usage more focused Properly implemented constant velocity for kinematic bodies in godot physics servers (induced velocity without actually moving). Also updated description for the different physics nodes to make their usage clearer.
2021-08-31Merge pull request #49471 from nekomatata/body-state-sync-callbackJuan Linietsky
Clean physics direct body state usage in 2D and 3D physics