Browse Source

Merge pull request #108094 from simpkins/jolt_soft_body_transform

Jolt physics: wake up a soft body when its transform changes
Thaddeus Crews 2 months ago
parent
commit
b7dcb1f728
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/jolt_physics/objects/jolt_soft_body_3d.cpp

+ 1 - 0
modules/jolt_physics/objects/jolt_soft_body_3d.cpp

@@ -606,6 +606,7 @@ void JoltSoftBody3D::set_transform(const Transform3D &p_transform) {
 		vertex.mPosition = vertex.mPreviousPosition = relative_transform * vertex.mPosition;
 		vertex.mVelocity = JPH::Vec3::sZero();
 	}
+	wake_up();
 }
 
 AABB JoltSoftBody3D::get_bounds() const {