ArmSettings.fromJson constructor

ArmSettings.fromJson(
  1. Json? json
)

Parses arm settings from a JSON map.

Implementation

ArmSettings.fromJson(Json? json) :
  shoulder = json?["shoulder"] ?? 0.005,
  elbow = json?["elbow"] ?? 0.005,
  swivel = json?["swivel"] ?? 0.2,
  pinch = json?["pinch"] ?? 0.002,
  lift = json?["lift"] ?? 0.01,
  rotate = json?["rotate"] ?? 0.01,
  useIK = json?["useIK"] ?? false,
  ikIncrement = json?["ikIncrement"] ?? 10;