| 1091 | |
| 1092 | // |
| 1093 | void btSoftBody::transformTo(const btTransform& trs) |
| 1094 | { |
| 1095 | // get the current best rigid fit |
| 1096 | btTransform current_transform = getRigidTransform(); |
| 1097 | // apply transform in material space |
| 1098 | btTransform new_transform = trs * current_transform.inverse(); |
| 1099 | transform(new_transform); |
| 1100 | } |
| 1101 | |
| 1102 | // |
| 1103 | void btSoftBody::transform(const btTransform& trs) |