ArmSettings.fromJson constructor
- Json? json
Parses arm settings from a JSON map.
Implementation
ArmSettings.fromJson(Json? json) :
shoulder = json?["shoulder"] ?? 0.008,
elbow = json?["elbow"] ?? 0.008,
swivel = json?["swivel"] ?? 0.02,
pinch = json?["pinch"] ?? 0.006,
lift = json?["lift"] ?? 0.02,
rotate = json?["rotate"] ?? 0.1,
useIK = json?["useIK"] ?? false,
ikIncrement = json?["ikIncrement"] ?? 10;