//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);
        }
Exemplo n.º 2
0
 public static Shape CreateBox(LeapVector3 halfSize, float radius) {
   return new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius));
 }
Exemplo n.º 3
0
 public static Shape CreateBox(LeapVector3 halfSize, float radius)
 {
     return(new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius)));
 }