mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 21:39:58 -04:00
Leave Link's own motion vectors off until they have been played, and take their settings through nx2navi.ini.
The pose motion vectors for Link and his attached equipment were on by default for game 1.1.1 and had not been run in the game on this version. selective_motion = 1 turns them on. Its settings are listed among the known ones, so nx2navi.ini takes them without an unknown key line, and the rotation threshold is read through the settings instead of from the environment alone. nx2navi.ini.example describes the switch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -199,7 +199,7 @@ static float pose_rotation_trace_limit(void) {
|
||||
static int degrees;
|
||||
static float limit;
|
||||
if (!degrees) {
|
||||
const char *setting = getenv("NX2NAVI_MOTION_GUARD_DEGREES");
|
||||
const char *setting = cfg_get("NX2NAVI_MOTION_GUARD_DEGREES"); // motion_guard_degrees in nx2navi.ini too
|
||||
degrees = setting && !strcmp(setting, "35") ? 35 : setting && !strcmp(setting, "45") ? 45 : 60;
|
||||
limit = degrees == 60 ? 2.0f : degrees == 45 ? 2.41421356f : 2.63830409f;
|
||||
rt_log("motion policy: rotation guard threshold %d degrees per rendered frame", degrees);
|
||||
|
||||
Reference in New Issue
Block a user