fix for nil model-changed christoffel
This commit is contained in:
parent
07aa843f18
commit
097ded1bd0
|
@ -803,10 +803,10 @@ EX namespace nilv {
|
||||||
convert_tangent_ref(P, V, model_used, nmHeis);
|
convert_tangent_ref(P, V, model_used, nmHeis);
|
||||||
convert_tangent_ref(P, T, model_used, nmHeis);
|
convert_tangent_ref(P, T, model_used, nmHeis);
|
||||||
auto res = christoffel(P, V, T, nmHeis);
|
auto res = christoffel(P, V, T, nmHeis);
|
||||||
convert_tangent_ref(P, res, nmHeis, model_used);
|
|
||||||
// this is acceleration, not tangent, so:
|
auto T1 = T + res;
|
||||||
res[2] += (model_used-nmHeis) * V[0] * V[1];
|
convert_tangent_ref(P + V, T1, nmHeis, model_used);
|
||||||
return res;
|
return T1 - Transported;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue