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:
commit
b7dcb1f728
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue