Skip to content

Vhi.MovementConfigLoader

VHI_godot

Vhi

MovementConfigLoader Class

Loads hand movement configurations from TOML files

public static class MovementConfigLoader

Inheritance System.Object → MovementConfigLoader

Fields

MovementConfigLoader.RigNativeConvention Field

The `convention` value meaning "degrees as this rig renders them".

public const string RigNativeConvention = "rig-native";

Field Value

System.String

Remarks

Positive X is flexion. A file without a `convention` key predates the distinction and is Unity-signed, the opposite way round; see ConventionOf(TomlTable).

Methods

MovementConfigLoader.ConventionOf(TomlTable) Method

A parsed config's declared convention, or the legacy one if it declares none.

public static string ConventionOf(Tomlyn.Model.TomlTable model);

Returns

System.String

MovementConfigLoader.GetMovementNames(Dictionary\<string,float[][][]>) Method

Get list of available movement names from config

public static string[] GetMovementNames(System.Collections.Generic.Dictionary<string,float[][][]> poses);

Returns

System.String[]

MovementConfigLoader.LoadConfig(string) Method

Load movements from a TOML config file. Returns a Dictionary<movementName, float[16][2][3]> (16 joints, 2 poses - max-flexion and rest, 3 Euler axes); returns null on parse or I/O failure.

public static System.Collections.Generic.Dictionary<string,float[][][]> LoadConfig(string filePath);

Returns

System.Collections.Generic.Dictionary<System.String,System.Single[][][]>