mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Use Jolt Physics in all 3D demos that use physics, improve physics tests demos (#1195)
- Add options for physics ticks per second, time scale, max physics steps per frame
and physics interpolation to the 2D and 3D physics tests demos.
- Physics ticks per second are always multiplied by time scale so that
time scale does not affect the physics simulation quality.
- Enable 4× MSAA for better debug shape display. Remove meshes/lights as
the debug collision fill make these unnecessary.
- Switch to the Mobile rendering method in the 2D physics tests demo
to allow for 2D MSAA, as it's not implemented in Compatibility yet.
- Improve collision shapes color in the 2D and 3D physics tests demos
for better visibility. Each PhysicsBody type now has its own collision
shape color.
This commit is contained in:
@@ -95,7 +95,15 @@ character_jump={
|
||||
|
||||
[physics]
|
||||
|
||||
jolt_physics_3d/limits/max_bodies=20480
|
||||
jolt_physics_3d/limits/max_body_pairs=131072
|
||||
jolt_physics_3d/limits/max_contact_constraints=40960
|
||||
3d/physics_engine="Jolt Physics"
|
||||
jolt_physics_3d/limits/temporary_memory_buffer_size=128
|
||||
jolt_physics_3d/limits/max_bodies=262144
|
||||
jolt_physics_3d/limits/max_body_pairs=262144
|
||||
jolt_physics_3d/limits/max_contact_constraints=262144
|
||||
common/physics_interpolation=true
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
anti_aliasing/quality/msaa_3d=2
|
||||
|
||||
Reference in New Issue
Block a user