Skip to content

Commit

Permalink
Enable physics interpolation
Browse files Browse the repository at this point in the history
Physics interpolation was disabled on the reactor core as it caused
visual glitches. It was also disabled on the forklight as it's
actually moved in `_process` (the engine was printing warnings
about it).
  • Loading branch information
Calinou committed Aug 6, 2022
1 parent c1c4cc2 commit f0c038a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions level/forklift/flying_forklift.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ material = SubResource( 2 )
colors = PoolColorArray( 0, 1, 0.976562, 1, 1, 1, 1, 0 )

[node name="FlyingForklift" type="KinematicBody"]
physics_interpolation_mode = 1
script = ExtResource( 3 )

[node name="FlyingForkliftModel" parent="." instance=ExtResource( 1 )]
Expand Down
14 changes: 8 additions & 6 deletions level/geometry/scenes/core.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -155,24 +155,24 @@ offsets = PoolRealArray( 0.381215, 0.61326, 0.994475 )
colors = PoolColorArray( 1, 0.678431, 0, 1, 0.138889, 0.0944011, 0, 1, 0, 0, 0, 1 )

[sub_resource type="CylinderShape" id=4]
radius = 10.5
height = 4.0
radius = 10.5

[sub_resource type="CylinderShape" id=5]
radius = 11.0
height = 3.6
radius = 11.0

[sub_resource type="CylinderShape" id=6]
radius = 4.5
height = 24.0
radius = 4.5

[sub_resource type="CylinderShape" id=7]
radius = 10.0
height = 11.0
radius = 10.0

[sub_resource type="CylinderShape" id=8]
radius = 35.0
height = 5.0
radius = 35.0

[sub_resource type="BoxShape" id=9]
extents = Vector3( 40, 6, 40 )
Expand Down Expand Up @@ -208,9 +208,9 @@ color_ramp = SubResource( 3 )
transform = Transform( 0.334226, 0, 0, 0, 0.334226, 0, 0, 0, 0.334226, 0, 0, 0 )
material_override = SubResource( 15 )
mesh = ExtResource( 7 )
material/0 = null

[node name="CPUParticles" type="CPUParticles" parent="Plasma"]
physics_interpolation_mode = 1
material_override = SubResource( 20 )
amount = 3
preprocess = 5.29
Expand All @@ -235,6 +235,7 @@ scale_amount_curve = SubResource( 21 )
color_ramp = SubResource( 22 )

[node name="CPUParticles2" type="CPUParticles" parent="Plasma"]
physics_interpolation_mode = 1
material_override = SubResource( 23 )
amount = 5
mesh = ExtResource( 12 )
Expand All @@ -249,6 +250,7 @@ scale_amount_curve = SubResource( 24 )
color_ramp = SubResource( 25 )

[node name="CPUParticles3" type="CPUParticles" parent="Plasma"]
physics_interpolation_mode = 1
material_override = SubResource( 23 )
amount = 7
explosiveness = 0.14
Expand Down
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ toggle_debug={
[physics]

3d/physics_engine="Bullet"
common/physics_interpolation=true

[rendering]

Expand Down

0 comments on commit f0c038a

Please sign in to comment.