MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / transformTo

Method transformTo

src/BulletSoftBody/btSoftBody.cpp:1093–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091
1092//
1093void 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//
1103void btSoftBody::transform(const btTransform& trs)

Callers 5

initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
createDeformMethod · 0.45

Calls 2

transformFunction · 0.50
inverseMethod · 0.45

Tested by 1

initPhysicsMethod · 0.36