Merge pull request #108094 from simpkins/jolt_soft_body_transform
Jolt physics: wake up a soft body when its transform changes
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user