//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
파일: Shape.cs 프로젝트: Edudjr/riftbdu
 public static Shape CreateBox(LeapVector3 halfSize, float radius) {
   return new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius));
 }
예제 #3
0
파일: Shape.cs 프로젝트: cleebp/TieSim
 public static Shape CreateBox(LeapVector3 halfSize, float radius)
 {
     return(new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius)));
 }