MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / UpdateWorldRT

Method UpdateWorldRT

GTE/Graphics/IKController.cpp:247–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void IKController::Joint::UpdateWorldRT()
248{
249 Spatial const* parent = object->GetParent();
250 auto const& olxfrm = object->localTransform;
251 auto& owxfrm = object->worldTransform;
252
253 if (parent)
254 {
255 auto const& pwxfrm = parent->worldTransform;
256 owxfrm.SetRotation(pwxfrm.GetRotation() * olxfrm.GetRotation());
257 owxfrm.SetTranslation(pwxfrm * olxfrm.GetTranslationW1());
258 }
259 else
260 {
261 owxfrm.SetRotation(olxfrm.GetRotation());
262 owxfrm.SetTranslation(olxfrm.GetTranslation());
263 }
264}
265
266Vector3<float> IKController::Joint::GetAxis(int32_t axis)
267{

Callers 1

UpdateMethod · 0.80

Calls 6

GetParentMethod · 0.80
SetRotationMethod · 0.80
GetRotationMethod · 0.80
SetTranslationMethod · 0.80
GetTranslationW1Method · 0.80
GetTranslationMethod · 0.45

Tested by

no test coverage detected