mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-29 20:14:30 +00:00
fix for nil model-changed christoffel
This commit is contained in:
1 parent
07aa843f18
commit
097ded1bd0
1 file changed
+4
-4
+4
-4
@@ -803,10 +803,10 @@ EX namespace nilv {
|
||||
convert_tangent_ref(P, V, model_used, nmHeis);
|
||||
convert_tangent_ref(P, T, model_used, nmHeis);
|
||||
auto res = christoffel(P, V, T, nmHeis);
|
||||
convert_tangent_ref(P, res, nmHeis, model_used);
|
||||
// this is acceleration, not tangent, so:
|
||||
res[2] += (model_used-nmHeis) * V[0] * V[1];
|
||||
return res;
|
||||
|
||||
auto T1 = T + res;
|
||||
convert_tangent_ref(P + V, T1, nmHeis, model_used);
|
||||
return T1 - Transported;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user