Beispiel #1
0
        public static void Rotate(Handle handle, Double x = 0, Double y = 0, Double z = 0)
        {
            var rotation = Elements.GetElement(handle, @"DATA\Rotation");

            ElementValues.SetFloatValue(rotation, "X", ElementValues.GetFloatValue(rotation, "X") + x);
            ElementValues.SetFloatValue(rotation, "Y", ElementValues.GetFloatValue(rotation, "Y") + y);
            ElementValues.SetFloatValue(rotation, "Z", ElementValues.GetFloatValue(rotation, "Z") + z);
        }