This also improves visuals in the Voxel and Dynamic Split Screen demos,
and fixes splitscreen mode in the Platformer 2D demo.
Most demos (other than physics tests) have also had their physics FPS
increased to 120. This is done consistency with 4.x, but also for the
benefits it still provides when interpolation are enabled
(lower input lag, more stable simulation).
I believe this comment got out-of-date (based on the fact that the `Stage` scene seems like something that was in an older version of the demo: 81441c42b7/2d/platformer/Stage.tscn), so updated the commment to reflect the current state of the demo, along with some other information that I thought a developer might find helpful.
This allows those demos to run on a greater range of devices.
Particles2D nodes were converted to CPUParticles2D for compatibility
with GLES2.
Physics-Based 2D Platformer demo now uses the same stretch mode
as 2D Platformer for consistency.
- Create bodies by duplicating the ones from the scene to allow custom
settings on them for testing purpose
- Rename 3D test with multiple groups of bodies "Contact Islands"
instead of "Contacts Extended" for clarity
- Added "Contact Islands" test for 2D
- Fixed log spamming with "Contact Islands" tests due to printing log
messages for each group of bodies
- Added parameter to randomize spawn positions in order to make
contact separation more balanced (avoids artifacts like a huge column
for circles in 2D test)
- Using smaller shapes and larger amount of objects by default to test
more extreme case
Fix custom collision shape drawing in physics tests:
CollisionShape debug draw has changed in 3.3 and now requires a body
to be rendered, so the trick to display custom physics shapes in the
physics tests had to be updated.
Cylinder support:
Now cylinders are supported in Godot Physics, so the exception to avoid
spamming errors when cylinders are used can be removed.
Rigid body picking:
Added mouse-picking to Test Shapes in both 2D and 3D.
This demo showcases how to use low-level Servers to achieve better
CPU performance when drawing large amounts of objects.
The code has been updated for Godot 3.2, cleaned up and has received
additional comments.
Added new test for 2D character controller:
Character - Pixels
Functional test for pixel art related issues around KinematicBody and
RigidBody character controllers.
Adjusted existing tests and added more test cases to cover most use
cases from recent fixed issues and regressions for KinematicBody.
Added a more automated way to run all tests with checks to see which
ones failed in character controller tests.
Also fixed some minor issues with the log scrollbar.
Changed debug collision shortcut from 'D' to 'C' to keep WASD available
for other functions in some tests.
Unbound arrows from UI shortcuts for the same reason.