Skip to content

Commit b7dcb1f

Browse files
committed
Merge pull request #108094 from simpkins/jolt_soft_body_transform
Jolt physics: wake up a soft body when its transform changes
2 parents fc20bb6 + 71e3a22 commit b7dcb1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/jolt_physics/objects/jolt_soft_body_3d.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ void JoltSoftBody3D::set_transform(const Transform3D &p_transform) {
606606
vertex.mPosition = vertex.mPreviousPosition = relative_transform * vertex.mPosition;
607607
vertex.mVelocity = JPH::Vec3::sZero();
608608
}
609+
wake_up();
609610
}
610611

611612
AABB JoltSoftBody3D::get_bounds() const {

0 commit comments

Comments
 (0)