예제 #1
0
        public void SetFloat(GMKeyCode code, float value)
        {
            FieldSet set      = codeMap[code];
            int      intValue = GmUtil.FloatToInt(value);

            SetUserValue(set, intValue);
        }
예제 #2
0
 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);
 }