Commit c529f36
committed
Jolt physics: Setting position instead of velocity in JoltSoftBody3D::set_vertex_position
This fixes a discrepancy between godot physics and Jolt physics where in Jolt a vertex pinned to a body only gets its velocity updated while in godot it gets its position updated. This causes it to lag one frame behind.
Fixes godotengine#1063011 parent 209a446 commit c529f36
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | 633 | | |
639 | 634 | | |
640 | 635 | | |
641 | 636 | | |
642 | 637 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 638 | + | |
648 | 639 | | |
649 | 640 | | |
650 | 641 | | |
| |||
0 commit comments