//static public implicit operator Native.Transform(LeapTransform t) { return t.ToNative(); }

        internal Native.Transform ToNative()
        {
            Native.Transform t = new Native.Transform();
            t.pos = Position.ToNative();
            t.rot = Rotation.ToNative();
            return(t);
        }
Пример #2
0
 public static Shape CreateBox(LeapVector3 halfSize, float radius) {
   return new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius));
 }
Пример #3
0
 public static Shape CreateBox(LeapVector3 halfSize, float radius)
 {
     return(new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius)));
 }