public void SetFloat(GMKeyCode code, float value) { FieldSet set = codeMap[code]; int intValue = GmUtil.FloatToInt(value); SetUserValue(set, intValue); }
public static void SetRotation(BuildObject buildObject, Quaternion rotation) { buildObject.rw = GmUtil.FloatToInt(rotation.w); buildObject.rx = GmUtil.FloatToInt(rotation.x); buildObject.ry = GmUtil.FloatToInt(rotation.y); buildObject.rz = GmUtil.FloatToInt(rotation.z); }